Skip to main content
VulnerabilityPublished

CVE-2026-139313: Linux kernel · bpf: Clear sk_refcnt of a clone before its storage is linked

Affects Linux kernelSource CVE Database V5

0
Compare

Not known to be exploited · fixed in fc6d7288e0521de69b6e130278563138551e5c7e : update Linux kernel when convenient.

Data as of 30 Nov 2026, 14:00 UTC

Severity
Unrated

Rated by Threat Radar · CVSS not yet scored by NVD

Thin evidence

One scorer or none
Patch
Available – fixed in fc6d7288e0521de69b6e130278563138551e5c7e, e43a39cdd14639bba5c7b66d1e99ea4948cec04c, a5b2375d755a6f7841ef25301bc824e089060454 +4

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 30 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
LinuxLinuxAffected
  • ≥ a50a85e40c59cf27ca3b324a5aa4c7f35314f251, < fc6d7288e0521de69b6e130278563138551e5c7e
Fixed in
  • fc6d7288e0521de69b6e130278563138551e5c7e
LinuxLinuxAffected
  • ≥ a50a85e40c59cf27ca3b324a5aa4c7f35314f251, < e43a39cdd14639bba5c7b66d1e99ea4948cec04c
Fixed in
  • e43a39cdd14639bba5c7b66d1e99ea4948cec04c
LinuxLinuxAffected
  • ≥ a50a85e40c59cf27ca3b324a5aa4c7f35314f251, < a5b2375d755a6f7841ef25301bc824e089060454
Fixed in
  • a5b2375d755a6f7841ef25301bc824e089060454
LinuxLinuxAffected
  • ≥ a50a85e40c59cf27ca3b324a5aa4c7f35314f251, < 28051395df6e8829f7f168c6eef4a4e411cbbc37
Fixed in
  • 28051395df6e8829f7f168c6eef4a4e411cbbc37
LinuxLinuxAffected
  • ≥ a50a85e40c59cf27ca3b324a5aa4c7f35314f251, < 856649a34a66e1e485ecfee12d0f9e7f02896d52
Fixed in
  • 856649a34a66e1e485ecfee12d0f9e7f02896d52
LinuxLinuxAffected
  • ≥ a50a85e40c59cf27ca3b324a5aa4c7f35314f251, < 22f100bd013458836c3d0eaf8050b854d7534a66
Fixed in
  • 22f100bd013458836c3d0eaf8050b854d7534a66

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Clear sk_refcnt of a clone before its storage is linked sk_clone() sets sk_refcnt of the new socket some lines behind bpf_sk_storage_clone(). But the elements which that function copies are linked to their maps at once, and an element leads to its owner: the iterator over a sk_storage map hands the owner to its program. bpf_sk_storage_get() with BPF_SK_STORAGE_GET_F_CREATE and bpf_sk_storage_delete() rely on refcount_inc_not_zero() to tell whether they may touch the socket. sk_refcnt is in the part of struct sock which sock_copy() leaves out, and sk_prot_alloc() does not clear a clone unless init_on_alloc is on. It is zero in an object which has been a socket before, and anything in one which has not. If it is not zero, a helper gets a reference which refcount_set() wipes out, and the helper's sock_put() then drops one of the two references of the new socket, which is freed too early: IPv4: Attempt to release TCP socket in state 1 BUG: KASAN: slab-use-after-free in __raw_spin_lock_init+0x47/0x90 In the meantime the helper changes a storage which bpf_sk_storage_clone() fills without taking its lock. Nothing else can find the clone at this point. Say that it is not alive yet, before the first element is linked. Sockets whose parent has no storage are left alone.

References

Community reviews

Loading reviews…