CVE-2026-43146: media: iris: Add buffer to list only after successful allocation
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
media: iris: Add buffer to list only after successful allocation
Move list_add_tail() to after dma_alloc_attrs() succeeds when creating internal buffers. Previously, the buffer was enqueued in buffers->list before the DMA allocation. If the allocation failed, the function returned -ENOMEM while leaving a partially initialized buffer in the list, which could lead to inconsistent state and potential leaks.
By adding the buffer to the list only after dma_alloc_attrs() succeeds, we ensure the list contains only valid, fully initialized buffers.
The Linux kernel CVE team has assigned CVE-2026-43146 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 73702f45db81b74897b2808aaa13484826156006 and fixed in 6.18.16 with commit 45b30f65feeb4d5570d5337793bb0f298be813d2 Issue introduced in 6.15 with commit 73702f45db81b74897b2808aaa13484826156006 and fixed in 6.19.6 with commit 98b4c4c90f1e11caecbe2093dbe3a901d338bc81 Issue introduced in 6.15 with commit 73702f45db81b74897b2808aaa13484826156006 and fixed in 7.0 with commit 2d0bbd982dfdd67da488a772f7a8a1bdca7642bf
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-43146
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/media/platform/qcom/iris/iris_buffer.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/45b30f65feeb4d5570d5337793bb0f298be813d2 https://git.kernel.org/stable/c/98b4c4c90f1e11caecbe2093dbe3a901d338bc81 https://git.kernel.org/stable/c/2d0bbd982dfdd67da488a772f7a8a1bdca7642bf