ipv4: reject undersized MTUs in ip_do_fragment()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel d9d1a676b033acabf8e5645f730486d1f8204a3f, Kernel 3556beb8ca86677af2aca5bfbed6f8e790fccc83, Kernel 36e0741833bd823866f8cb9f112f37cea1a70b60 and 14 more.
In the Linux kernel, the following vulnerability has been resolved: ipv4: reject undersized MTUs in ip_do_fragment() ip_do_fragment() subtracts the IPv4 header length from the effective MTU and passes the resulting payload MTU to ip_frag_next(). If the effective MTU is smaller than hlen + 8, ip_frag_next() rounds the fragment payload length down to zero. The fragmentation state then never makes forward progress: state->left, state->ptr and state->offset stay unchanged while ip_do_fragment() keeps allocating and transmitting header-only fragments until the softlockup detector fires. This is reproducible with a route installed using "mtu lock 20", but it is also reproducible without route MTU lock, for example by forwarding a packet to a device whose MTU is 20. Fix it in ip_do_fragment() by rejecting mtu < hlen + 8 with -EMSGSIZE, matching the existing IPv6 fragmentation check.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <d9d1a676b033acabf8e5645f730486d1f8204a3f, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <3556beb8ca86677af2aca5bfbed6f8e790fccc83, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <36e0741833bd823866f8cb9f112f37cea1a70b60, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <515b6816ba0c12d8415c88e5f41e6ec029e35cfa, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <74ce7389f8f562d39015f59a00ef7ad6acd37803, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <a716a64a4ba68cd46f2745fba2b1099fe8e0aa59, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <b0ea911453ce7210e8200a07a94d2458bd1e6430, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c0726f0caf8c6b3208552949e17d23634a2f3129, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c8a74adccaf028223054633b532593101dfcc581, =2.6.12 | d9d1a676b033acabf8e5645f730486d1f8204a3f, 3556beb8ca86677af2aca5bfbed6f8e790fccc83, 36e0741833bd823866f8cb9f112f37cea1a70b60, 515b6816ba0c12d8415c88e5f41e6ec029e35cfa, 74ce7389f8f562d39015f59a00ef7ad6acd37803, a716a64a4ba68cd46f2745fba2b1099fe8e0aa59, b0ea911453ce7210e8200a07a94d2458bd1e6430, c0726f0caf8c6b3208552949e17d23634a2f3129, c8a74adccaf028223054633b532593101dfcc581 |
| linux-kernel: Kernel | >=5.11.0 <5.15.218, >=5.16.0 <6.1.185, >=6.13.0 <6.18.47, >=6.19.0 <7.1.11, >=6.2.0 <6.6.154, >=6.7.0 <6.12.106, >=7.2.0 <7.2.1, >=2.6.12 <5.10.267 | 5.15.218, 6.1.185, 6.18.47, 7.1.11, 6.6.154, 6.12.106, 7.2.1, 5.10.267 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket