GHSA-GW23-C93P-JX49
Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32In 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.
{
"affected": [],
"aliases": [
"CVE-2026-139313"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-30T14:18:55Z",
"severity": null
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Clear sk_refcnt of a clone before its storage is linked\n\nsk_clone() sets sk_refcnt of the new socket some lines behind\nbpf_sk_storage_clone(). But the elements which that function copies are\nlinked to their maps at once, and an element leads to its owner: the\niterator over a sk_storage map hands the owner to its program.\nbpf_sk_storage_get() with BPF_SK_STORAGE_GET_F_CREATE and\nbpf_sk_storage_delete() rely on refcount_inc_not_zero() to tell whether\nthey may touch the socket.\n\nsk_refcnt is in the part of struct sock which sock_copy() leaves out, and\nsk_prot_alloc() does not clear a clone unless init_on_alloc is on. It is\nzero in an object which has been a socket before, and anything in one\nwhich has not. If it is not zero, a helper gets a reference which\nrefcount_set() wipes out, and the helper\u0027s sock_put() then drops one of\nthe two references of the new socket, which is freed too early:\n\n IPv4: Attempt to release TCP socket in state 1\n BUG: KASAN: slab-use-after-free in __raw_spin_lock_init+0x47/0x90\n\nIn the meantime the helper changes a storage which bpf_sk_storage_clone()\nfills without taking its lock.\n\nNothing else can find the clone at this point. Say that it is not alive\nyet, before the first element is linked. Sockets whose parent has no\nstorage are left alone.",
"id": "GHSA-gw23-c93p-jx49",
"modified": "2026-11-30T15:32:26Z",
"published": "2026-11-30T15:32:26Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139313"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/1e49688900d8bddc0cf626ba5cc780c34b58ef58"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/22f100bd013458836c3d0eaf8050b854d7534a66"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/28051395df6e8829f7f168c6eef4a4e411cbbc37"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/856649a34a66e1e485ecfee12d0f9e7f02896d52"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/a5b2375d755a6f7841ef25301bc824e089060454"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/e43a39cdd14639bba5c7b66d1e99ea4948cec04c"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/fc6d7288e0521de69b6e130278563138551e5c7e"
}
],
"schema_version": "1.4.0",
"severity": []
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.