{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-139508 in the wild and no public exploit code.","exposure":"","fix":"Upgrade to a fixed version.","what":"CVE-2026-139508 is a vulnerability in Linux, published on 30 Nov 2026."},"fix_prompt":"Check this codebase for CVE-2026-139508 and fix it if it is affected.\n\nWhat it is: CVE-2026-139508 is a vulnerability in Linux, published on 30 Nov 2026. \nExploitation: There is no known exploitation of CVE-2026-139508 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-139508/ (Markdown: https://insights.sbomify.com/CVE-2026-139508/index.md)","id":"CVE-2026-139508","markdown":"https://insights.sbomify.com/CVE-2026-139508/index.md","name":"CVE-2026-139508","record":{"aliases":["DEBIAN-CVE-2026-139508","GHSA-295q-87fc-m852","UBUNTU-CVE-2026-139508"],"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\nocfs2: defer suballocator block group reclaim to workqueue\n\nWhen the last bit in a suballocator block group is freed,\n_ocfs2_free_suballoc_bits() reclaims the group back to the global bitmap. \nThe reclaim takes inode_lock() on the global bitmap inode while running\ninside the freeing transaction, adding a lock dependency of\n\n  j_trans_barrier -\u003e global bitmap inode i_rwsem\n\nThis forms a circular dependency with paths such as\nocfs2_shutdown_local_alloc(), which take the global bitmap inode lock\nbefore starting a transaction:\n\n  Task1 (dealloc):\n    ocfs2_run_deallocs\n      ocfs2_free_cached_blocks\n        ocfs2_start_trans\n          down_read(j_trans_barrier)\n        _ocfs2_free_suballoc_bits\n          _ocfs2_reclaim_suballoc_to_main\n            inode_lock(main_bm_inode)  \u003c- wait on Task2\n\n  Task2 (dismount):\n    ocfs2_shutdown_local_alloc\n      inode_lock(main_bm_inode)\n      ocfs2_start_trans\n        down_read(j_trans_barrier)  \u003c- wait on Task3\n\n  Task3 (ocfs2cmt):\n    ocfs2_commit_cache\n      down_write(j_trans_barrier)  \u003c- wait on Task1's handle\n      jbd2_journal_flush\n\nTask1 waits for Task2's inode_lock(), Task2 waits for the j_trans_barrier\ndown_write() held by ocfs2cmt, and ocfs2cmt waits for Task1's running\ntransaction to commit - a real deadlock, observed with aio-stress direct\nIO writes racing dismount.\n\nFix it by deferring the reclaim to the per-superblock ocfs2_wq workqueue,\nso the freeing transaction no longer takes the global bitmap inode lock. \nThe worker re-checks under the suballocator locks that the block group is\nstill fully freed (it may have been allocated from again in the meantime),\ntakes the global bitmap inode locks before starting its own transaction,\nand performs the same suballocator cleanup and space return.  The inode\nlock order (suballocator inode -\u003e global bitmap inode) is consistent with\nthe existing \"inode lock before transaction\" order, breaking the cycle.\n\nReclaim work can still be queued late in dismount, e.g.  when the truncate\nlog is flushed or orphan dir recovery frees inode bits, so both\nocfs2_dismount_volume() and the mount error path flush ocfs2_wq right\nbefore the system inodes are released, while the journal is still alive,\nto make sure no reclaim work is left running.  The worker also bails out\nif the journal is already gone.\n\nTested with the ocfs2 testsuite (including aio-stress direct IO) and\numount/mount cycles on a CONFIG_PROVE_LOCKING kernel: the circular locking\ndependency is gone and freed block groups are still returned to the global\nbitmap.","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":"ocfs2: defer suballocator block group reclaim to workqueue","id":"CVE-2026-139508","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":"sched_ext: Clear a sub-scheduler's caps before ops.sub_detach()","id":"CVE-2026-139509"},"nickname":null,"packages":[],"prev":{"headline":"ocfs2: allow xattr bucket entries to span multiple blocks","id":"CVE-2026-139507"},"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-139508/"}