Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-40998

published

ext4: fix uninitialized ratelimit_state->lock access in __ext4_fill_super()

Published
12 Jul 2024, 12:37:39 UTC
Updated
30 Oct 2026, 12:18:38 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxefbed4dc5857f845d787e406ce85097d1ccc5c4f to < 1e2df0ee0afd6d4b436a740f04f7a759e6531005 · efbed4dc5857f845d787e406ce85097d1ccc5c4f to < 23afcd52af06880c6c913a0ad99022b8937b575c · efbed4dc5857f845d787e406ce85097d1ccc5c4f to < 645267906944a9aeec9d5c56ee24a9096a288798 · efbed4dc5857f845d787e406ce85097d1ccc5c4f to < b4b4fda34e535756f9e774fb2d09c4537b7dfd1c · Other versions: unaffected Affected Not stated Linux
Linux — Linux3.13 (affected) · 0 to < 3.13 (unaffected · semver) · 6.1.191 through 6.1.* (unaffected · semver) · 6.6.36 through 6.6.* (unaffected · semver) · 6.9.7 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation No Fix Planned; Not Affected Not stated Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
Debian bookworm linux Advisory build 6.1.192-1 DLA-4906-1
AlmaLinux 8 kernel Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.22.1.rt7.363.el8_10 ALSA-2024:7001
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.22.1.rt7.363.el8_10 ALSA-2024:7001
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.22.1.rt7.363.el8_10 ALSA-2024:7001
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.22.1.rt7.363.el8_10 ALSA-2024:7001
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.22.1.rt7.363.el8_10 ALSA-2024:7001
AlmaLinux 8 kernel-rt-debug-kvm Advisory build 4.18.0-553.22.1.rt7.363.el8_10 ALSA-2024:7001
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.22.1.rt7.363.el8_10 ALSA-2024:7001
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.22.1.rt7.363.el8_10 ALSA-2024:7001
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.22.1.rt7.363.el8_10 ALSA-2024:7001
AlmaLinux 8 kernel-rt-kvm Advisory build 4.18.0-553.22.1.rt7.363.el8_10 ALSA-2024:7001
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.22.1.rt7.363.el8_10 ALSA-2024:7001
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.22.1.rt7.363.el8_10 ALSA-2024:7001
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 perf Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.22.1.el8_10 ALSA-2024:7000
AlmaLinux 9 bpftool Advisory build 7.3.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-debug Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-devel Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-doc Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-headers Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-modules Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-rt Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-tools Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 libperf Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 perf Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 python3-perf Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 rtla Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617
AlmaLinux 9 rv Advisory build 5.14.0-427.42.1.el9_4 ALSA-2024:8617

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: ext4: fix uninitialized ratelimit_state->lock access in __ext4_fill_super() In the following concurrency we will access the uninitialized rs->lock: ext4_fill_super ext4_register_sysfs // sysfs registered msg_ratelimit_interval_ms // Other processes modify rs->interval to // non-zero via msg_ratelimit_interval_ms ext4_orphan_cleanup ext4_msg(sb, KERN_INFO, "Errors on filesystem, " __ext4_msg ___ratelimit(&(EXT4_SB(sb)->s_msg_ratelimit_state) if (!rs->interval) // do nothing if interval is 0 return 1; raw_spin_trylock_irqsave(&rs->lock, flags) raw_spin_trylock(lock) _raw_spin_trylock __raw_spin_trylock spin_acquire(&lock->dep_map, 0, 1, _RET_IP_) lock_acquire __lock_acquire register_lock_class assign_lock_key dump_stack(); ratelimit_state_init(&sbi->s_msg_ratelimit_state, 5 * HZ, 10); raw_spin_lock_init(&rs->lock); // init rs->lock here and get the following dump_stack: ========================================================= INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use? turning off the locking correctness validator. CPU: 12 PID: 753 Comm: mount Tainted: G E 6.7.0-rc6-next-20231222 #504 [...] Call Trace: dump_stack_lvl+0xc5/0x170 dump_stack+0x18/0x30 register_lock_class+0x740/0x7c0 __lock_acquire+0x69/0x13a0 lock_acquire+0x120/0x450 _raw_spin_trylock+0x98/0xd0 ___ratelimit+0xf6/0x220 __ext4_msg+0x7f/0x160 [ext4] ext4_orphan_cleanup+0x665/0x740 [ext4] __ext4_fill_super+0x21ea/0x2b10 [ext4] ext4_fill_super+0x14d/0x360 [ext4] [...] ========================================================= Normally interval is 0 until s_msg_ratelimit_state is initialized, so ___ratelimit() does nothing. But registering sysfs precedes initializing rs->lock, so it is possible to change rs->interval to a non-zero value via the msg_ratelimit_interval_ms interface of sysfs while rs->lock is uninitialized, and then a call to ext4_msg triggers the problem by accessing an uninitialized rs->lock. Therefore register sysfs after all initializations are complete to avoid such problems.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

42

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux efbed4dc5857f845d787e406ce85097d1ccc5c4f to < 1e2df0ee0afd6d4b436a740f04f7a759e6531005 (affected · git)efbed4dc5857f845d787e406ce85097d1ccc5c4f to < 23afcd52af06880c6c913a0ad99022b8937b575c (affected · git)efbed4dc5857f845d787e406ce85097d1ccc5c4f to < 645267906944a9aeec9d5c56ee24a9096a288798 (affected · git)efbed4dc5857f845d787e406ce85097d1ccc5c4f to < b4b4fda34e535756f9e774fb2d09c4537b7dfd1c (affected · git)Default: unaffected Linux · cna
Linux Linux 3.13 (affected)0 to < 3.13 (unaffected · semver)6.1.191 through 6.1.* (unaffected · semver)6.6.36 through 6.6.* (unaffected · semver)6.9.7 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

3

Linux · cna

ext4: fix uninitialized ratelimit_state->lock access in __ext4_fill_super()

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
c46d10d8f2609cb2ad128c96bc32cedb7d44ef2e00e6d52261132f76541b017d
Ingested
30 Oct 2026, 12:31:36 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected