{"id":"CVE-2024-39469","published":"2024-06-25T14:28:55Z","modified":"2026-10-15T00:44:10Z","title":"nilfs2: fix nilfs_empty_dir() misjudgment and long loop on I/O errors","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00334,"percentile":0.19324,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/2ac8a2fe22bdde9eecce2a42cf5cab79333fb428","tags":[]},{"url":"https://git.kernel.org/stable/c/405b71f1251e5ae865f53bd27c45114e6c83bee3","tags":[]},{"url":"https://git.kernel.org/stable/c/c77ad608df6c091fe64ecb91f41ef7cb465587f1","tags":[]},{"url":"https://git.kernel.org/stable/c/11a2edb70356a2202dcb7c9c189c8356ab4752cd","tags":[]},{"url":"https://git.kernel.org/stable/c/129dcd3e7d036218db3f59c82d82004b9539ed82","tags":[]},{"url":"https://git.kernel.org/stable/c/d18b05eda7fa77f02114f15b02c009f28ee42346","tags":[]},{"url":"https://git.kernel.org/stable/c/59f14875a96ef93f05b82ad3c980605f2cb444b5","tags":[]},{"url":"https://git.kernel.org/stable/c/7373a51e7998b508af7136530f3a997b286ce81c","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-355557.html","tags":[]}],"priority":{"score":8.8,"factors":[{"name":"EPSS percentile","points":3.86},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 2ac8a2fe22bdde9eecce2a42cf5cab79333fb428",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 405b71f1251e5ae865f53bd27c45114e6c83bee3",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < c77ad608df6c091fe64ecb91f41ef7cb465587f1",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 11a2edb70356a2202dcb7c9c189c8356ab4752cd",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 129dcd3e7d036218db3f59c82d82004b9539ed82",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < d18b05eda7fa77f02114f15b02c009f28ee42346",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 59f14875a96ef93f05b82ad3c980605f2cb444b5",">= 2ba466d74ed74f073257f86e61519cb8f8f46184, < 7373a51e7998b508af7136530f3a997b286ce81c"]},{"vendor":"Linux","product":"Linux","versions":["2.6.30"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T17:07:55.313333Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-37994","exploited":false,"provenance":"source"}}