CVE-2026-139793

inet: frags: bound the wmem charge of the socket completing a reassembly

No CVSS score yet EPSS 0.33%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-139793

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139793 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.33%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 27.9% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from f4877225313d474659ee53150ccc3d553a978727, before 2970a56311e4b26e12acdc9c53887243283e8b02
affected from 18685451fc4e546fc0e718580d32df3c0e5c8272, before 6ee928d489fae99aa2108dff346b5afa142b9d3d
affected from 18685451fc4e546fc0e718580d32df3c0e5c8272, before dad6663a5dbf5f23c5921f0e2d0709560d388fa6
affected from 18685451fc4e546fc0e718580d32df3c0e5c8272, before 38f0414192e7ed0a7f250a64d5dfacd6d6139098
affected from 18685451fc4e546fc0e718580d32df3c0e5c8272, before b71c101bbb9814d163c00234d43c41f0a17907d4
affected 1b6de5e6575b56502665c65cf93b0ae6aa0f51ab
affected 9705f447bf9a6cd088300ad2c407b5e1c6591091
affected 4318608dc28ef184158b4045896740716bea23f0
affected 7d0567842b78390dd9b60f00f1d8f838d540e325
affected e09cbe017311508c21e0739e97198a8388b98981
affected from 6.6.26, before 6.6.163
affected from 5.4.285, before 5.5
affected from 5.10.227, before 5.11
affected from 5.15.168, before 5.16
affected from 6.1.85, before 6.2
affected from 6.8.5, before 6.9
Other versions: unaffected
Linux
affected 6.9
unaffected before 6.9
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.119 up to and including 6.12.*
unaffected from 6.18.65 up to and including 6.18.*
unaffected from 7.3.6 up to and including 7.3.*
unaffected 7.4-rc3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139793 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139793

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-139793
trivy image --scanners vuln IMAGE | grep CVE-2026-139793

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-139793 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.