{"id":"CVE-2022-49254","published":"2025-02-26T01:56:09Z","modified":"2026-05-11T18:56:09Z","title":"media: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->active_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->active_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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00268,"percentile":0.18806,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/aa613ac270292e102503e9767882e39200efe608","tags":[]},{"url":"https://git.kernel.org/stable/c/91e2805579ab0783eed53acc2bf9fb553e939004","tags":[]},{"url":"https://git.kernel.org/stable/c/1381f1a629a090c251965edb56f849ad648414a4","tags":[]},{"url":"https://git.kernel.org/stable/c/abd77889851d2ead0d0c9c4d29f1808801477b00","tags":[]}],"priority":{"score":3.8,"factors":[{"name":"EPSS percentile","points":3.76}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 7168155002cf7aadbfaa14a28f037c880a214764, < aa613ac270292e102503e9767882e39200efe608",">= 7168155002cf7aadbfaa14a28f037c880a214764, < 91e2805579ab0783eed53acc2bf9fb553e939004",">= 7168155002cf7aadbfaa14a28f037c880a214764, < 1381f1a629a090c251965edb56f849ad648414a4",">= 7168155002cf7aadbfaa14a28f037c880a214764, < abd77889851d2ead0d0c9c4d29f1808801477b00"]},{"vendor":"Linux","product":"Linux","versions":["5.12"]}],"euvd":{"id":"EUVD-2022-54972","exploited":false,"provenance":"source"}}