{"id":"CVE-2024-41034","summary":"nilfs2: fix kernel bug on rename operation of broken directory","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix kernel bug on rename operation of broken directory\n\nSyzbot reported that in rename directory operation on broken directory on\nnilfs2, __block_write_begin_int() called to prepare block write may fail\nBUG_ON check for access exceeding the folio/page size.\n\nThis is because nilfs_dotdot(), which gets parent directory reference\nentry (\"..\") of the directory to be moved or renamed, does not check\nconsistency enough, and may return location exceeding folio/page size for\nbroken directories.\n\nFix this issue by checking required directory entries (\".\" and \"..\") in\nthe first chunk of the directory in nilfs_dotdot().","modified":"2026-04-02T11:52:26.809220Z","published":"2024-07-29T14:31:49.043Z","related":["MGASA-2024-0277","MGASA-2024-0278"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41034.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1a8879c0771a68d70ee2e5e66eea34207e8c6231"},{"type":"WEB","url":"https://git.kernel.org/stable/c/24c1c8566a9b6be51f5347be2ea76e25fc82b11e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/298cd810d7fb687c90a14d8f9fd1b8719a7cb8a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/60f61514374e4a0c3b65b08c6024dd7e26150bfd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7000b438dda9d0f41a956fc9bffed92d2eb6be0d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a9a466a69b85059b341239766a10efdd3ee68a4b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a9e1ddc09ca55746079cc479aa3eb6411f0d99d4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ff9767ba2cb949701e45e6e4287f8af82986b703"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/41xxx/CVE-2024-41034.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41034"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2ba466d74ed74f073257f86e61519cb8f8f46184"},{"fixed":"ff9767ba2cb949701e45e6e4287f8af82986b703"},{"fixed":"24c1c8566a9b6be51f5347be2ea76e25fc82b11e"},{"fixed":"a9a466a69b85059b341239766a10efdd3ee68a4b"},{"fixed":"7000b438dda9d0f41a956fc9bffed92d2eb6be0d"},{"fixed":"1a8879c0771a68d70ee2e5e66eea34207e8c6231"},{"fixed":"60f61514374e4a0c3b65b08c6024dd7e26150bfd"},{"fixed":"298cd810d7fb687c90a14d8f9fd1b8719a7cb8a5"},{"fixed":"a9e1ddc09ca55746079cc479aa3eb6411f0d99d4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-41034.json"}}],"schema_version":"1.7.5"}