{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-139204 in the wild and no public exploit code.","exposure":"","fix":"Upgrade to a fixed version.","what":"CVE-2026-139204 is a vulnerability in Linux, published on 30 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-139204 and fix it if it is affected.\n\nWhat it is: CVE-2026-139204 is a vulnerability in Linux, published on 30 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-139204 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-139204/ (Markdown: https://insights.sbomify.com/CVE-2026-139204/index.md)","id":"CVE-2026-139204","markdown":"https://insights.sbomify.com/CVE-2026-139204/index.md","name":"CVE-2026-139204","record":{"aliases":["BELL-CVE-2026-139204","DEBIAN-CVE-2026-139204","GHSA-8rw4-86wc-4ghj","UBUNTU-CVE-2026-139204"],"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: Track borrowed iterator results by default\n\nAn open-coded iterator can return a struct pointer borrowed from its\ncurrent element. The verifier has not tied such results to iterator\nstate since the task_vma iterator was introduced, so a saved result\ncan still be used after destroy. Commit bee9ef4a40a27 (\"bpf: switch\ntask_vma iterator from mmap_lock to per-VMA locks\") also made next\nrelease the protection of the prior element. A later snapshot\nconversion made vm_file explicitly borrowed from that element.\n\nAssociate non-RCU, non-acquired struct results with the iterator\nreference by default. Invalidate dependents before next forks its\nNULL and non-NULL paths, while retaining the iterator itself. Let\ndestroy propagate child-reference errors. Add KF_ITER_RET_INDEPENDENT\nfor results that outlive the current element, preserving existing\nRCU and acquired-reference rules.\n\nTrusted pointer field loads also need to preserve the source lifetime.\nLoading a trusted field does not acquire a reference to the pointed-to\nobject. Set the field pointer's parent_id to the source's reference ID\nif the source is referenced, or inherit its parent_id if it is borrowed.\nThis is a generic rule, including accesses unrelated to iterators. For\nexample, the following access is now rejected:\n\n  file = bpf_get_task_exe_file(task);\n  if (!file)\n          return 0;\n  inode = file-\u003ef_inode;\n  bpf_put_file(file);\n  ino = inode-\u003ei_ino;\n\nThe inode pointer borrows the file's lifetime. Releasing the acquired\nfile reference removes that lifetime guarantee, so the verifier must\ninvalidate the derived inode pointer as well. This does not imply that\nbpf_put_file() immediately frees the file or inode. Reading the inode\nwhile the file reference is held remains valid. Fields with independent\nRCU protection retain their existing lifetime rules.\n\nFor an iterator result, the same propagation keeps trusted fields such\nas vm_file and f_inode tied to the current element. Propagate the backing\nobject's lifetime through dynptr construction too, so its descendants\nremain in the invalidation graph. Share the invalidation traversal\nbetween next and release, so advancing the iterator preserves its own\nreference.","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: Track borrowed iterator results by default","id":"CVE-2026-139204","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":2,"n_vendor_status":0,"next":{"headline":"bpf: Propagate btf_add_type() errors in btf_check_all_metas()","id":"CVE-2026-139205"},"nickname":null,"packages":[],"prev":{"headline":"ALSA: ump: Drain sequencer callbacks before freeing their client","id":"CVE-2026-139203"},"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-139204/"}