CVE-2022-49254
MEDIUM 5.5CVSS 3.1In the Linux kernel, the following vulnerability has been resolved:
media: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats()
In cal_ctx_v4l2_init_formats(), devm_kzalloc() is assigned to
ctx->active_fmt and there is a dereference of it after that, which could
lead to NULL pointer dereference on failure of devm_kzalloc().
Fix this bug by adding a NULL check of ctx->active_fmt.
This bug was found by a static analyzer.
Builds with 'make allyesconfig' show no new warnings, and our static
analyzer no longer warns about this code.
- Published
- 26 Feb 2025
- Last modified
- 17 Jun 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Analyzed
- Weakness
- CWE-476
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 5.12, < 5.15.33 | 5.15.33 |
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 5.16, < 5.16.19 | 5.16.19 |
| NVD | linux | linux_kernelcpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
>= 5.17, < 5.17.2 | 5.17.2 |
References
- https://git.kernel.org/stable/c/1381f1a629a090c251965edb56f849ad648414a4 · Patch
- https://git.kernel.org/stable/c/91e2805579ab0783eed53acc2bf9fb553e939004 · Patch
- https://git.kernel.org/stable/c/aa613ac270292e102503e9767882e39200efe608 · Patch
- https://git.kernel.org/stable/c/abd77889851d2ead0d0c9c4d29f1808801477b00 · Patch
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 26 Feb 2025)