CVE-2022-49254
media: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats()
- Published
- Updated
- Reserved
- Assigned by
- Linux
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.
Timeline
ID reserved
By Linux
Published
- 15 months later
· 15 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.27% · top 81% of all CVEs (7 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Weakness
Affected products
- affected 7168155002cf7aadbfaa14a28f037c880a214764 – < aa613ac270292e102503e9767882e39200efe608
- affected 7168155002cf7aadbfaa14a28f037c880a214764 – < 91e2805579ab0783eed53acc2bf9fb553e939004
- affected 7168155002cf7aadbfaa14a28f037c880a214764 – < 1381f1a629a090c251965edb56f849ad648414a4
- affected 7168155002cf7aadbfaa14a28f037c880a214764 – < abd77889851d2ead0d0c9c4d29f1808801477b00
- affected 5.12
- unaffected < 5.12
- unaffected 5.15.33 – ≤ 5.15.*
- unaffected 5.16.19 – ≤ 5.16.*
- unaffected 5.17.2 – ≤ 5.17.*
- unaffected 5.18 – ≤ *
References (4)
- https://git.kernel.org/stable/c/aa613ac270292e102503e9767882e39200efe608 (opens in a new tab)
- https://git.kernel.org/stable/c/91e2805579ab0783eed53acc2bf9fb553e939004 (opens in a new tab)
- https://git.kernel.org/stable/c/1381f1a629a090c251965edb56f849ad648414a4 (opens in a new tab)
- https://git.kernel.org/stable/c/abd77889851d2ead0d0c9c4d29f1808801477b00 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-49254)Record last updated .