swiotlb: fix out-of-bounds TLB allocations with CONFIG_SWIOTLB_DYNAMIC
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
swiotlb: fix out-of-bounds TLB allocations with CONFIG_SWIOTLB_DYNAMIC
Limit the free list length to the size of the IO TLB. Transient pool can be smaller than IO_TLB_SEGSIZE, but the free list is initialized with the assumption that the total number of slots is a multiple of IO_TLB_SEGSIZE. As a result, swiotlb_area_find_slots() may allocate slots past the end of a transient IO TLB buffer.
From the CVE record · Linux
With CONFIG_SWIOTLB_DYNAMIC enabled, the Linux kernel's swiotlb free list can exceed the size of a transient IO TLB buffer. This may cause swiotlb_area_find_slots() to allocate slots past the buffer's end. The input does not specify how an attacker could trigger this or whether access or user interaction is required.
Engineers running Linux kernels with CONFIG_SWIOTLB_DYNAMIC enabled should check their kernel versions; affected versions are not specified.