Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-47637

MEDIUM 5.5EPSS 7%

ubifs: Fix deadlock in concurrent rename whiteout and inode writeback

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 9dddc8211430fb851ddf0b168e3a00c6f66cc185; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 37bdf1ad592555ecda1d55b89f6e393e4c0589d1; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 83e42a78428fc354f5e2049935b84c8d8d29b787; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < c58af8564a7b08757173009030b74baf4b2b762b; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 70e9090acc32348cedc5def0cd6d5c126efc97b9; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 8b278c8dcfb565cb65eceb62a38cbf7a7c326db5; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < afd427048047e8efdedab30e8888044e2be5aa9c
  • Anyone running Linux 4.9

Vulnerability facts

Affected
Linux >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 9dddc8211430fb851ddf0b168e3a00c6f66cc185; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 37bdf1ad592555ecda1d55b89f6e393e4c0589d1; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 83e42a78428fc354f5e2049935b84c8d8d29b787; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < c58af8564a7b08757173009030b74baf4b2b762b; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 70e9090acc32348cedc5def0cd6d5c126efc97b9; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 8b278c8dcfb565cb65eceb62a38cbf7a7c326db5; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < afd427048047e8efdedab30e8888044e2be5aa9c; Linux 4.9
Fixed in
Linux 9dddc8211430fb851ddf0b168e3a00c6f66cc185, Linux 37bdf1ad592555ecda1d55b89f6e393e4c0589d1, Linux 83e42a78428fc354f5e2049935b84c8d8d29b787, Linux 70e9090acc32348cedc5def0cd6d5c126efc97b9, Linux 8b278c8dcfb565cb65eceb62a38cbf7a7c326db5
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
CWE
CWE-667
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: ubifs: Fix deadlock in concurrent rename whiteout and inode writeback Following hung tasks: [ 77.028764] task:kworker/u8:4 state:D stack: 0 pid: 132 [ 77.028820] Call Trace: [ 77.029027] schedule+0x8c/0x1b0 [ 77.029067] mutex_lock+0x50/0x60 [ 77.029074] ubifs_write_inode+0x68/0x1f0 [ubifs] [ 77.029117] __writeback_single_inode+0x43c/0x570 [ 77.029128] writeback_sb_inodes+0x259/0x740 [ 77.029148] wb_writeback+0x107/0x4d0 [ 77.029163] wb_workfn+0x162/0x7b0 [ 92.390442] task:aa state:D stack: 0 pid: 1506 [ 92.390448] Call Trace: [ 92.390458] schedule+0x8c/0x1b0 [ 92.390461] wb_wait_for_completion+0x82/0xd0 [ 92.390469] __writeback_inodes_sb_nr+0xb2/0x110 [ 92.390472] writeback_inodes_sb_nr+0x14/0x20 [ 92.390476] ubifs_budget_space+0x705/0xdd0 [ubifs] [ 92.390503] do_rename.cold+0x7f/0x187 [ubifs] [ 92.390549] ubifs_rename+0x8b/0x180 [ubifs] [ 92.390571] vfs_rename+0xdb2/0x1170 [ 92.390580] do_renameat2+0x554/0x770 , are caused by concurrent rename whiteout and inode writeback processes: rename_whiteout(Thread 1) wb_workfn(Thread2) ubifs_rename do_rename lock_4_inodes (Hold ui_mutex) ubifs_budget_space make_free_space shrink_liability __writeback_inodes_sb_nr bdi_split_work_to_wbs (Queue new wb work) wb_do_writeback(wb work) __writeback_single_inode ubifs_write_inode LOCK(ui_mutex) ↑ wb_wait_for_completion (Wait wb work) <-- deadlock! Reproducer (Detail program in [Link]): 1. SYS_renameat2("/mp/dir/file", "/mp/dir/whiteout", RENAME_WHITEOUT) 2. Consume out of space before kernel(mdelay) doing budget for whiteout Fix it by doing whiteout space budget before locking ubifs inodes. BTW, it also fixes wrong goto tag 'out_release' in whiteout budget error handling path(It should at least recover dir i_size and unlock 4 ubifs inodes).

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 9dddc8211430fb851ddf0b168e3a00c6f66cc185; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 37bdf1ad592555ecda1d55b89f6e393e4c0589d1; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 83e42a78428fc354f5e2049935b84c8d8d29b787; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < c58af8564a7b08757173009030b74baf4b2b762b; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 70e9090acc32348cedc5def0cd6d5c126efc97b9; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 8b278c8dcfb565cb65eceb62a38cbf7a7c326db5; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < afd427048047e8efdedab30e8888044e2be5aa9c—cvelist
Linux4.9—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-47637. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47637.md
Affected: Linux >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 9dddc8211430fb851ddf0b168e3a00c6f66cc185; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 37bdf1ad592555ecda1d55b89f6e393e4c0589d1; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 83e42a78428fc354f5e2049935b84c8d8d29b787; >= 9e0a1fff8db56eaaebb74b4…
Fixed in: Linux 9dddc8211430fb851ddf0b168e3a00c6f66cc185, Linux 37bdf1ad592555ecda1d55b89f6e393e4c0589d1, Linux 83e42a78428fc354f5e2049935b84c8d8d29b787, Linux 70e9090acc32348cedc5def0cd6d5c126efc97b9, Linux 8b278c8dcfb565cb65eceb62a38cbf7a7c326db5

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-47637 being exploited?

There is no confirmed exploitation: CVE-2021-47637 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-47637?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2021-47637?

Linux >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 9dddc8211430fb851ddf0b168e3a00c6f66cc185; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 37bdf1ad592555ecda1d55b89f6e393e4c0589d1; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 83e42a78428fc354f5e2049935b84c8d8d29b787; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < c58af8564a7b08757173009030b74baf4b2b762b; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 70e9090acc32348cedc5def0cd6d5c126efc97b9; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < 8b278c8dcfb565cb65eceb62a38cbf7a7c326db5; >= 9e0a1fff8db56eaaebb74b4a3ef65f86811c4798, < afd427048047e8efdedab30e8888044e2be5aa9c; Linux 4.9.

Is there a fix for CVE-2021-47637?

Yes. Fixed in Linux 9dddc8211430fb851ddf0b168e3a00c6f66cc185, Linux 37bdf1ad592555ecda1d55b89f6e393e4c0589d1, Linux 83e42a78428fc354f5e2049935b84c8d8d29b787, Linux 70e9090acc32348cedc5def0cd6d5c126efc97b9, Linux 8b278c8dcfb565cb65eceb62a38cbf7a7c326db5. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2021-47637?

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.

Sponsors