Linux kernel socket leak in IP fragment reassembly accounting
- Exploited
- No known exploitation
- Fix
- Fixed in 6.6.163, 5.5, 5.11, 5.16, 6.2, and 1 more
- Who is exposed
- Not reported
Summary
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.
What to do
Upgrade to a fixed version: 6.6.163, 5.5, 5.11, 5.16, 6.2, or one of 1 more.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-139793 (inet: frags: bound the wmem charge of the socket completing a reassembly), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-139793 (entry last updated 2026-11-30):
Affected:
- Linux Linux: from 6.6.26, fixed in 6.6.163; from 5.4.285, fixed in 5.5; from 5.10.227, fixed in 5.11; from 5.15.168, fixed in 5.16; from 6.1.85, fixed in 6.2; from 6.8.5, fixed in 6.9
- Linux Linux: versions 6.9
Fixed versions: 6.6.163, 5.5, 5.11, 5.16, 6.2, 6.9.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-139793 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-139793 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- 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
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-139793
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-139793"}.Affected versions
- Linux LinuxFrom 6.6.26 · fixed in 6.6.163; From 5.4.285 · fixed in 5.5; From 5.10.227 · fixed in 5.11; From 5.15.168 · fixed in 5.16; From 6.1.85 · fixed in 6.2; From 6.8.5 · fixed in 6.9
- Linux Linux6.9
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure?/25Unknown. No advisory context yet
- Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
- Severity?/10Unknown. No CVSS score or vendor rating
- No patch0/5No signal
What would change the score
- Would score about 75 if added to CISA KEV
- Would score about 70 if CISA's SSVC rates exploitation active
- Would score about 42 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now
Evidence 7
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-139793 |
| Record | NVD · CVE-2026-139793 |
| Other links 5 | |
| Link | git.kernel.org · stable/c/2970a56311e4b26e12acdc9c53887243283e8b02 |
| Link | git.kernel.org · stable/c/6ee928d489fae99aa2108dff346b5afa142b9d3d |
| Link | git.kernel.org · stable/c/dad6663a5dbf5f23c5921f0e2d0709560d388fa6 |
| Link | git.kernel.org · stable/c/38f0414192e7ed0a7f250a64d5dfacd6d6139098 |
| Link | git.kernel.org · stable/c/b71c101bbb9814d163c00234d43c41f0a17907d4 |
Questions about CVE-2026-139793
Is CVE-2026-139793 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-139793?
Linux: from 6.6.26 before 6.6.163; from 5.4.285 before 5.5; from 5.10.227 before 5.11; from 5.15.168 before 5.16; from 6.1.85 before 6.2; from 6.8.5 before 6.9. Linux: version 6.9.
Source: cve.now feed data
How do I fix CVE-2026-139793?
Upgrade to a fixed version: 6.6.163, 5.5, 5.11, 5.16, 6.2, or one of 1 more.
Source: cve.now feed data
Related
- CVE-2026-139801KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
- CVE-2026-1398009p/xen: drain response work after unbinding IRQ
- CVE-2026-139799mm/shmem: hold off eviction in shmem_writeout()
- CVE-2026-139798mm: do not unintentionally overwrite atomic VMA flags
- CVE-2026-139797ocfs2/cluster: hold a reference on the heartbeat thread
- CVE-2026-139796ocfs2/heartbeat: serialize concurrent writes to a region's dev attribute
No corrections so far. Something wrong on this page? Report an error.