{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-49254","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-02-26T01:49:39.295Z","datePublished":"2025-02-26T01:56:09.619Z","dateUpdated":"2025-05-04T08:33:27.253Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2025-05-04T08:33:27.253Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/ti-vpe/cal-video.c"],"versions":[{"version":"7168155002cf7aadbfaa14a28f037c880a214764","lessThan":"aa613ac270292e102503e9767882e39200efe608","status":"affected","versionType":"git"},{"version":"7168155002cf7aadbfaa14a28f037c880a214764","lessThan":"91e2805579ab0783eed53acc2bf9fb553e939004","status":"affected","versionType":"git"},{"version":"7168155002cf7aadbfaa14a28f037c880a214764","lessThan":"1381f1a629a090c251965edb56f849ad648414a4","status":"affected","versionType":"git"},{"version":"7168155002cf7aadbfaa14a28f037c880a214764","lessThan":"abd77889851d2ead0d0c9c4d29f1808801477b00","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/ti-vpe/cal-video.c"],"versions":[{"version":"5.12","status":"affected"},{"version":"0","lessThan":"5.12","status":"unaffected","versionType":"semver"},{"version":"5.15.33","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.16.19","lessThanOrEqual":"5.16.*","status":"unaffected","versionType":"semver"},{"version":"5.17.2","lessThanOrEqual":"5.17.*","status":"unaffected","versionType":"semver"},{"version":"5.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.15.33"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.16.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.17.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"5.18"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/aa613ac270292e102503e9767882e39200efe608"},{"url":"https://git.kernel.org/stable/c/91e2805579ab0783eed53acc2bf9fb553e939004"},{"url":"https://git.kernel.org/stable/c/1381f1a629a090c251965edb56f849ad648414a4"},{"url":"https://git.kernel.org/stable/c/abd77889851d2ead0d0c9c4d29f1808801477b00"}],"title":"media: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats()","x_generator":{"engine":"bippy-1.2.0"}}}}