CVE-2024-41034

nilfs2: fix kernel bug on rename operation of broken directory

State
Published
Severity
7.8 High
Published
Jul 29, 2024
Updated
Aug 5, 2026
Reserved
Jul 12, 2024

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to before ff9767ba2cb949701e45e6e4287f8af82986b703Affected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to before 24c1c8566a9b6be51f5347be2ea76e25fc82b11eAffected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to before a9a466a69b85059b341239766a10efdd3ee68a4bAffected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to before 7000b438dda9d0f41a956fc9bffed92d2eb6be0dAffected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to before 1a8879c0771a68d70ee2e5e66eea34207e8c6231Affected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to before 60f61514374e4a0c3b65b08c6024dd7e26150bfdAffected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to before 298cd810d7fb687c90a14d8f9fd1b8719a7cb8a5Affected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to before a9e1ddc09ca55746079cc479aa3eb6411f0d99d4Affected
LinuxLinux
  • 2.6.30Affected
  • before 2.6.30Not affected
  • 4.19.318 through 4.19.*Not affected
  • 5.4.280 through 5.4.*Not affected
  • 5.10.222 through 5.10.*Not affected
  • 5.15.163 through 5.15.*Not affected
  • 6.1.100 through 6.1.*Not affected
  • 6.6.41 through 6.6.*Not affected
  • 6.9.10 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.