
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-39469 addresses a vulnerability in the Linux kernel's NILFS2 filesystem implementation. The issue was discovered in the nilfs_empty_dir() function, which contained incorrect error handling when a directory folio/page read fails. The vulnerability was disclosed on June 25, 2024, affecting the Linux kernel's NILFS2 filesystem component (NVD).
The vulnerability stems from incorrect error handling in the nilfs_empty_dir() function. When a directory folio/page read fails or nilfs_check_folio() fails, the function would falsely determine the directory as empty, potentially corrupting the file system. Additionally, since nilfs_empty_dir() did not immediately return on a failed folio/page read but continued to loop, this could cause a long loop with I/O if i_size of the directory's inode was corrupted, causing the log writer thread to wait and hang (Kernel Commit).
The vulnerability could lead to filesystem corruption and system hangs. If exploited, it could cause the log writer thread to wait indefinitely, resulting in a denial of service condition. The issue could also lead to false determinations of directory status, potentially corrupting the filesystem (Kernel Commit).
The vulnerability was discovered through automated testing by syzbot, suggesting it could be triggered through local access to a system using the NILFS2 filesystem. The issue has been confirmed to be exploitable, as demonstrated by syzbot's testing (Kernel Commit).
The issue has been fixed by modifying nilfs_empty_dir() to immediately return a false value (0) if it fails to get a directory folio/page. This fix has been implemented in various kernel versions and is available through distribution updates. The fix was authored by Ryusuke Konishi and has been incorporated into multiple stable kernel branches (Oracle Linux, Ubuntu Security Notice).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."