CVE-2024-50229
nilfs2: fix potential deadlock with newly created symlinks
Mitigation
- Upgrade Linux to 4.5 or later.
Who should check
- Anyone running Linux >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < cc38c596e648575ce58bfc31623a6506eda4b94a; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < a1686db1e59f8fc016c4c9361e2119dd206f479a; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < c72e0df0b56c1166736dc8eb62070ebb12591447; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 69548bb663fcb63f9ee0301be808a36b9d78dac3; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 58c7f44c7b9e5ac7e3b1e5da2572ed7767a12f38; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 1246d86e7bbde265761932c6e2dce28c69cdcb91; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 9aa5d43ac4cace8fb9bd964ff6c23f599dc3cd24; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < b3a033e3ecd3471248d474ef263aadc0059e516a; 076e4ab3279eb3ddb206de44d04df7aeb2428e09; >= 4.4.116, < 4.5
- Anyone running Linux 4.5
Vulnerability facts
- Affected
- Linux >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < cc38c596e648575ce58bfc31623a6506eda4b94a; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < a1686db1e59f8fc016c4c9361e2119dd206f479a; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < c72e0df0b56c1166736dc8eb62070ebb12591447; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 69548bb663fcb63f9ee0301be808a36b9d78dac3; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 58c7f44c7b9e5ac7e3b1e5da2572ed7767a12f38; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 1246d86e7bbde265761932c6e2dce28c69cdcb91; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 9aa5d43ac4cace8fb9bd964ff6c23f599dc3cd24; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < b3a033e3ecd3471248d474ef263aadc0059e516a; 076e4ab3279eb3ddb206de44d04df7aeb2428e09; >= 4.4.116, < 4.5; Linux 4.5
- Fixed in
- Linux 69548bb663fcb63f9ee0301be808a36b9d78dac3, Linux 58c7f44c7b9e5ac7e3b1e5da2572ed7767a12f38, Linux 1246d86e7bbde265761932c6e2dce28c69cdcb91, Linux 9aa5d43ac4cace8fb9bd964ff6c23f599dc3cd24, Linux 4.5
- 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.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
- CWE
- CWE-667
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix potential deadlock with newly created symlinks Syzbot reported that page_symlink(), called by nilfs_symlink(), triggers memory reclamation involving the filesystem layer, which can result in circular lock dependencies among the reader/writer semaphore nilfs->ns_segctor_sem, s_writers percpu_rwsem (intwrite) and the fs_reclaim pseudo lock. This is because after commit 21fc61c73c39 ("don't put symlink bodies in pagecache into highmem"), the gfp flags of the page cache for symbolic links are overwritten to GFP_KERNEL via inode_nohighmem(). This is not a problem for symlinks read from the backing device, because the __GFP_FS flag is dropped after inode_nohighmem() is called. However, when a new symlink is created with nilfs_symlink(), the gfp flags remain overwritten to GFP_KERNEL. Then, memory allocation called from page_symlink() etc. triggers memory reclamation including the FS layer, which may call nilfs_evict_inode() or nilfs_dirty_inode(). And these can cause a deadlock if they are called while nilfs->ns_segctor_sem is held: Fix this issue by dropping the __GFP_FS flag from the page cache GFP flags of newly created symlinks in the same way that nilfs_new_inode() and __nilfs_read_inode() do, as a workaround until we adopt nofs allocation scope consistently or improve the locking constraints.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < cc38c596e648575ce58bfc31623a6506eda4b94a; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < a1686db1e59f8fc016c4c9361e2119dd206f479a; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < c72e0df0b56c1166736dc8eb62070ebb12591447; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 69548bb663fcb63f9ee0301be808a36b9d78dac3; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 58c7f44c7b9e5ac7e3b1e5da2572ed7767a12f38; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 1246d86e7bbde265761932c6e2dce28c69cdcb91; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 9aa5d43ac4cace8fb9bd964ff6c23f599dc3cd24; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < b3a033e3ecd3471248d474ef263aadc0059e516a; 076e4ab3279eb3ddb206de44d04df7aeb2428e09; >= 4.4.116, < 4.5 | — | cvelist |
| Linux | 4.5 | — | 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-2024-50229. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-50229.md Affected: Linux >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < cc38c596e648575ce58bfc31623a6506eda4b94a; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < a1686db1e59f8fc016c4c9361e2119dd206f479a; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < c72e0df0b56c1166736dc8eb62070ebb12591447; >= 21fc61c73c3903c4c312d08… Fixed in: Linux 69548bb663fcb63f9ee0301be808a36b9d78dac3, Linux 58c7f44c7b9e5ac7e3b1e5da2572ed7767a12f38, Linux 1246d86e7bbde265761932c6e2dce28c69cdcb91, Linux 9aa5d43ac4cace8fb9bd964ff6c23f599dc3cd24, Linux 4.5 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
Patches
- https://git.kernel.org/stable/c/cc38c596e648575ce58bfc31623a6506eda4b94a
- https://git.kernel.org/stable/c/a1686db1e59f8fc016c4c9361e2119dd206f479a
- https://git.kernel.org/stable/c/c72e0df0b56c1166736dc8eb62070ebb12591447
- https://git.kernel.org/stable/c/69548bb663fcb63f9ee0301be808a36b9d78dac3
- https://git.kernel.org/stable/c/58c7f44c7b9e5ac7e3b1e5da2572ed7767a12f38
- https://git.kernel.org/stable/c/1246d86e7bbde265761932c6e2dce28c69cdcb91
- https://git.kernel.org/stable/c/9aa5d43ac4cace8fb9bd964ff6c23f599dc3cd24
- https://git.kernel.org/stable/c/b3a033e3ecd3471248d474ef263aadc0059e516a
FAQ
Is CVE-2024-50229 being exploited?
There is no confirmed exploitation: CVE-2024-50229 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-50229?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-50229?
Linux >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < cc38c596e648575ce58bfc31623a6506eda4b94a; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < a1686db1e59f8fc016c4c9361e2119dd206f479a; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < c72e0df0b56c1166736dc8eb62070ebb12591447; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 69548bb663fcb63f9ee0301be808a36b9d78dac3; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 58c7f44c7b9e5ac7e3b1e5da2572ed7767a12f38; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 1246d86e7bbde265761932c6e2dce28c69cdcb91; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < 9aa5d43ac4cace8fb9bd964ff6c23f599dc3cd24; >= 21fc61c73c3903c4c312d0802da01ec2b323d174, < b3a033e3ecd3471248d474ef263aadc0059e516a; 076e4ab3279eb3ddb206de44d04df7aeb2428e09; >= 4.4.116, < 4.5; Linux 4.5.
Is there a fix for CVE-2024-50229?
Yes. Fixed in Linux 69548bb663fcb63f9ee0301be808a36b9d78dac3, Linux 58c7f44c7b9e5ac7e3b1e5da2572ed7767a12f38, Linux 1246d86e7bbde265761932c6e2dce28c69cdcb91, Linux 9aa5d43ac4cace8fb9bd964ff6c23f599dc3cd24, Linux 4.5. Upgrade Linux to 4.5 or later.
How do I check if I'm affected by CVE-2024-50229?
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.