{"id":"CVE-2022-49254","summary":"media: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats()\n\nIn cal_ctx_v4l2_init_formats(), devm_kzalloc() is assigned to\nctx-\u003eactive_fmt and there is a dereference of it after that, which could\nlead to NULL pointer dereference on failure of devm_kzalloc().\n\nFix this bug by adding a NULL check of ctx-\u003eactive_fmt.\n\nThis bug was found by a static analyzer.\n\nBuilds with 'make allyesconfig' show no new warnings, and our static\nanalyzer no longer warns about this code.","modified":"2026-03-20T12:22:17.911573Z","published":"2025-02-26T01:56:09.619Z","related":["SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1241-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49254.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1381f1a629a090c251965edb56f849ad648414a4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/91e2805579ab0783eed53acc2bf9fb553e939004"},{"type":"WEB","url":"https://git.kernel.org/stable/c/aa613ac270292e102503e9767882e39200efe608"},{"type":"WEB","url":"https://git.kernel.org/stable/c/abd77889851d2ead0d0c9c4d29f1808801477b00"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49254.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49254"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7168155002cf7aadbfaa14a28f037c880a214764"},{"fixed":"aa613ac270292e102503e9767882e39200efe608"},{"fixed":"91e2805579ab0783eed53acc2bf9fb553e939004"},{"fixed":"1381f1a629a090c251965edb56f849ad648414a4"},{"fixed":"abd77889851d2ead0d0c9c4d29f1808801477b00"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49254.json"}}],"schema_version":"1.7.5"}