{"id":"CVE-2026-99467","state":"PUBLISHED","title":"media: marvell: mcam: stop DMA and cancel s_bh_work before freeing DMA buffers","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: marvell: mcam: stop DMA and cancel s_bh_work before freeing DMA buffers\n\nIn vmalloc mode the frame-completion IRQ queues mcam_frame_work() on\ncam->s_bh_work, which memcpy()s from the dma_bufs[] that\nmcam_free_dma_bufs() frees with dma_free_coherent().  mccic_shutdown()\nfrees those buffers without stopping the controller, so while streaming\na late frame IRQ can re-arm the work after the buffers are gone, causing a\nuse-after-free.\n\nStop the controller in mccic_shutdown() when streaming is still active\n(gated on an open fd, which holds a runtime-PM reference, so the device\nis powered), cancel s_bh_work in mcam_free_dma_bufs(), and move\nINIT_WORK() into mccic_register() before the device can be published.","publishedAt":"2026-11-19T14:42:30.394Z","updatedAt":"2026-11-19T14:42:30.394Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"67a8dbbc4e04cd256987b189352472a59aff73be","status":"affected","lessThan":"8445398f75ed573cd8eafaa01273c10990e05eae","versionType":"git"},{"version":"67a8dbbc4e04cd256987b189352472a59aff73be","status":"affected","lessThan":"12d0222809f943d9bcaffd5fe1d8b9d2c3c74f07","versionType":"git"},{"version":"67a8dbbc4e04cd256987b189352472a59aff73be","status":"affected","lessThan":"71de8e33596c9c8b3e20e51e18883e6c5f25f7a4","versionType":"git"},{"version":"67a8dbbc4e04cd256987b189352472a59aff73be","status":"affected","lessThan":"0f29f84317c1e35f6a9265277be33e60d3fc8c1c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/marvell/mcam-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.1","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/marvell/mcam-core.c"]}],"references":["https://git.kernel.org/stable/c/8445398f75ed573cd8eafaa01273c10990e05eae","https://git.kernel.org/stable/c/12d0222809f943d9bcaffd5fe1d8b9d2c3c74f07","https://git.kernel.org/stable/c/71de8e33596c9c8b3e20e51e18883e6c5f25f7a4","https://git.kernel.org/stable/c/0f29f84317c1e35f6a9265277be33e60d3fc8c1c"],"weaknesses":[],"ingestedAt":"2026-11-19T14:48:06.147Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99467.json","commit":"783f6d4140a34eaf92c5bfee971cfe497fa6394e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99467","state":"PUBLISHED","datePublished":"2026-11-19T14:42:30.394Z","dateUpdated":"2026-11-19T14:42:30.394Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.417Z"},"containers":{"cna":{"title":"media: marvell: mcam: stop DMA and cancel s_bh_work before freeing DMA buffers","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: marvell: mcam: stop DMA and cancel s_bh_work before freeing DMA buffers\n\nIn vmalloc mode the frame-completion IRQ queues mcam_frame_work() on\ncam->s_bh_work, which memcpy()s from the dma_bufs[] that\nmcam_free_dma_bufs() frees with dma_free_coherent().  mccic_shutdown()\nfrees those buffers without stopping the controller, so while streaming\na late frame IRQ can re-arm the work after the buffers are gone, causing a\nuse-after-free.\n\nStop the controller in mccic_shutdown() when streaming is still active\n(gated on an open fd, which holds a runtime-PM reference, so the device\nis powered), cancel s_bh_work in mcam_free_dma_bufs(), and move\nINIT_WORK() into mccic_register() before the device can be published."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"67a8dbbc4e04cd256987b189352472a59aff73be","status":"affected","lessThan":"8445398f75ed573cd8eafaa01273c10990e05eae","versionType":"git"},{"version":"67a8dbbc4e04cd256987b189352472a59aff73be","status":"affected","lessThan":"12d0222809f943d9bcaffd5fe1d8b9d2c3c74f07","versionType":"git"},{"version":"67a8dbbc4e04cd256987b189352472a59aff73be","status":"affected","lessThan":"71de8e33596c9c8b3e20e51e18883e6c5f25f7a4","versionType":"git"},{"version":"67a8dbbc4e04cd256987b189352472a59aff73be","status":"affected","lessThan":"0f29f84317c1e35f6a9265277be33e60d3fc8c1c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/marvell/mcam-core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.1","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/marvell/mcam-core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8445398f75ed573cd8eafaa01273c10990e05eae"},{"url":"https://git.kernel.org/stable/c/12d0222809f943d9bcaffd5fe1d8b9d2c3c74f07"},{"url":"https://git.kernel.org/stable/c/71de8e33596c9c8b3e20e51e18883e6c5f25f7a4"},{"url":"https://git.kernel.org/stable/c/0f29f84317c1e35f6a9265277be33e60d3fc8c1c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:42:30.394Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}