
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2024-42105 addresses a use-after-free vulnerability in the Linux kernel's NILFS2 filesystem implementation. The issue was discovered when syzbot reported that NILFS2's internal inode could be exposed in the namespace on a corrupted filesystem. The vulnerability was disclosed in July 2024 and affects the Linux kernel's NILFS2 filesystem component (Kernel Git).
The vulnerability stems from the NILFS2 filesystem's handling of inode numbers. Specifically, the 'nilfs->ns_first_ino' value, which determines the first non-reserved inode number, is read from the superblock without proper lower limit validation. Additionally, the inode number test macros (NILFS_MDT_INODE and NILFS_VALID_INODE) use potentially unsafe bit-shift calculations that could malfunction if 'ns_first_ino' is set to a value other than the default NILFS_USER_INO (=11). The issue can be triggered when the starting number of non-reserved inodes in the on-disk super block is intentionally or corruptly modified (Kernel Git).
If exploited, this vulnerability could allow an attacker to cause a use-after-free condition through a corrupted filesystem, potentially leading to system instability or crashes. The issue specifically affects systems using the NILFS2 filesystem and could compromise the integrity of filesystem operations (NVD).
The vulnerability can be triggered through a corrupted filesystem where the NILFS2's internal inode is exposed in the namespace. The exploit requires the ability to manipulate the filesystem's superblock parameters, particularly the non-reserved inodes starting number (Kernel Git).
The issue has been patched by implementing proper bounds checking for 'nilfs->ns_first_ino' and modifying the inode number test macros to prevent unsafe bit shifts. The fix includes changing the type of 'ns_first_ino' from signed integer to unsigned integer and adding validation to ensure the value is not smaller than NILFS_USER_INO. Users should update their Linux kernel to a version containing these fixes (Kernel Git).
Fix availability across major Linux distributions and their releases.
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."