# CVE-2024-50202: nilfs2: propagate directory read errors from nilfs_find_entry()

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-11-08T05:56:16.544Z
- Modified: 2026-06-17T08:03:51.717Z
- Weaknesses: CWE-755
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 2ba466d74ed74f073257f86e61519cb8f8f46184 before bb857ae1efd3138c653239ed1e7aef14e1242c81; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before b4b3dc9e7e604be98a222e9f941f5e93798ca475; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before c1d0476885d708a932980b0f28cd90d9bd71db39; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before edf8146057264191d5bfe5b91773f13d936dadd3; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before 270a6f9df35fa2aea01ec23770dc9b3fc9a12989; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before 9698088ac7704e260f492d9c254e29ed7dd8729a; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before efa810b15a25531cbc2f527330947b9fe16916e7; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before 08cfa12adf888db98879dbd735bc741360a34168; 2.6.30 (not affected: before 2.6.30; from 4.19.323 up to 4.19.*; from 5.4.285 up to 5.4.*; from 5.10.228 up to 5.10.*; from 5.15.169 up to 5.15.*; from 6.1.114 up to 6.1.*; from 6.6.58 up to 6.6.*; from 6.11.5 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 2.6.30 before 4.19.323; from 4.20 before 5.4.285; from 5.5 before 5.10.228; from 5.11 before 5.15.169; from 5.16 before 6.1.114; from 6.2 before 6.6.58; from 6.7 before 6.11.5; 6.12

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <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> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-50202](https://www.cve.org/CVERecord?id=CVE-2024-50202), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-50202](https://nvd.nist.gov/vuln/detail/CVE-2024-50202), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50202 · Whole record: https://cve.day/CVE-2024-50202.json · Rebuilt by cve.day 2026-11-25T22:58:47.914Z
