io_uring/zcrx: fix sgtable leak on mapping failures
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:
io_uring/zcrx: fix sgtable leak on mapping failures
In an unlikely case when io_populate_area_dma() fails, which could only happen on a PAGE_POOL_32BIT_ARCH_WITH_64BIT_DMA machine, io_zcrx_map_area() will have an initialised and not freed table. It was supposed to be cleaned up in the error path, but !is_mapped prevents that.
From the CVE record · Linux
The Linux kernel’s io_uring/zcrx code can leave a scatter-gather table allocated if DMA area mapping fails on a PAGE_POOL_32BIT_ARCH_WITH_64BIT_DMA machine. This causes a memory leak; the input does not establish how an attacker could trigger the failure or whether authentication or user interaction is required.
Operators running Linux kernels with io_uring/zcrx on PAGE_POOL_32BIT_ARCH_WITH_64BIT_DMA machines should check their kernel version; affected versions are not specified.