CVE-2021-47493
ocfs2: fix race between searching chunks and release journal_head from buffer_head
Mitigation
- Upgrade Linux to 6f1b228529ae49b0f85ab89bcdb6c365df401558 or later.
Who should check
- Anyone running Linux >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 5043fbd294f5909a080ade0f04b70a4da9e122b7; >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 2e382600e8856ea654677b5134ee66e03ea72bc2; >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 6f1b228529ae49b0f85ab89bcdb6c365df401558
- Anyone running Linux 2.6.16
Vulnerability facts
- Affected
- Linux >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 5043fbd294f5909a080ade0f04b70a4da9e122b7; >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 2e382600e8856ea654677b5134ee66e03ea72bc2; >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 6f1b228529ae49b0f85ab89bcdb6c365df401558; Linux 2.6.16
- Fixed in
- Linux 5043fbd294f5909a080ade0f04b70a4da9e122b7, Linux 2e382600e8856ea654677b5134ee66e03ea72bc2, Linux 6f1b228529ae49b0f85ab89bcdb6c365df401558
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.25% chance of exploitation in 30 days (percentile 10, 2026-11-26)
- CWE
- CWE-362
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix race between searching chunks and release journal_head from buffer_head Encountered a race between ocfs2_test_bg_bit_allocatable() and jbd2_journal_put_journal_head() resulting in the below vmcore. PID: 106879 TASK: ffff880244ba9c00 CPU: 2 COMMAND: "loop3" Call trace: panic oops_end no_context __bad_area_nosemaphore bad_area_nosemaphore __do_page_fault do_page_fault page_fault [exception RIP: ocfs2_block_group_find_clear_bits+316] ocfs2_block_group_find_clear_bits [ocfs2] ocfs2_cluster_group_search [ocfs2] ocfs2_search_chain [ocfs2] ocfs2_claim_suballoc_bits [ocfs2] __ocfs2_claim_clusters [ocfs2] ocfs2_claim_clusters [ocfs2] ocfs2_local_alloc_slide_window [ocfs2] ocfs2_reserve_local_alloc_bits [ocfs2] ocfs2_reserve_clusters_with_limit [ocfs2] ocfs2_reserve_clusters [ocfs2] ocfs2_lock_refcount_allocators [ocfs2] ocfs2_make_clusters_writable [ocfs2] ocfs2_replace_cow [ocfs2] ocfs2_refcount_cow [ocfs2] ocfs2_file_write_iter [ocfs2] lo_rw_aio loop_queue_work kthread_worker_fn kthread ret_from_fork When ocfs2_test_bg_bit_allocatable() called bh2jh(bg_bh), the bg_bh->b_private NULL as jbd2_journal_put_journal_head() raced and released the jounal head from the buffer head. Needed to take bit lock for the bit 'BH_JournalHead' to fix this race.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 5043fbd294f5909a080ade0f04b70a4da9e122b7; >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 2e382600e8856ea654677b5134ee66e03ea72bc2; >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 6f1b228529ae49b0f85ab89bcdb6c365df401558 | — | cvelist |
| Linux | 2.6.16 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2021-47493. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2021-47493.md Affected: Linux >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 5043fbd294f5909a080ade0f04b70a4da9e122b7; >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 2e382600e8856ea654677b5134ee66e03ea72bc2; >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 6f1b228529ae49b0f85ab89bcdb6c365df401558; Linux 2.6.16 Fixed in: Linux 5043fbd294f5909a080ade0f04b70a4da9e122b7, Linux 2e382600e8856ea654677b5134ee66e03ea72bc2, Linux 6f1b228529ae49b0f85ab89bcdb6c365df401558 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2021-47493 being exploited?
There is no confirmed exploitation: CVE-2021-47493 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2021-47493?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2021-47493?
Linux >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 5043fbd294f5909a080ade0f04b70a4da9e122b7; >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 2e382600e8856ea654677b5134ee66e03ea72bc2; >= ccd979bdbce9fba8412beb3f1de68a9d0171b12c, < 6f1b228529ae49b0f85ab89bcdb6c365df401558; Linux 2.6.16.
Is there a fix for CVE-2021-47493?
Yes. Fixed in Linux 5043fbd294f5909a080ade0f04b70a4da9e122b7, Linux 2e382600e8856ea654677b5134ee66e03ea72bc2, Linux 6f1b228529ae49b0f85ab89bcdb6c365df401558. Upgrade Linux to 6f1b228529ae49b0f85ab89bcdb6c365df401558 or later.
How do I check if I'm affected by CVE-2021-47493?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.