media: iris: Add buffer to list only after successful allocation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.166.19.67.0In 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.
From the CVE record · Linux
The Linux kernel’s media iris driver added an internal buffer to a list before its DMA allocation succeeded. If allocation failed, a partially initialized buffer remained in the list, potentially causing inconsistent state or leaks; the input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with the media iris driver should check their versions; affected versions are not specified.