Skip to contentSkip to conversation

CVE-2026-80793: ipv4: reject undersized MTUs in ip_do_fragment()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 4

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-80793 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.267 with commit a716a64a4ba68cd46f2745fba2b1099fe8e0aa59
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.218 with commit 515b6816ba0c12d8415c88e5f41e6ec029e35cfa
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.185 with commit 74ce7389f8f562d39015f59a00ef7ad6acd37803
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.154 with commit b0ea911453ce7210e8200a07a94d2458bd1e6430
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.106 with commit 36e0741833bd823866f8cb9f112f37cea1a70b60
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.47 with commit d9d1a676b033acabf8e5645f730486d1f8204a3f
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.1.11 with commit 3556beb8ca86677af2aca5bfbed6f8e790fccc83
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2.1 with commit c8a74adccaf028223054633b532593101dfcc581
	Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3-rc1 with commit c0726f0caf8c6b3208552949e17d23634a2f3129

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-80793

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/ipv4/ip_output.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/a716a64a4ba68cd46f2745fba2b1099fe8e0aa59
	https://git.kernel.org/stable/c/515b6816ba0c12d8415c88e5f41e6ec029e35cfa
	https://git.kernel.org/stable/c/74ce7389f8f562d39015f59a00ef7ad6acd37803
	https://git.kernel.org/stable/c/b0ea911453ce7210e8200a07a94d2458bd1e6430
	https://git.kernel.org/stable/c/36e0741833bd823866f8cb9f112f37cea1a70b60
	https://git.kernel.org/stable/c/d9d1a676b033acabf8e5645f730486d1f8204a3f
	https://git.kernel.org/stable/c/3556beb8ca86677af2aca5bfbed6f8e790fccc83
	https://git.kernel.org/stable/c/c8a74adccaf028223054633b532593101dfcc581
	https://git.kernel.org/stable/c/c0726f0caf8c6b3208552949e17d23634a2f3129