{"id":"CVE-2023-53458","state":"PUBLISHED","title":"media: cx23885: Fix a null-ptr-deref bug in buffer_prepare() and buffer_finish()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: cx23885: Fix a null-ptr-deref bug in buffer_prepare() and buffer_finish()\n\nWhen the driver calls cx23885_risc_buffer() to prepare the buffer, the\nfunction call dma_alloc_coherent may fail, resulting in a empty buffer\nrisc->cpu. Later when we free the buffer or access the buffer, null ptr\nderef is triggered.\n\nThis bug is similar to the following one:\nhttps://git.linuxtv.org/media_stage.git/commit/?id=2b064d91440b33fba5b452f2d1b31f13ae911d71.\n\nWe believe the bug can be also dynamically triggered from user side.\nSimilarly, we fix this by checking the return value of cx23885_risc_buffer()\nand the value of risc->cpu before buffer free.","publishedAt":"2025-10-01T11:42:29.665Z","updatedAt":"2026-05-11T19:45:23.834Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4d63a25c4523b5d18e5307897d56aff785f43bf5","status":"affected","lessThan":"f0a06203f2fe63f04311467200c99c4ee1926578","versionType":"git"},{"version":"4d63a25c4523b5d18e5307897d56aff785f43bf5","status":"affected","lessThan":"6738841f6fcf23e9fc30e2449f32fc84ee19c6f1","versionType":"git"},{"version":"4d63a25c4523b5d18e5307897d56aff785f43bf5","status":"affected","lessThan":"5b8e5e28e85a546dfccc3895befe0e823fdd7c89","versionType":"git"},{"version":"4d63a25c4523b5d18e5307897d56aff785f43bf5","status":"affected","lessThan":"47e8b73bc35d7c54642f78e498697692f6358996","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/cx23885/cx23885-core.c","drivers/media/pci/cx23885/cx23885-video.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.18","versionType":"semver"},{"version":"5.15.113","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.30","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.3.4","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/cx23885/cx23885-core.c","drivers/media/pci/cx23885/cx23885-video.c"]}],"references":["https://git.kernel.org/stable/c/f0a06203f2fe63f04311467200c99c4ee1926578","https://git.kernel.org/stable/c/6738841f6fcf23e9fc30e2449f32fc84ee19c6f1","https://git.kernel.org/stable/c/5b8e5e28e85a546dfccc3895befe0e823fdd7c89","https://git.kernel.org/stable/c/47e8b73bc35d7c54642f78e498697692f6358996"],"weaknesses":[],"ingestedAt":"2026-10-29T20:06:33.064Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/53xxx/CVE-2023-53458.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-53458","state":"PUBLISHED","datePublished":"2025-10-01T11:42:29.665Z","dateUpdated":"2026-05-11T19:45:23.834Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-10-01T11:39:39.399Z"},"containers":{"cna":{"title":"media: cx23885: Fix a null-ptr-deref bug in buffer_prepare() and buffer_finish()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: cx23885: Fix a null-ptr-deref bug in buffer_prepare() and buffer_finish()\n\nWhen the driver calls cx23885_risc_buffer() to prepare the buffer, the\nfunction call dma_alloc_coherent may fail, resulting in a empty buffer\nrisc->cpu. Later when we free the buffer or access the buffer, null ptr\nderef is triggered.\n\nThis bug is similar to the following one:\nhttps://git.linuxtv.org/media_stage.git/commit/?id=2b064d91440b33fba5b452f2d1b31f13ae911d71.\n\nWe believe the bug can be also dynamically triggered from user side.\nSimilarly, we fix this by checking the return value of cx23885_risc_buffer()\nand the value of risc->cpu before buffer free."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"4d63a25c4523b5d18e5307897d56aff785f43bf5","status":"affected","lessThan":"f0a06203f2fe63f04311467200c99c4ee1926578","versionType":"git"},{"version":"4d63a25c4523b5d18e5307897d56aff785f43bf5","status":"affected","lessThan":"6738841f6fcf23e9fc30e2449f32fc84ee19c6f1","versionType":"git"},{"version":"4d63a25c4523b5d18e5307897d56aff785f43bf5","status":"affected","lessThan":"5b8e5e28e85a546dfccc3895befe0e823fdd7c89","versionType":"git"},{"version":"4d63a25c4523b5d18e5307897d56aff785f43bf5","status":"affected","lessThan":"47e8b73bc35d7c54642f78e498697692f6358996","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/cx23885/cx23885-core.c","drivers/media/pci/cx23885/cx23885-video.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.18","versionType":"semver"},{"version":"5.15.113","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.30","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.3.4","status":"unaffected","lessThanOrEqual":"6.3.*","versionType":"semver"},{"version":"6.4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/pci/cx23885/cx23885-core.c","drivers/media/pci/cx23885/cx23885-video.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/f0a06203f2fe63f04311467200c99c4ee1926578"},{"url":"https://git.kernel.org/stable/c/6738841f6fcf23e9fc30e2449f32fc84ee19c6f1"},{"url":"https://git.kernel.org/stable/c/5b8e5e28e85a546dfccc3895befe0e823fdd7c89"},{"url":"https://git.kernel.org/stable/c/47e8b73bc35d7c54642f78e498697692f6358996"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:45:23.834Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"5.15.113"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"6.1.30"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"6.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.18","versionEndExcluding":"6.4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}