CVE-2022-49254
media: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats()
CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th
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.
| Vendor | linux |
| Product | linux |
| Ecosystems | |
| Industries | Technology |
| Published | Feb 26, 2025 |
| Last Updated | May 11, 2026 |
Stay Ahead of the Next One
Get instant alerts for linux linux
Be the first to know when new unknown vulnerabilities affecting linux linux are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
Affected Versions
Linux / Linux
7168155002cf7aadbfaa14a28f037c880a214764 < aa613ac270292e102503e9767882e39200efe608 7168155002cf7aadbfaa14a28f037c880a214764 < 91e2805579ab0783eed53acc2bf9fb553e939004 7168155002cf7aadbfaa14a28f037c880a214764 < 1381f1a629a090c251965edb56f849ad648414a4 7168155002cf7aadbfaa14a28f037c880a214764 < abd77889851d2ead0d0c9c4d29f1808801477b00
Linux / Linux
5.12
References
git.kernel.org: https://git.kernel.org/stable/c/aa613ac270292e102503e9767882e39200efe608 git.kernel.org: https://git.kernel.org/stable/c/91e2805579ab0783eed53acc2bf9fb553e939004 git.kernel.org: https://git.kernel.org/stable/c/1381f1a629a090c251965edb56f849ad648414a4 git.kernel.org: https://git.kernel.org/stable/c/abd77889851d2ead0d0c9c4d29f1808801477b00