{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-139313 in the wild and no public exploit code.","exposure":"","fix":"Upgrade to a fixed version.","what":"CVE-2026-139313 is a vulnerability in Linux, published on 30 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-139313 and fix it if it is affected.\n\nWhat it is: CVE-2026-139313 is a vulnerability in Linux, published on 30 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-139313 in the wild and no public exploit code.\n\nAffected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-139313/ (Markdown: https://insights.sbomify.com/CVE-2026-139313/index.md)","id":"CVE-2026-139313","markdown":"https://insights.sbomify.com/CVE-2026-139313/index.md","name":"CVE-2026-139313","record":{"aliases":["BELL-CVE-2026-139313","DEBIAN-CVE-2026-139313","GHSA-gw23-c93p-jx49","UBUNTU-CVE-2026-139313"],"analysis":null,"analysis_generated_by":null,"assigner":"Linux","component":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"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's 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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"bpf: Clear sk_refcnt of a clone before its storage is linked","id":"CVE-2026-139313","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":null,"year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":7,"n_vendor_status":0,"next":{"headline":"bpf: Update the SRH state if End.B6 fails late","id":"CVE-2026-139314"},"nickname":null,"packages":[],"prev":{"headline":"bpf: Fix NULL deref in the sk_storage map iterator","id":"CVE-2026-139312"},"products":["Linux"],"published":"2026-11-30","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-30","vendor_status":[],"vendors":["Linux"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-139313/"}