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).
Product status
24ea50127ecf0efe819c1f6230add27abc6ca9d9 (git) before a55793e5a97d4e39bdb380873a9780fe0010bff6
24ea50127ecf0efe819c1f6230add27abc6ca9d9 (git) before f669d60db11dbabb96279f2b20f9d1cba43cddb2
24ea50127ecf0efe819c1f6230add27abc6ca9d9 (git) before 25e1e91a8da819924df0b16e3812d7b24c8ce133
24ea50127ecf0efe819c1f6230add27abc6ca9d9 (git) before b2f4daa6422fd6cc0cec969794dab4a88ea4cea1
24ea50127ecf0efe819c1f6230add27abc6ca9d9 (git) before 36ee60b569ba0dfb6f961333b90d19ab5b323fa9
6.6
Any version before 6.6
6.6.136 (semver)
6.12.83 (semver)
6.18.24 (semver)
6.19.14 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/a55793e5a97d4e39bdb380873a9780fe0010bff6
git.kernel.org/...c/f669d60db11dbabb96279f2b20f9d1cba43cddb2
git.kernel.org/...c/25e1e91a8da819924df0b16e3812d7b24c8ce133
git.kernel.org/...c/b2f4daa6422fd6cc0cec969794dab4a88ea4cea1
git.kernel.org/...c/36ee60b569ba0dfb6f961333b90d19ab5b323fa9