Skip to contentSkip to conversation

CVE-2026-99709: inet: frags: limit the truesize of a reassembly queue

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

lore
Share & tools
lore
#0 lore raw

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

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

In the Linux kernel, the following vulnerability has been resolved:

inet: frags: limit the truesize of a reassembly queue

The truesize of fragments in a reassembly queue is only bounded by the per netns ipfrag_high_thresh sysctl, which has no upper limit.

inet_frag_reasm_finish() sums the truesize of all fragments in an int. If this sum reaches 2^32, it wraps, and the final sk_wmem_alloc adjustment of the socket owning the reassembled skb can cancel its own reference, leading to a use-after-free of this socket.

This can be triggered from an unprivileged user/network namespace, raising ipfrag_high_thresh and using padded TUN packets, which keep a large truesize after being trimmed by ip_rcv_core().

Track the sum of the truesize of fragments in each queue, and refuse a fragment that would make it bigger than INT_MAX / 2. Callers kill the queue on this error. This bound is far above the needs of legitimate traffic.

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

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

	Issue introduced in 6.9 with commit 18685451fc4e546fc0e718580d32df3c0e5c8272 and fixed in 7.3.5 with commit b7f84486c44c2ce03dffe5f09a42a38acbaa1551
	Issue introduced in 6.9 with commit 18685451fc4e546fc0e718580d32df3c0e5c8272 and fixed in 7.4-rc2 with commit 3ae20e4697eb969104fe4b1e98a675f0100382b6
	Issue introduced in 5.4.285 with commit 1b6de5e6575b56502665c65cf93b0ae6aa0f51ab
	Issue introduced in 5.10.227 with commit 9705f447bf9a6cd088300ad2c407b5e1c6591091
	Issue introduced in 5.15.168 with commit 4318608dc28ef184158b4045896740716bea23f0
	Issue introduced in 6.1.85 with commit 7d0567842b78390dd9b60f00f1d8f838d540e325
	Issue introduced in 6.6.26 with commit f4877225313d474659ee53150ccc3d553a978727
	Issue introduced in 6.8.5 with commit e09cbe017311508c21e0739e97198a8388b98981

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-99709

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:
include/net/inet_frag.h
net/ipv4/inet_fragment.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/b7f84486c44c2ce03dffe5f09a42a38acbaa1551
	https://git.kernel.org/stable/c/3ae20e4697eb969104fe4b1e98a675f0100382b6