PT-2026-163834

CVE-2026-139793

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
inet: frags: bound the wmem charge of the socket completing a reassembly
When a socket owned fragment completes a reassembly queue, inet frag reasm prepare() and inet frag reasm finish() charge the truesize of all other fragments to its sk wmem alloc. These fragments were orphaned when queued, and might have been sent by someone else, for instance padded TUN packets.
Commit 3ae20e4697eb ("inet: frags: limit the truesize of a reassembly queue") bounds this charge to INT MAX / 2 per queue, but a socket can complete several queues while the reassembled skbs are still alive, for instance held in a qdisc. sk wmem alloc can then go past INT MAX, refcount add() saturates it with a WARN, and the socket is leaked.
This is reachable from an unprivileged user/network namespace, by raising ipfrag high thresh.
Refuse the reassembly if the charge would push sk wmem alloc above 2 * sk sndbuf, the bound ip append data() uses, plus 4MB of slack for fragments inflated by a refragmentation with a small MTU, and never above INT MAX / 2. The cap matters for tun sockets, which use sk sndbuf = INT MAX, and whose skbs are still owned when act ct or openvswitch reassemble them at ingress.
Several queues can complete at the same time on different cpus for the same socket, so the charge is reserved with a cmpxchg() loop in inet frag reasm prepare(), before it modifies the queue, and settled in inet frag reasm finish(). Move the size checks of ip frag reasm(), ip6 frag reasm() and nf ct frag6 reasm() before inet frag reasm prepare(), using the first fragment which becomes the head, so that a successful inet frag reasm prepare() is always followed by inet frag reasm finish(). All callers already kill the queue when inet frag reasm prepare() returns NULL.
Found by code inspection (AI review), not reproduced.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾