# CVE-2024-41034: nilfs2: fix kernel bug on rename operation of broken directory

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/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.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2024-07-29T14:31:49.043Z
- Modified: 2026-08-05T11:34:51.748Z
- 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: fix kernel bug on rename operation of broken directory

Syzbot reported that in rename directory operation on broken directory on
nilfs2, __block_write_begin_int() called to prepare block write may fail
BUG_ON check for access exceeding the folio/page size.

This is because nilfs_dotdot(), which gets parent directory reference
entry ("..") of the directory to be moved or renamed, does not check
consistency enough, and may return location exceeding folio/page size for
broken directories.

Fix this issue by checking required directory entries ("." and "..") in
the first chunk of the directory in nilfs_dotdot().

(As written by CVE List.)

## Affected

- Linux Linux: from 2ba466d74ed74f073257f86e61519cb8f8f46184 before ff9767ba2cb949701e45e6e4287f8af82986b703; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before 24c1c8566a9b6be51f5347be2ea76e25fc82b11e; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before a9a466a69b85059b341239766a10efdd3ee68a4b; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before 7000b438dda9d0f41a956fc9bffed92d2eb6be0d; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before 1a8879c0771a68d70ee2e5e66eea34207e8c6231; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before 60f61514374e4a0c3b65b08c6024dd7e26150bfd; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before 298cd810d7fb687c90a14d8f9fd1b8719a7cb8a5; from 2ba466d74ed74f073257f86e61519cb8f8f46184 before a9e1ddc09ca55746079cc479aa3eb6411f0d99d4; 2.6.30 (not affected: before 2.6.30; from 4.19.318 up to 4.19.*; from 5.4.280 up to 5.4.*; from 5.10.222 up to 5.10.*; from 5.15.163 up to 5.15.*; from 6.1.100 up to 6.1.*; from 6.6.41 up to 6.6.*; from 6.9.10 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 2.6.30 before 4.19.318; from 4.20 before 5.4.280; from 5.5 before 5.10.222; from 5.11 before 5.15.163; from 5.16 before 6.1.100; from 6.2 before 6.6.41; from 6.7 before 6.9.10; 6.10

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/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/ff9767ba2cb949701e45e6e4287f8af82986b703> (patch)
- <https://git.kernel.org/stable/c/24c1c8566a9b6be51f5347be2ea76e25fc82b11e> (patch)
- <https://git.kernel.org/stable/c/a9a466a69b85059b341239766a10efdd3ee68a4b> (patch)
- <https://git.kernel.org/stable/c/7000b438dda9d0f41a956fc9bffed92d2eb6be0d> (patch)
- <https://git.kernel.org/stable/c/1a8879c0771a68d70ee2e5e66eea34207e8c6231> (patch)
- <https://git.kernel.org/stable/c/60f61514374e4a0c3b65b08c6024dd7e26150bfd> (patch)
- <https://git.kernel.org/stable/c/298cd810d7fb687c90a14d8f9fd1b8719a7cb8a5> (patch)
- <https://git.kernel.org/stable/c/a9e1ddc09ca55746079cc479aa3eb6411f0d99d4> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

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

---

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