Description
In the Linux kernel, the following vulnerability has been resolved: xsk: validate MTU against usable frame size on bind AF_XDP bind currently accepts zero-copy pool configurations without verifying that the device MTU fits into the usable frame space provided by the UMEM chunk. This becomes a problem since we started to respect tailroom which is subtracted from chunk_size (among with headroom). 2k chunk size might not provide enough space for standard 1500 MTU, so let us catch such settings at bind time. Furthermore, validate whether underlying HW will be able to satisfy configured MTU wrt XSK's frame size multiplied by supported Rx buffer chain length (that is exposed via net_device::xdp_zc_max_segs).
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
24ea50127ecf0efe819c1f6230add27abc6ca9d9 to < a55793e5a97d4e39bdb380873a9780fe0010bff6affected24ea50127ecf0efe819c1f6230add27abc6ca9d9 to < f669d60db11dbabb96279f2b20f9d1cba43cddb2affected24ea50127ecf0efe819c1f6230add27abc6ca9d9 to < 25e1e91a8da819924df0b16e3812d7b24c8ce133affected24ea50127ecf0efe819c1f6230add27abc6ca9d9 to < b2f4daa6422fd6cc0cec969794dab4a88ea4cea1affected24ea50127ecf0efe819c1f6230add27abc6ca9d9 to < 36ee60b569ba0dfb6f961333b90d19ab5b323fa9affected
Linux Linux
Default version status: affected
6.6affected0 to < 6.6unaffected6.6.136 to ≤ 6.6.*unaffected6.12.83 to ≤ 6.12.*unaffected6.18.24 to ≤ 6.18.*unaffected6.19.14 to ≤ 6.19.*unaffected7.0 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/a55793e5a97d4e39bdb380873a9780fe0010bff6 ↗
- https://git.kernel.org/stable/c/f669d60db11dbabb96279f2b20f9d1cba43cddb2 ↗
- https://git.kernel.org/stable/c/25e1e91a8da819924df0b16e3812d7b24c8ce133 ↗
- https://git.kernel.org/stable/c/b2f4daa6422fd6cc0cec969794dab4a88ea4cea1 ↗
- https://git.kernel.org/stable/c/36ee60b569ba0dfb6f961333b90d19ab5b323fa9 ↗