CVE-2024-42105
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-80904MEDIUM5.9
  • Linux Kernel logoLinux Kernel
  • linux-hwe-7.0
NoYesSep 04, 2026
CVE-2026-80905MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-7.0
NoYesSep 04, 2026
CVE-2026-80913MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-intel-iotg-5.15
NoYesSep 04, 2026
CVE-2026-80912MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-gcp-fips
NoYesSep 04, 2026
CVE-2026-80906NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-7.0
NoYesSep 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management