Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2024-41034

nilfs2: fix kernel bug on rename operation of broken directory

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

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to < ff9767ba2cb949701e45e6e4287f8af82986b703affected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to < 24c1c8566a9b6be51f5347be2ea76e25fc82b11eaffected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to < a9a466a69b85059b341239766a10efdd3ee68a4baffected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to < 7000b438dda9d0f41a956fc9bffed92d2eb6be0daffected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to < 1a8879c0771a68d70ee2e5e66eea34207e8c6231affected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to < 60f61514374e4a0c3b65b08c6024dd7e26150bfdaffected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to < 298cd810d7fb687c90a14d8f9fd1b8719a7cb8a5affected
  • 2ba466d74ed74f073257f86e61519cb8f8f46184 to < a9e1ddc09ca55746079cc479aa3eb6411f0d99d4affected

Linux Linux

Default version status: affected

  • 2.6.30affected
  • 0 to < 2.6.30unaffected
  • 4.19.318 to ≤ 4.19.*unaffected
  • 5.4.280 to ≤ 5.4.*unaffected
  • 5.10.222 to ≤ 5.10.*unaffected
  • 5.15.163 to ≤ 5.15.*unaffected
  • 6.1.100 to ≤ 6.1.*unaffected
  • 6.6.41 to ≤ 6.6.*unaffected
  • 6.9.10 to ≤ 6.9.*unaffected
  • 6.10 to ≤ *unaffected

References