{"id":"CVE-2023-53458","aliases":["CVE-2023-53458"],"related":[],"kind":"vulnerability","state":"published","title":"media: cx23885: Fix a null-ptr-deref bug in buffer_prepare() and buffer_finish()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2025-10-01T11:42:29.665Z","modified":"2026-11-05T21:17:21.047Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"4d63a25c4523b5d18e5307897d56aff785f43bf5","fixed":"f0a06203f2fe63f04311467200c99c4ee1926578","status":"affected"},{"type":"git","introduced":"4d63a25c4523b5d18e5307897d56aff785f43bf5","fixed":"6738841f6fcf23e9fc30e2449f32fc84ee19c6f1","status":"affected"},{"type":"git","introduced":"4d63a25c4523b5d18e5307897d56aff785f43bf5","fixed":"5b8e5e28e85a546dfccc3895befe0e823fdd7c89","status":"affected"},{"type":"git","introduced":"4d63a25c4523b5d18e5307897d56aff785f43bf5","fixed":"47e8b73bc35d7c54642f78e498697692f6358996","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.18","status":"unaffected"},{"type":"semver","introduced":"5.15.113","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.30","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.3.4","lastAffected":"6.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.4","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.18","fixed":"5.15.113"},{"status":"affected","introduced":"5.16","fixed":"6.1.30"},{"status":"affected","introduced":"6.2","fixed":"6.3.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/f0a06203f2fe63f04311467200c99c4ee1926578","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6738841f6fcf23e9fc30e2449f32fc84ee19c6f1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5b8e5e28e85a546dfccc3895befe0e823fdd7c89","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/47e8b73bc35d7c54642f78e498697692f6358996","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T20:21:18.770Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53458","url":"https://www.cve.org/CVERecord?id=CVE-2023-53458","licence":"CVE Terms of Use","modified":"2026-11-05T20:31:09.961Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53458","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53458","licence":"Public domain","modified":"2026-11-05T21:17:21.047Z"}],"updatedAt":"2026-11-25T22:58:34.894Z","epss":{"score":0.00173,"percentile":0.07082,"date":"2026-12-02T12:00:21.000Z"}}