CVE-2026-99709
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 reasse…
Impact
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.
Affected products · Linux
| Product | Affected versions |
|---|---|
| Linux | from 18685451fc4e546fc0e718580d32df3c0e5c8272 before b7f84486c44c2ce03dffe5f09a42a38acbaa1551 from 18685451fc4e546fc0e718580d32df3c0e5c8272 before 3ae20e4697eb969104fe4b1e98a675f0100382b6 Versions 1b6de5e6575b56502665c65cf93b0ae6aa0f51ab, 9705f447bf9a6cd088300ad2c407b5e1c6591091, 4318608dc28ef184158b4045896740716bea23f0, 7d0567842b78390dd9b60f00f1d8f838d540e325 |