CVE-2024-40998: Linux kernel · ext4: fix uninitialized ratelimit_state->lock access in __ext4_fill_super()
Affects Linux kernelSource GCVE Database
Not known to be exploited.
Data as of 30 Oct 2026, 15:33 UTC
Rated Medium by Threat Radar's AI analysis · No CVSS score from NVD or the CNA
Thin evidence
One scorer or noneExploitation evidence
Disclosed: evidence found.
CVE published 12 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
AI-suggested
Apply the official Linux kernel patch that ensures the sysfs interface msg_ratelimit_interval_ms is registered only after the ratelimit_state lock is fully initialized. Until patched, avoid using affected kernel versions in environments where ext4 mounts are critical, or apply backported fixes from trusted sources.
Description
CVE-2024-40998 is a vulnerability in the Linux kernel's ext4 filesystem code where an uninitialized lock (ratelimit_state->lock) can be accessed during the __ext4_fill_super() function execution. This occurs because the sysfs interface for msg_ratelimit_interval_ms is registered before the lock is initialized, allowing concurrent modification of the interval to a non-zero value and subsequent access to the uninitialized lock. This can lead to kernel warnings and potential instability.
References
- git.kernel.org/stable/c/1e2df0ee0afd6d4b436a740f04f7a759e6531005 (opens in a new tab)
- git.kernel.org/stable/c/23afcd52af06880c6c913a0ad99022b8937b575c (opens in a new tab)
- git.kernel.org/stable/c/645267906944a9aeec9d5c56ee24a9096a288798 (opens in a new tab)
- git.kernel.org/stable/c/b4b4fda34e535756f9e774fb2d09c4537b7dfd1c (opens in a new tab)