CVE-2026-99467: media: marvell: mcam: stop DMA and cancel s_bh_work before freeing DMA buffers
In the Linux kernel, the following vulnerability has been resolved:
media: marvell: mcam: stop DMA and cancel sbhwork before freeing DMA buffers
In vmalloc mode the frame-completion IRQ queues mcamframework() on cam->sbhwork, which memcpy()s from the dmabufs[] that mcamfreedmabufs() frees with dmafreecoherent(). mccicshutdown() frees those buffers without stopping the controller, so while streaming a late frame IRQ can re-arm the work after the buffers are gone, causing a use-after-free.
Stop the controller in mccicshutdown() when streaming is still active (gated on an open fd, which holds a runtime-PM reference, so the device is powered), cancel sbhwork in mcamfreedmabufs(), and move INITWORK() into mccicregister() before the device can be published.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Compensating control
In mccic_shutdown(), stop the controller if streaming is active; cancel s_bh_work in mcam_free_dma_bufs() before freeing the DMA buffers.
- Compensating control
Move INIT_WORK() into mccic_register() so the work is initialized before the device can be published.