Skip to main content
VulnerabilityPublished Updated

CVE-2024-40998: Linux kernel · ext4: fix uninitialized ratelimit_state->lock access in __ext4_fill_super()

Affects Linux kernelSource GCVE Database

0
Compare

Not known to be exploited.

Data as of 30 Oct 2026, 15:33 UTC

Severity
Medium

Rated Medium by Threat Radar's AI analysis · No CVSS score from NVD or the CNA

Thin evidence

One scorer or none

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

Community reviews

Loading reviews…