{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-139323 in the wild and no public exploit code.","exposure":"","fix":"Upgrade to a fixed version.","what":"CVE-2026-139323 is a vulnerability in Linux, published on 30 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-139323 and fix it if it is affected.\n\nWhat it is: CVE-2026-139323 is a vulnerability in Linux, published on 30 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-139323 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-139323/ (Markdown: https://insights.sbomify.com/CVE-2026-139323/index.md)","id":"CVE-2026-139323","markdown":"https://insights.sbomify.com/CVE-2026-139323/index.md","name":"CVE-2026-139323","record":{"aliases":["AZL-117064","BELL-CVE-2026-139323","DEBIAN-CVE-2026-139323","GHSA-rcf8-c9g4-xcmc","UBUNTU-CVE-2026-139323"],"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: Don't hand out a linked element as extra element\n\nWhen htab_map_update_elem() replaces an element of a preallocated map,\nalloc_htab_elem() takes the spare element of this cpu and puts the old\nelement into the per-cpu slot right away, long before the old element is\nunlinked from its bucket.  The bucket lock disables interrupts, but it\ndoes not keep out an NMI, or a tracing program on the return of\nalloc_htab_elem().  bpf_prog_active only helps if both programs are\nkprobe, tracepoint or perf_event programs.  A program that updates an\nexisting key in another bucket of the same map gets to use the slot:\n\n  htab_map_update_elem(k1)              tc, xdp, fentry, raw_tp, ...\n    alloc_htab_elem()\n      l_new = *pl_new\n      *pl_new = l_old                   still linked in bucket 1\n      \u003cNMI\u003e\n        htab_map_update_elem(k2)        perf_event program\n          l_new = *pl_new               the l_old of the outer update\n          hlist_nulls_add_head_rcu(l_new, bucket 2)\n          hlist_nulls_del_rcu(k2's old element)\n      \u003c/NMI\u003e\n    hlist_nulls_add_head_rcu(l_new, bucket 1)\n    hlist_nulls_del_rcu(l_old)\n\nIf l_old was the first element of bucket 1, the outer add points its pprev\nat l_new, and the delete takes it out of bucket 1 only.  l_new-\u003enext now\nleads into bucket 2, where l_old stays with a poisoned pprev, on which a\ndelete of k2 crashes.  If it was not the first, the delete takes it out of\nbucket 2: k2 is gone from the map, and the chain of bucket 1 still contains\nl_old, whose next pointer leads into bucket 2.\n\nEither way a walk of bucket 1 ends on the nulls value of bucket 2.\nlookup_nulls_elem_raw() restarts whenever that happens, so every lookup in\nbucket 1 which does not find its key spins forever:\n\n  rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:\n   __htab_map_lookup_elem+0x354/0x4d0\n\n  BUG: KASAN: wild-memory-access in htab_map_delete_elem+0x30c/0x670\n  Write of size 8 at addr dead000000000122 by task extra/102\n\nAn NMI between the load and the store of the slot makes both updates use\nthe same element, with much the same result.\n\nEmpty the slot when the spare element is taken, in a way that is atomic\non this cpu, and put the old element in only after it has been unlinked\nand its timers and the like have been cancelled.  A nested update that\nfinds the slot empty, which is the case that corrupted the map, fails with\n-EBUSY.","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: Don't hand out a linked element as extra element","id":"CVE-2026-139323","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":4,"n_vendor_status":0,"next":{"headline":"bpf: Don't leak the inode when token creation fails","id":"CVE-2026-139324"},"nickname":null,"packages":[],"prev":{"headline":"bpf: Reject sleepable programs for task_vma iterator","id":"CVE-2026-139322"},"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-139323/"}