GHSA-295Q-87FC-M852
Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32In the Linux kernel, the following vulnerability has been resolved:
ocfs2: defer suballocator block group reclaim to workqueue
When the last bit in a suballocator block group is freed, _ocfs2_free_suballoc_bits() reclaims the group back to the global bitmap. The reclaim takes inode_lock() on the global bitmap inode while running inside the freeing transaction, adding a lock dependency of
j_trans_barrier -> global bitmap inode i_rwsem
This forms a circular dependency with paths such as ocfs2_shutdown_local_alloc(), which take the global bitmap inode lock before starting a transaction:
Task1 (dealloc): ocfs2_run_deallocs ocfs2_free_cached_blocks ocfs2_start_trans down_read(j_trans_barrier) _ocfs2_free_suballoc_bits _ocfs2_reclaim_suballoc_to_main inode_lock(main_bm_inode) <- wait on Task2
Task2 (dismount): ocfs2_shutdown_local_alloc inode_lock(main_bm_inode) ocfs2_start_trans down_read(j_trans_barrier) <- wait on Task3
Task3 (ocfs2cmt): ocfs2_commit_cache down_write(j_trans_barrier) <- wait on Task1's handle jbd2_journal_flush
Task1 waits for Task2's inode_lock(), Task2 waits for the j_trans_barrier down_write() held by ocfs2cmt, and ocfs2cmt waits for Task1's running transaction to commit - a real deadlock, observed with aio-stress direct IO writes racing dismount.
Fix it by deferring the reclaim to the per-superblock ocfs2_wq workqueue, so the freeing transaction no longer takes the global bitmap inode lock. The worker re-checks under the suballocator locks that the block group is still fully freed (it may have been allocated from again in the meantime), takes the global bitmap inode locks before starting its own transaction, and performs the same suballocator cleanup and space return. The inode lock order (suballocator inode -> global bitmap inode) is consistent with the existing "inode lock before transaction" order, breaking the cycle.
Reclaim work can still be queued late in dismount, e.g. when the truncate log is flushed or orphan dir recovery frees inode bits, so both ocfs2_dismount_volume() and the mount error path flush ocfs2_wq right before the system inodes are released, while the journal is still alive, to make sure no reclaim work is left running. The worker also bails out if the journal is already gone.
Tested with the ocfs2 testsuite (including aio-stress direct IO) and umount/mount cycles on a CONFIG_PROVE_LOCKING kernel: the circular locking dependency is gone and freed block groups are still returned to the global bitmap.
{
"affected": [],
"aliases": [
"CVE-2026-139508"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-30T14:19:26Z",
"severity": null
},
"details": "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\u0027s handle\n jbd2_journal_flush\n\nTask1 waits for Task2\u0027s inode_lock(), Task2 waits for the j_trans_barrier\ndown_write() held by ocfs2cmt, and ocfs2cmt waits for Task1\u0027s 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.",
"id": "GHSA-295q-87fc-m852",
"modified": "2026-11-30T15:32:34Z",
"published": "2026-11-30T15:32:34Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139508"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/18098fed5b27427568087dc17a88d3295492bfb7"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/b4cc0016f8ead77c823f2d55f4e0a0e61dd924b3"
}
],
"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.