CVE-2026-139219: net: shrink the payload-only part of skb dataref to one bit

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: shrink the payload-only part of skb dataref to one bit

skbshinfo(skb)->dataref is split in two 16-bit halves: the lower one counts all references, the upper one the payload-only (nohdr) references.

skbclone() increments dataref without bound, and skbcloned() only checks the low 16 bits. With 65,537 references the low half reads 1, the head looks private, and pskbexpandhead() (or skbunclone(), skbcow(), ...) frees it while clones still point to it.

An unprivileged user can reach this from a user and network namespace: about 32,770 AFPACKET sockets on lo bring dataref to 0x10001, then any pskbexpandhead() on the receive path (here a pull of a large IPv6 Hop-by-Hop header) frees the shared head:

BUG: KASAN: slab-use-after-free in copytoiter+0x187/0x1330 Read of size 1590 at addr ff110001104a9002 by task datarefwrap/87 skbcopydatagramiter+0x60/0x190 packetrecvmsg+0x1f5/0x12b0 sysrecvfrom+0x18d/0x290 Freed by task 87: kfree+0xf3/0x3b0 pskbexpandhead+0x344/0xeb0 pskbpulltail+0xf9/0x1bf0 ipv6parsehopopts+0x377/0x4f0 ip6rcvcore+0xc67/0x1620

The upper half never holds more than 1. It is only set by skbheaderrelease(), with atomicset() on an skb owning its head (TCP/SCTP output, and GRO which never sees cloned skbs). skbclone() clears nohdr, and copyskbheader() does not copy it.

Move SKBDATAREFSHIFT to 30, so that the reference count gets 30 bits, and dataref stays positive. Wrapping it would need 2^30 live clones of a single skb, which socket buffer limits and memory make unreachable.

This issue was found by Anthropic using Claude, and validated by Ada Logics.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:32 PM
Data Sourced
via MITRE·01:32 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203