# CVE-2024-50229: nilfs2: fix potential deadlock with newly created symlinks

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-11-09T10:14:39.756Z
- **Modified:** 2026-06-17T08:03:55.650Z

## 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

## 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

- 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)

## Mitigation

- Upgrade Linux to 4.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/cc38c596e648575ce58bfc31623a6506eda4b94a>
- patch: <https://git.kernel.org/stable/c/a1686db1e59f8fc016c4c9361e2119dd206f479a>
- patch: <https://git.kernel.org/stable/c/c72e0df0b56c1166736dc8eb62070ebb12591447>
- patch: <https://git.kernel.org/stable/c/69548bb663fcb63f9ee0301be808a36b9d78dac3>
- patch: <https://git.kernel.org/stable/c/58c7f44c7b9e5ac7e3b1e5da2572ed7767a12f38>
- patch: <https://git.kernel.org/stable/c/1246d86e7bbde265761932c6e2dce28c69cdcb91>
- patch: <https://git.kernel.org/stable/c/9aa5d43ac4cace8fb9bd964ff6c23f599dc3cd24>
- patch: <https://git.kernel.org/stable/c/b3a033e3ecd3471248d474ef263aadc0059e516a>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50229>

HTML: <https://flawdb.com/CVE-2024-50229> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50229>
