CVE-2022-49254 Details
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.
A NULL pointer dereference vulnerability has been identified in the Linux kernel's TI-VPE media component. The issue arises in the function 'cal_ctx_v4l2_init_formats()', where 'devm_kzalloc()' is used to allocate memory for 'ctx->active_fmt'. If this allocation fails, the subsequent dereference can lead to a NULL pointer dereference. The vulnerability has been addressed by adding a NULL check for 'ctx->active_fmt'. This issue was discovered through static analysis, and affected builds no longer exhibit warnings related to this code.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1381f1a629a090c251965edb56f849ad648414a4 | kernel.org | Patch |
| https://git.kernel.org/stable/c/91e2805579ab0783eed53acc2bf9fb553e939004 | kernel.org | Patch |
| https://git.kernel.org/stable/c/aa613ac270292e102503e9767882e39200efe608 | kernel.org | Patch |
| https://git.kernel.org/stable/c/abd77889851d2ead0d0c9c4d29f1808801477b00 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.12, < 5.15.33 >= 5.16, < 5.16.19 >= 5.17, < 5.17.2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Sep 22, 2025 | Initial Analysis | [email protected] |
| Feb 26, 2025 | New CVE Received | kernel.org |