# CVE-2024-50202: nilfs2: propagate directory read errors from nilfs\_find\_entry()

> 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.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-755
- **Published:** 2024-11-08T05:56:16.544Z
- **Modified:** 2026-06-17T08:03:51.717Z

## Who should check

- Anyone running Linux \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< bb857ae1efd3138c653239ed1e7aef14e1242c81; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< b4b3dc9e7e604be98a222e9f941f5e93798ca475; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< c1d0476885d708a932980b0f28cd90d9bd71db39; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< edf8146057264191d5bfe5b91773f13d936dadd3; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 270a6f9df35fa2aea01ec23770dc9b3fc9a12989; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 9698088ac7704e260f492d9c254e29ed7dd8729a; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< efa810b15a25531cbc2f527330947b9fe16916e7; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 08cfa12adf888db98879dbd735bc741360a34168
- Anyone running Linux 2.6.30

## Description

In the Linux kernel, the following vulnerability has been resolved:

nilfs2: propagate directory read errors from nilfs\_find\_entry()

Syzbot reported that a task hang occurs in vcs\_open() during a fuzzing
test for nilfs2.

The root cause of this problem is that in nilfs\_find\_entry(), which
searches for directory entries, ignores errors when loading a directory
page/folio via nilfs\_get\_folio() fails.

If the filesystem images is corrupted, and the i\_size of the directory
inode is large, and the directory page/folio is successfully read but
fails the sanity check, for example when it is zero-filled,
nilfs\_check\_folio() may continue to spit out error messages in bursts.

Fix this issue by propagating the error to the callers when loading a
page/folio fails in nilfs\_find\_entry().

The current interface of nilfs\_find\_entry() and its callers is outdated
and cannot propagate error codes such as -EIO and -ENOMEM returned via
nilfs\_find\_entry(), so fix it together.

## Affected and fixed versions

- Linux: \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< bb857ae1efd3138c653239ed1e7aef14e1242c81; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< b4b3dc9e7e604be98a222e9f941f5e93798ca475; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< c1d0476885d708a932980b0f28cd90d9bd71db39; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< edf8146057264191d5bfe5b91773f13d936dadd3; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 270a6f9df35fa2aea01ec23770dc9b3fc9a12989; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 9698088ac7704e260f492d9c254e29ed7dd8729a; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< efa810b15a25531cbc2f527330947b9fe16916e7; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 08cfa12adf888db98879dbd735bc741360a34168 (cvelist)
- Linux: 2.6.30 (cvelist)

## Mitigation

- Upgrade Linux to 08cfa12adf888db98879dbd735bc741360a34168 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-50202. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50202.md
Affected: Linux >= 2ba466d74ed74f073257f86e61519cb8f8f46184, < bb857ae1efd3138c653239ed1e7aef14e1242c81; >= 2ba466d74ed74f073257f86e61519cb8f8f46184, < b4b3dc9e7e604be98a222e9f941f5e93798ca475; >= 2ba466d74ed74f073257f86e61519cb8f8f46184, < c1d0476885d708a932980b0f28cd90d9bd71db39; >= 2ba466d74ed74f073257f86…
Fixed in: Linux 270a6f9df35fa2aea01ec23770dc9b3fc9a12989, Linux 9698088ac7704e260f492d9c254e29ed7dd8729a, Linux 08cfa12adf888db98879dbd735bc741360a34168

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

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

### How serious is CVE-2024-50202?

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

### Which versions are affected by CVE-2024-50202?

Linux \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< bb857ae1efd3138c653239ed1e7aef14e1242c81; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< b4b3dc9e7e604be98a222e9f941f5e93798ca475; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< c1d0476885d708a932980b0f28cd90d9bd71db39; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< edf8146057264191d5bfe5b91773f13d936dadd3; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 270a6f9df35fa2aea01ec23770dc9b3fc9a12989; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 9698088ac7704e260f492d9c254e29ed7dd8729a; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< efa810b15a25531cbc2f527330947b9fe16916e7; \>= 2ba466d74ed74f073257f86e61519cb8f8f46184, \< 08cfa12adf888db98879dbd735bc741360a34168; Linux 2.6.30.

### Is there a fix for CVE-2024-50202?

Yes. Fixed in Linux 270a6f9df35fa2aea01ec23770dc9b3fc9a12989, Linux 9698088ac7704e260f492d9c254e29ed7dd8729a, Linux 08cfa12adf888db98879dbd735bc741360a34168. Upgrade Linux to 08cfa12adf888db98879dbd735bc741360a34168 or later.

### How do I check if I'm affected by CVE-2024-50202?

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/bb857ae1efd3138c653239ed1e7aef14e1242c81>
- patch: <https://git.kernel.org/stable/c/b4b3dc9e7e604be98a222e9f941f5e93798ca475>
- patch: <https://git.kernel.org/stable/c/c1d0476885d708a932980b0f28cd90d9bd71db39>
- patch: <https://git.kernel.org/stable/c/edf8146057264191d5bfe5b91773f13d936dadd3>
- patch: <https://git.kernel.org/stable/c/270a6f9df35fa2aea01ec23770dc9b3fc9a12989>
- patch: <https://git.kernel.org/stable/c/9698088ac7704e260f492d9c254e29ed7dd8729a>
- patch: <https://git.kernel.org/stable/c/efa810b15a25531cbc2f527330947b9fe16916e7>
- patch: <https://git.kernel.org/stable/c/08cfa12adf888db98879dbd735bc741360a34168>
- 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-50202>

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