{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-54143","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-12-24T13:02:52.523Z","datePublished":"2025-12-24T13:06:56.869Z","dateUpdated":"2026-05-11T19:56:19.068Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T19:56:19.068Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()\n\nIf we encounter any error in the vdec_msg_queue_init() then we need\nto set \"msg_queue->wdma_addr.size = 0;\".  Normally, this is done\ninside the vdec_msg_queue_deinit() function.  However, if the\nfirst call to allocate &msg_queue->wdma_addr fails, then the\nvdec_msg_queue_deinit() function is a no-op.  For that situation, just\nset the size to zero explicitly and return.\n\nThere were two other error paths which did not clean up before returning.\nChange those error paths to goto mem_alloc_err."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/mediatek/vcodec/vdec_msg_queue.c"],"versions":[{"version":"b199fe46f35c57a415acd4d5295b0f4e35048c11","lessThan":"858322c409e0aba8f70810d23f35c482744f007c","status":"affected","versionType":"git"},{"version":"b199fe46f35c57a415acd4d5295b0f4e35048c11","lessThan":"b7dbc27301f560c3b915235c53383155b3512083","status":"affected","versionType":"git"},{"version":"b199fe46f35c57a415acd4d5295b0f4e35048c11","lessThan":"451dc187cadd47771e5d9434fe220fad7be84057","status":"affected","versionType":"git"},{"version":"b199fe46f35c57a415acd4d5295b0f4e35048c11","lessThan":"cf10b0bb503c974ba049d6f888b21178be20a962","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/mediatek/vcodec/vdec_msg_queue.c"],"versions":[{"version":"5.18","status":"affected"},{"version":"0","lessThan":"5.18","status":"unaffected","versionType":"semver"},{"version":"6.1.53","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.4.16","lessThanOrEqual":"6.4.*","status":"unaffected","versionType":"semver"},{"version":"6.5.3","lessThanOrEqual":"6.5.*","status":"unaffected","versionType":"semver"},{"version":"6.6","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.18","versionEndExcluding":"6.1.53"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.4.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.5.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.18","versionEndExcluding":"6.6"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/858322c409e0aba8f70810d23f35c482744f007c"},{"url":"https://git.kernel.org/stable/c/b7dbc27301f560c3b915235c53383155b3512083"},{"url":"https://git.kernel.org/stable/c/451dc187cadd47771e5d9434fe220fad7be84057"},{"url":"https://git.kernel.org/stable/c/cf10b0bb503c974ba049d6f888b21178be20a962"}],"title":"media: mediatek: vcodec: fix resource leaks in vdec_msg_queue_init()","x_generator":{"engine":"bippy-1.2.0"}}}}