{"id":"CVE-2024-39469","summary":"nilfs2: fix nilfs_empty_dir() misjudgment and long loop on I/O errors","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnilfs2: fix nilfs_empty_dir() misjudgment and long loop on I/O errors\n\nThe error handling in nilfs_empty_dir() when a directory folio/page read\nfails is incorrect, as in the old ext2 implementation, and if the\nfolio/page cannot be read or nilfs_check_folio() fails, it will falsely\ndetermine the directory as empty and corrupt the file system.\n\nIn addition, since nilfs_empty_dir() does not immediately return on a\nfailed folio/page read, but continues to loop, this can cause a long loop\nwith I/O if i_size of the directory's inode is also corrupted, causing the\nlog writer thread to wait and hang, as reported by syzbot.\n\nFix these issues by making nilfs_empty_dir() immediately return a false\nvalue (0) if it fails to get a directory folio/page.","modified":"2026-04-02T12:17:00.317693Z","published":"2024-06-25T14:28:55.581Z","related":["MGASA-2024-0263","MGASA-2024-0266","SUSE-SU-2024:2372-1","SUSE-SU-2024:2394-1","SUSE-SU-2024:2571-1","SUSE-SU-2024:2896-1","SUSE-SU-2024:2939-1","SUSE-SU-2024:2973-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39469.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/11a2edb70356a2202dcb7c9c189c8356ab4752cd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/129dcd3e7d036218db3f59c82d82004b9539ed82"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2ac8a2fe22bdde9eecce2a42cf5cab79333fb428"},{"type":"WEB","url":"https://git.kernel.org/stable/c/405b71f1251e5ae865f53bd27c45114e6c83bee3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/59f14875a96ef93f05b82ad3c980605f2cb444b5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7373a51e7998b508af7136530f3a997b286ce81c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c77ad608df6c091fe64ecb91f41ef7cb465587f1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d18b05eda7fa77f02114f15b02c009f28ee42346"},{"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/39xxx/CVE-2024-39469.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39469"},{"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":"2ac8a2fe22bdde9eecce2a42cf5cab79333fb428"},{"fixed":"405b71f1251e5ae865f53bd27c45114e6c83bee3"},{"fixed":"c77ad608df6c091fe64ecb91f41ef7cb465587f1"},{"fixed":"11a2edb70356a2202dcb7c9c189c8356ab4752cd"},{"fixed":"129dcd3e7d036218db3f59c82d82004b9539ed82"},{"fixed":"d18b05eda7fa77f02114f15b02c009f28ee42346"},{"fixed":"59f14875a96ef93f05b82ad3c980605f2cb444b5"},{"fixed":"7373a51e7998b508af7136530f3a997b286ce81c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-39469.json"}}],"schema_version":"1.7.5"}