CVE-2026-142852: media: mali-c55: Check the statistics buffer address before filling
In the Linux kernel, the following vulnerability has been resolved:
media: mali-c55: Check the statistics buffer address before filling
malic55statscpuread() copies the metering registers into the buffer returned by vb2planevaddr() without checking it. As for the parameters queue, a DMABUF whose exporter cannot be vmapped yields NULL, and the memcpyfromio() then dereferences it from the threaded interrupt handler.
Report the failure to malic55statsfillbuffer() and complete the buffer with VB2BUFSTATEERROR.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Compensating control
In the mali-c55 statistics path, check the address returned by vb2_plane_vaddr() before filling the buffer; if it is NULL, report failure from mali_c55_stats_fill_buffer() and complete the buffer with VB2_BUF_STATE_ERROR.
Event History
Frequently Asked Questions
What conditions are required to trigger the failure?
The statistics buffer must be supplied as a DMABUF whose exporter cannot be CPU-mapped. In that case, vb2_plane_vaddr() returns NULL and the driver previously passed that address to memcpy_fromio() from a threaded interrupt handler.
Which systems are exposed?
Systems using the Linux kernel's mali-c55 media driver are relevant. Exposure requires use of the driver's statistics-buffer path with an unmappable DMABUF; the provided information does not establish that ordinary buffers trigger the issue.
What can be done before the fix is available?
Avoid providing statistics buffers backed by DMABUF exporters that cannot be vmapped. The resolved behavior detects the missing CPU mapping and completes the buffer with VB2_BUF_STATE_ERROR instead of dereferencing NULL.
How can an affected buffer submission be recognized?
A relevant condition is a statistics-buffer DMABUF for which the exporter cannot provide a CPU mapping, causing vb2_plane_vaddr() to return NULL. With the fix, that buffer is reported as an error via VB2_BUF_STATE_ERROR.