Vulnerability Description
In 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.12, < 5.15.33 |
Related Weaknesses (CWE)
References
- https://git.kernel.org/stable/c/1381f1a629a090c251965edb56f849ad648414a4Patch
- https://git.kernel.org/stable/c/91e2805579ab0783eed53acc2bf9fb553e939004Patch
- https://git.kernel.org/stable/c/aa613ac270292e102503e9767882e39200efe608Patch
- https://git.kernel.org/stable/c/abd77889851d2ead0d0c9c4d29f1808801477b00Patch
FAQ
What is CVE-2022-49254?
CVE-2022-49254 is a vulnerability with a CVSS score of 5.5 (MEDIUM). In 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() i...
How severe is CVE-2022-49254?
CVE-2022-49254 has been rated MEDIUM with a CVSS base score of 5.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-49254?
Check the references section above for vendor advisories and patch information. Affected products include: Linux Linux Kernel.