CVE-2026-139219: Linux kernel counts socket-buffer references in sixteen bits, so about 65,537 clones make a shared packet buffer look private and it is freed while clones still point at it

ByLinuxtastic

December 3, 2026 #CVE, #Linux Kernel

Every socket buffer’s shared data area carries a reference count, skb_shinfo(skb)->dataref, and the kernel CNA record describes how it is laid out: “dataref is split in two 16-bit halves: the lower one counts all references, the upper one the payload-only (nohdr) references.” Cloning increments it without a ceiling, and the test for whether a buffer may be modified in place looks only at the low half: “__skb_clone() increments dataref without bound, and skb_cloned() only checks the low 16 bits. With 65,537 references the low half reads 1, the head looks private, and pskb_expand_head() (or skb_unclone(), skb_cow(), …) frees it while clones still point to it.” The record gives the unprivileged path: “about 32,770 AF_PACKET sockets on lo bring dataref to 0x10001, then any pskb_expand_head() on the receive path (here a pull of a large IPv6 Hop-by-Hop header) frees the shared head”. The CNA and Red Hat score it 7.8. Upgrade to a kernel at or above 6.1.193, 6.6.163, 6.12.119, 6.18.65 or 7.3.6 and reboot; there is no module to unload, the path is core networking.

CVE-2026-139219 at a glance.

ComponentLinux kernel, core socket-buffer handling (include/linux/skbuff.h): the width of SKB_DATAREF_SHIFT and the dataref count that skb_cloned() reads
Affected versionsmainline 2.6.12 up to 7.4-rc1 (the Fixes: tag is the first git commit, “Linux-2.6.12-rc2”); 6.1.x below 6.1.193, 6.6.x below 6.6.163, 6.12.x below 6.12.119, 6.18.x below 6.18.65, 7.3.x below 7.3.6
Fixed inmainline 7.4-rc1 (commit 4957ea03, the one Debian cites) and stable 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6. The fix moves SKB_DATAREF_SHIFT to 30 “so that the reference count gets 30 bits, and dataref stays positive”; wrapping would then need 2^30 live clones, which “socket buffer limits and memory make unreachable”; skbuff.h +4/−4
SeverityKernel CNA CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H); NVD’s copy carried no metric at all on 2 December; Red Hat Important, 7.8 on the same vector (draft, CWE-825, use after free), bug 2587159 “Privilege escalation via network packet buffer reference count overflow”; Ubuntu Medium, no score
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS: no score yet on 2 December 2026
Who is exposedAny host where an unprivileged user can open about thirty-two thousand packet sockets, which a user namespace grants without privilege; Red Hat’s statement: “local users can establish unprivileged user and network namespaces to obtain packet socket permissions without administrative intervention”, and “systems hosting unprivileged multi-user workloads or untrusted container environments face substantial risk”. Not reachable over the network. Found by Anthropic using Claude, validated by Ada Logics
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

A socket buffer can be cloned so that several sk_buff structures share one data area; dataref counts how many. When code wants to change the bytes in place, skb_cloned() asks whether anyone else is looking, and if the answer is no it writes; if yes, pskb_expand_head() and its relatives make a private copy and drop a reference. The count is a single 32-bit word split in two: the low sixteen bits count every reference, the high sixteen count the “nohdr” references that see only the payload. skb_cloned() masks off the low half, so once that half wraps past 65,535 it reads a small number, and at exactly 65,537 references it reads 1, the value that means “only me”.

At that point the buffer looks private to code that is about to modify it. The record’s path is entirely unprivileged: roughly 32,770 AF_PACKET sockets bound to loopback, each cloning the same incoming buffer, bring the low half to 0x0001 with the true count at 0x10001; then any receive-path operation that expands the head, the record uses a pull of a large IPv6 Hop-by-Hop options header, sees an unshared buffer and frees the shared data while the other 65,536 clones still point into it. The KASAN report in the record is a slab-use-after-free read of 1,590 bytes in _copy_to_iter() under packet_recvmsg(), freed by pskb_expand_head() on the IPv6 input path.

The record explains why only the low half overflows: the high half “never holds more than 1”, because it is set by __skb_header_release() with atomic_set() on a buffer that owns its head, and clones clear it. The fix, by Eric Dumazet and committed by Jakub Kicinski, shrinks the payload-only part to a single bit and gives the reference count the other 30, so a wrap would need 2^30 live clones, far beyond what socket memory limits allow. The commit credits the finders: “This issue was found by Anthropic using Claude, and validated by Ada Logics”, reported by Stephan Lipp of Ada Logics. git.kernel.org refuses automated readers, so the commit was read on GitHub.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. The code is as old as git history, so every supported kernel has it; Red Hat marks RHEL 6 through 10 and every OpenShift CoreOS image affected.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026—
Debianbookworm (6.1.176-1, security 6.1.192-3) vulnerable; trixie (6.12.117-1, security 6.12.118-1) vulnerable; fixed in forky and sid (7.3.6-1); no DSAunstable 7.3.6-1; nothing for trixie or bookworm on 2 December 2026
UbuntuMedium, no Ubuntu CVSS yet; linux needs evaluation in every supported release from 14.04 to 26.10 (no version named); no USNnothing released on 2 December 2026
RHEL, Rocky, Alma, CentOS StreamImportant, 7.8 (bug 2587159, CWE-825); RHEL 6 (ELS), 7 (ELS), 8, 9 and 10 kernel and the RHEL 7, 8 and 9 kernel-rt affected, no errata yet; every OpenShift 4 and 5 CoreOS image affectednothing released on 2 December 2026
openSUSE/SLENot consulted: suse.com refused the automated reader on 2 December 2026 (client error)—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply6.1.193 / 6.6.163 / 6.12.119 / 6.18.65 / 7.3.6 or later

How to check

Two questions settle most hosts: which kernel is running, and can an unprivileged user here open tens of thousands of packet sockets. The second depends on unprivileged user namespaces and the open-files limit.

# 1. the running kernel (compare with the fixed stable version for its series)
uname -r

# 2. can an unprivileged user get AF_PACKET sockets: user namespaces grant CAP_NET_RAW inside the namespace
sysctl kernel.unprivileged_userns_clone 2>/dev/null       # Debian/Ubuntu knob; absent on RHEL where it is on
sysctl user.max_user_namespaces
ulimit -Hn                                                # the per-process open-files ceiling the clones need
# containers: an unprivileged container with a user namespace is the untrusted-tenant case
grep -c . /proc/self/uid_map 2>/dev/null

A kernel at or above the fixed stable version for its series is done. A host that sets kernel.unprivileged_userns_clone=0, or user.max_user_namespaces=0, denies the unprivileged path its packet sockets, which is a real narrowing on a single-tenant box; it is not a fix, because a process that already has CAP_NET_RAW can take the same path, and a container host hands out user namespaces by design. The log signature is the record’s: a KASAN slab-use-after-free read in _copy_to_iter() under packet_recvmsg(), or without KASAN an oops on the receive path after a burst of packet-socket activity.

How to fix it

Install the fixed kernel and reboot. Debian forky and sid had 7.3.6-1 on 2 December; Debian trixie and bookworm, Ubuntu and Red Hat had it pending. The record lists no mitigation, but restricting unprivileged user namespaces reduces who can reach it in the meantime.

# Debian forky / sid (trixie and bookworm once a security update names this CVE)
apt update && apt install linux-image-amd64 && systemctl reboot
# Ubuntu, RHEL family, SUSE: when the pending builds land
apt update && apt full-upgrade && systemctl reboot
dnf update kernel && systemctl reboot
zypper patch && systemctl reboot
# Interim narrowing on a single-tenant host (not a fix; does nothing against a process that already has CAP_NET_RAW)
sysctl -w kernel.unprivileged_userns_clone=0        # Debian/Ubuntu
printf 'kernel.unprivileged_userns_clone = 0\n' > /etc/sysctl.d/90-userns.conf

Turning off unprivileged user namespaces keeps an ordinary user from minting the CAP_NET_RAW the attack needs, and on a server that runs no unprivileged containers that is a reasonable interim step; on a container host it breaks the workload and is not an option, which is exactly the environment Red Hat calls the higher risk. What not to do: do not treat a low open-files limit as protection, since the attacker only needs the limit raised for their own process, which they control; and do not assume the flaw is theoretical because the count is large, as the record’s own reproducer reaches it in one burst. The fixed kernel removes the wrap.

Sources

  • CVE-2026-139219 at CVE.org — the kernel CNA record: the “split in two 16-bit halves”, “65,537 references the low half reads 1” and “found by Anthropic using Claude, and validated by Ada Logics” sentences, the KASAN trace, the git range, include/linux/skbuff.h (30 November 2026)
  • Fix commit 4957ea03 (mainline, 7.4-rc1) and the stable backports in the record; git.kernel.org refuses automated readers, so it was read on GitHub: Eric Dumazet, committed by Jakub Kicinski, Fixes: 1da177e4c3f4 (“Linux-2.6.12-rc2”), Reported-by: Stephan Lipp (Ada Logics), skbuff.h +4/−4
  • NVD entry — Received on 30 November 2026; NVD’s copy carried no CVSS, CWE or CPE on 2 December (the CNA’s 7.8 is on the CVE.org record)
  • Distribution trackers: Debian (bookworm and trixie vulnerable, forky and sid fixed in 7.3.6-1) · Ubuntu (Medium; needs evaluation) · Red Hat (Important 7.8, RHEL 6 to 10 affected, bug 2587159) · SUSE (not reachable on 2 December)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS no score on 2 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.