CVE-2026-139793
publishedinet: frags: bound the wmem charge of the socket completing a reassembly
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxf4877225313d474659ee53150ccc3d553a978727 to < 2970a56311e4b26e12acdc9c53887243283e8b02 · 18685451fc4e546fc0e718580d32df3c0e5c8272 to < 6ee928d489fae99aa2108dff346b5afa142b9d3d · 18685451fc4e546fc0e718580d32df3c0e5c8272 to < dad6663a5dbf5f23c5921f0e2d0709560d388fa6 · 18685451fc4e546fc0e718580d32df3c0e5c8272 to < 38f0414192e7ed0a7f250a64d5dfacd6d6139098 · 18685451fc4e546fc0e718580d32df3c0e5c8272 to < b71c101bbb9814d163c00234d43c41f0a17907d4 · 1b6de5e6575b56502665c65cf93b0ae6aa0f51ab · 9705f447bf9a6cd088300ad2c407b5e1c6591091 · 4318608dc28ef184158b4045896740716bea23f0 · 7d0567842b78390dd9b60f00f1d8f838d540e325 · e09cbe017311508c21e0739e97198a8388b98981 · 6.6.26 to < 6.6.163 · 5.4.285 to < 5.5 · 5.10.227 to < 5.11 · 5.15.168 to < 5.16 · 6.1.85 to < 6.2 · 6.8.5 to < 6.9 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc3 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | f4877225313d474659ee53150ccc3d553a978727 to < 2970a56311e4b26e12acdc9c53887243283e8b02 (affected · git)18685451fc4e546fc0e718580d32df3c0e5c8272 to < 6ee928d489fae99aa2108dff346b5afa142b9d3d (affected · git)18685451fc4e546fc0e718580d32df3c0e5c8272 to < dad6663a5dbf5f23c5921f0e2d0709560d388fa6 (affected · git)18685451fc4e546fc0e718580d32df3c0e5c8272 to < 38f0414192e7ed0a7f250a64d5dfacd6d6139098 (affected · git)18685451fc4e546fc0e718580d32df3c0e5c8272 to < b71c101bbb9814d163c00234d43c41f0a17907d4 (affected · git)1b6de5e6575b56502665c65cf93b0ae6aa0f51ab (affected · git)9705f447bf9a6cd088300ad2c407b5e1c6591091 (affected · git)4318608dc28ef184158b4045896740716bea23f0 (affected · git)7d0567842b78390dd9b60f00f1d8f838d540e325 (affected · git)e09cbe017311508c21e0739e97198a8388b98981 (affected · git)6.6.26 to < 6.6.163 (affected · semver)5.4.285 to < 5.5 (affected · semver)5.10.227 to < 5.11 (affected · semver)5.15.168 to < 5.16 (affected · semver)6.1.85 to < 6.2 (affected · semver)6.8.5 to < 6.9 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc3 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/2970a56311e4b26e12acdc9c53887243283e8b02
- https://git.kernel.org/stable/c/38f0414192e7ed0a7f250a64d5dfacd6d6139098
- https://git.kernel.org/stable/c/6ee928d489fae99aa2108dff346b5afa142b9d3d
- https://git.kernel.org/stable/c/b71c101bbb9814d163c00234d43c41f0a17907d4
- https://git.kernel.org/stable/c/dad6663a5dbf5f23c5921f0e2d0709560d388fa6
Provider assertions
1Linux · cna
inet: frags: bound the wmem charge of the socket completing a reassembly
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 621d414be3c7f6a6f84722b87558506a27c39c6c8a79731ee82b2779858047a0
- Ingested
- 30 Nov 2026, 13:43:50 UTC
- Source record
- Official CVE record