# CVE-2026-139793: inet: frags: bound the wmem charge of the socket completing a reassembly

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:38:03.174Z
- **Modified:** 2026-11-30T14:20:13.103Z

> **AI summary (AI-generated, claude-haiku-5-5):** A local user in an unprivileged namespace can leak sockets by completing many IP fragment reassemblies, pushing sk\_wmem\_alloc past INT\_MAX in the Linux kernel.

## Who should check

- Anyone running Linux \>= f4877225313d474659ee53150ccc3d553a978727, \< 2970a56311e4b26e12acdc9c53887243283e8b02; \>= 18685451fc4e546fc0e718580d32df3c0e5c8272, \< 6ee928d489fae99aa2108dff346b5afa142b9d3d; \>= 18685451fc4e546fc0e718580d32df3c0e5c8272, \< dad6663a5dbf5f23c5921f0e2d0709560d388fa6; \>= 18685451fc4e546fc0e718580d32df3c0e5c8272, \< 38f0414192e7ed0a7f250a64d5dfacd6d6139098; \>= 18685451fc4e546fc0e718580d32df3c0e5c8272, \< b71c101bbb9814d163c00234d43c41f0a17907d4; 1b6de5e6575b56502665c65cf93b0ae6aa0f51ab; 9705f447bf9a6cd088300ad2c407b5e1c6591091; 4318608dc28ef184158b4045896740716bea23f0; 7d0567842b78390dd9b60f00f1d8f838d540e325; e09cbe017311508c21e0739e97198a8388b98981; …
- Anyone running Linux 6.9

## 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.

## Affected and fixed versions

- Linux: \>= f4877225313d474659ee53150ccc3d553a978727, \< 2970a56311e4b26e12acdc9c53887243283e8b02; \>= 18685451fc4e546fc0e718580d32df3c0e5c8272, \< 6ee928d489fae99aa2108dff346b5afa142b9d3d; \>= 18685451fc4e546fc0e718580d32df3c0e5c8272, \< dad6663a5dbf5f23c5921f0e2d0709560d388fa6; \>= 18685451fc4e546fc0e718580d32df3c0e5c8272, \< 38f0414192e7ed0a7f250a64d5dfacd6d6139098; \>= 18685451fc4e546fc0e718580d32df3c0e5c8272, \< b71c101bbb9814d163c00234d43c41f0a17907d4; 1b6de5e6575b56502665c65cf93b0ae6aa0f51ab; 9705f447bf9a6cd088300ad2c407b5e1c6591091; 4318608dc28ef184158b4045896740716bea23f0; 7d0567842b78390dd9b60f00f1d8f838d540e325; e09cbe017311508c21e0739e97198a8388b98981; … (cvelist)
- Linux: 6.9 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139793. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139793.md
Affected: Linux >= f4877225313d474659ee53150ccc3d553a978727, < 2970a56311e4b26e12acdc9c53887243283e8b02; >= 18685451fc4e546fc0e718580d32df3c0e5c8272, < 6ee928d489fae99aa2108dff346b5afa142b9d3d; >= 18685451fc4e546fc0e718580d32df3c0e5c8272, < dad6663a5dbf5f23c5921f0e2d0709560d388fa6; >= 18685451fc4e546fc0e7185…
Fixed in: Linux 2970a56311e4b26e12acdc9c53887243283e8b02, Linux 6ee928d489fae99aa2108dff346b5afa142b9d3d, Linux 38f0414192e7ed0a7f250a64d5dfacd6d6139098

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139793 being exploited?

There is no confirmed exploitation: CVE-2026-139793 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139793?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139793?

Linux \>= f4877225313d474659ee53150ccc3d553a978727, \< 2970a56311e4b26e12acdc9c53887243283e8b02; \>= 18685451fc4e546fc0e718580d32df3c0e5c8272, \< 6ee928d489fae99aa2108dff346b5afa142b9d3d; \>= 18685451fc4e546fc0e718580d32df3c0e5c8272, \< dad6663a5dbf5f23c5921f0e2d0709560d388fa6; \>= 18685451fc4e546fc0e718580d32df3c0e5c8272, \< 38f0414192e7ed0a7f250a64d5dfacd6d6139098; \>= 18685451fc4e546fc0e718580d32df3c0e5c8272, \< b71c101bbb9814d163c00234d43c41f0a17907d4; 1b6de5e6575b56502665c65cf93b0ae6aa0f51ab; 9705f447bf9a6cd088300ad2c407b5e1c6591091; 4318608dc28ef184158b4045896740716bea23f0; 7d0567842b78390dd9b60f00f1d8f838d540e325; e09cbe017311508c21e0739e97198a8388b98981; …; Linux 6.9.

### Is there a fix for CVE-2026-139793?

Yes. Fixed in Linux 2970a56311e4b26e12acdc9c53887243283e8b02, Linux 6ee928d489fae99aa2108dff346b5afa142b9d3d, Linux 38f0414192e7ed0a7f250a64d5dfacd6d6139098. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-139793?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/2970a56311e4b26e12acdc9c53887243283e8b02>
- other: <https://git.kernel.org/stable/c/6ee928d489fae99aa2108dff346b5afa142b9d3d>
- other: <https://git.kernel.org/stable/c/dad6663a5dbf5f23c5921f0e2d0709560d388fa6>
- other: <https://git.kernel.org/stable/c/38f0414192e7ed0a7f250a64d5dfacd6d6139098>
- other: <https://git.kernel.org/stable/c/b71c101bbb9814d163c00234d43c41f0a17907d4>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139793>

HTML: <https://flawdb.com/CVE-2026-139793> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139793>
