Linux kernel IP reassembly can leak sockets via wmem charge overflow
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel charges the size of the other fragments to the send memory counter of the socket that completes an IP fragment reassembly. The per-queue cap does not stop one socket from completing several reassemblies, so that counter can pass INT_MAX and the socket is leaked. An unprivileged user in a user or network namespace can reach this by raising ipfrag_high_thresh. The flaw was found by code inspection and was not reproduced.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 6.6.26 to before 6.6.163; 5.4.285 to before 5.5; 5.10.227 to before 5.11; 5.15.168 to before 5.16; 6.1.85 to before 6.2; 6.8.5 to before 6.9 | 6.6.163, 5.5, 5.11, 5.16, 6.2, 6.9 | Patch available | CNA |
| Linux | Linux | 6.9 and later | 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc3 | Patch available | CNA |
- Linux VendorLinux Affected 6.6.26 to before 6.6.163; 5.4.285 to before 5.5; 5.10.227 to before 5.11; 5.15.168 to before 5.16; 6.1.85 to before 6.2; 6.8.5 to before 6.9 Fixed in 6.6.163, 5.5, 5.11, 5.16, 6.2, 6.9 Patch available CNA
- Linux VendorLinux Affected 6.9 and later Fixed in 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc3 Patch available CNA
Remediation
Fixed versions for the Linux kernel are 6.6.163, 5.5, 5.11, 5.16, 6.2, 6.9, 6.12.119, 6.18.65, 7.3.6 and 7.4-rc3, so upgrade to the fixed release of the branch in use.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 6.6.163, 5.5, 5.11, 5.16, 6.2, 6.9
- Fix · CNA Linux (Linux) Fixed in 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc3
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139793
- 2026-11-30 Alias added: GHSA-9xwx-hp55-684h
References
Other 5
- https://git.kernel.org/stable/c/2970a56311e4b26e12acdc9c53887243283e8b02
- https://git.kernel.org/stable/c/6ee928d489fae99aa2108dff346b5afa142b9d3d
- https://git.kernel.org/stable/c/dad6663a5dbf5f23c5921f0e2d0709560d388fa6
- https://git.kernel.org/stable/c/38f0414192e7ed0a7f250a64d5dfacd6d6139098
- https://git.kernel.org/stable/c/b71c101bbb9814d163c00234d43c41f0a17907d4
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139793 · CVE Program
- CVE-2026-139793 · NVD
- GHSA-9xwx-hp55-684h · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences