5.5medium
media: iris: Add buffer to list only after successful allocation
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.13% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 73702f45db81b74897b2808aaa13484826156006 before 45b30f65feeb4d5570d5337793bb0f298be813d2, from 73702f45db81b74897b2808aaa13484826156006 before 98b4c4c90f1e11caecbe2093dbe3a901d338bc81, from 73702f45db81b74897b2808aaa13484826156006 before 2d0bbd982dfdd67da488a772f7a8a1bdca7642bf, 6.15 Not affected: before 6.15, from 6.18.16 up to 6.18.*, from 6.19.6 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.15 before 6.18.16, from 6.19 before 6.19.6 | NVD |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: media: iris: Añadir búfer a la lista solo después de una asignación exitosa Mover ’list_add_tail()’ a después de que ’dma_alloc_attrs()’ tenga éxito al crear búferes internos. Anteriormente, el búfer se encolaba en ’buffers -> list’ antes de la asignación DMA. Si la asignación fallaba, la función devolvía ’-ENOMEM’ mientras dejaba un búfer parcialmente inicializado en la lista, lo que podría llevar a un estado inconsistente y posibles fugas. Al añadir el búfer a la lista solo después de que ’dma_alloc_attrs()’ tenga éxito, nos aseguramos de que la lista contenga solo búferes válidos y completamente inicializados.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43146 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-43146 changed 2026-11-11 | Public domain |