{"id":"CVE-2026-139219","aliases":["CVE-2026-139219"],"related":[],"kind":"vulnerability","state":"published","title":"net: shrink the payload-only part of skb dataref to one bit","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: shrink the payload-only part of skb dataref to one bit\n\nskb_shinfo(skb)->dataref is split in two 16-bit halves: the lower\none counts all references, the upper one the payload-only (nohdr)\nreferences.\n\n__skb_clone() increments dataref without bound, and skb_cloned()\nonly checks the low 16 bits. With 65,537 references the low half\nreads 1, the head looks private, and pskb_expand_head() (or\nskb_unclone(), skb_cow(), ...) frees it while clones still point\nto it.\n\nAn unprivileged user can reach this from a user and network namespace:\nabout 32,770 AF_PACKET sockets on lo bring dataref to 0x10001, then\nany pskb_expand_head() on the receive path (here a pull of a large\nIPv6 Hop-by-Hop header) frees the shared head:\n\nBUG: KASAN: slab-use-after-free in _copy_to_iter+0x187/0x1330\nRead of size 1590 at addr ff110001104a9002 by task dataref_wrap/87\n skb_copy_datagram_iter+0x60/0x190\n packet_recvmsg+0x1f5/0x12b0\n __sys_recvfrom+0x18d/0x290\nFreed by task 87:\n kfree+0xf3/0x3b0\n pskb_expand_head+0x344/0xeb0\n __pskb_pull_tail+0xf9/0x1bf0\n ipv6_parse_hopopts+0x377/0x4f0\n ip6_rcv_core+0xc67/0x1620\n\nThe upper half never holds more than 1. It is only set by\n__skb_header_release(), with atomic_set() on an skb owning its head\n(TCP/SCTP output, and GRO which never sees cloned skbs).\n__skb_clone() clears nohdr, and __copy_skb_header() does not copy it.\n\nMove SKB_DATAREF_SHIFT to 30, so that the reference count gets 30 bits,\nand dataref stays positive. Wrapping it would need 2^30 live clones of\na single skb, which socket buffer limits and memory make unreachable.\n\nThis issue was found by Anthropic using Claude, and validated by\nAda Logics.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: shrink the payload-only part of skb dataref to one bit\n\nskb_shinfo(skb)->dataref is split in two 16-bit halves: the lower\none counts all references, the upper one the payload-only (nohdr)\nreferences.\n\n__skb_clone() increments dataref without bound, and skb_cloned()\nonly checks the low 16 bits. With 65,537 references the low half\nreads 1, the head looks private, and pskb_expand_head() (or\nskb_unclone(), skb_cow(), ...) frees it while clones still point\nto it.\n\nAn unprivileged user can reach this from a user and network namespace:\nabout 32,770 AF_PACKET sockets on lo bring dataref to 0x10001, then\nany pskb_expand_head() on the receive path (here a pull of a large\nIPv6 Hop-by-Hop header) frees the shared head:\n\nBUG: KASAN: slab-use-after-free in _copy_to_iter+0x187/0x1330\nRead of size 1590 at addr ff110001104a9002 by task dataref_wrap/87\n skb_copy_datagram_iter+0x60/0x190\n packet_recvmsg+0x1f5/0x12b0\n __sys_recvfrom+0x18d/0x290\nFreed by task 87:\n kfree+0xf3/0x3b0\n pskb_expand_head+0x344/0xeb0\n __pskb_pull_tail+0xf9/0x1bf0\n ipv6_parse_hopopts+0x377/0x4f0\n ip6_rcv_core+0xc67/0x1620\n\nThe upper half never holds more than 1. It is only set by\n__skb_header_release(), with atomic_set() on an skb owning its head\n(TCP/SCTP output, and GRO which never sees cloned skbs).\n__skb_clone() clears nohdr, and __copy_skb_header() does not copy it.\n\nMove SKB_DATAREF_SHIFT to 30, so that the reference count gets 30 bits,\nand dataref stays positive. Wrapping it would need 2^30 live clones of\na single skb, which socket buffer limits and memory make unreachable.\n\nThis issue was found by Anthropic using Claude, and validated by\nAda Logics.","source":"cvelist"}],"published":"2026-11-30T13:32:41.809Z","modified":"2026-12-01T06:17:39.537Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"4a1cbfa8fc3e2f33e4def55b6007b04c502a563a","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"81a535f1b4c2d95039375c1e40d6559b5768f880","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"b1516e9a12af67539599711d20e664fbc9cb30fc","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"2cc19452f4245a78ac6ab0ecc0176e907130d0ba","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"1dc2a6858c7f8522ac22249cd44d58b5b7aa655a","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"4957ea03bf2696f5da12c09144f48d040696ecc2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/4a1cbfa8fc3e2f33e4def55b6007b04c502a563a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/81a535f1b4c2d95039375c1e40d6559b5768f880","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b1516e9a12af67539599711d20e664fbc9cb30fc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2cc19452f4245a78ac6ab0ecc0176e907130d0ba","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1dc2a6858c7f8522ac22249cd44d58b5b7aa655a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4957ea03bf2696f5da12c09144f48d040696ecc2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139219","url":"https://www.cve.org/CVERecord?id=CVE-2026-139219","licence":"CVE Terms of Use","modified":"2026-12-01T05:41:53.605Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139219","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139219","licence":"Public domain","modified":"2026-12-01T06:17:39.537Z"}],"updatedAt":"2026-12-01T06:32:20.790Z","epss":{"score":0.00182,"percentile":0.08147,"date":"2026-12-01T12:00:22.000Z"}}