# CVE-2024-50014: ext4: fix access to uninitialised lock in fc replay path

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2024-10-21T18:54:05.764Z
- **Modified:** 2026-11-10T13:17:24.867Z

## Who should check

- Anyone running Linux \>= 01efe93a5aa20a19b390426718dc214898a7c2ec, \< 6e35f560daebe40264c95e9a1ab03110d4997df6; \>= 01efe93a5aa20a19b390426718dc214898a7c2ec, \< d157fc20ca5239fd56965a5a8aa1a0e25919891a; \>= 01efe93a5aa20a19b390426718dc214898a7c2ec, \< b002031d585a14eed511117dda8c6452a804d508; \>= 01efe93a5aa20a19b390426718dc214898a7c2ec, \< 23dfdb56581ad92a9967bcd720c8c23356af74c1
- Anyone running Linux 6.6

## Description

In the Linux kernel, the following vulnerability has been resolved:

ext4: fix access to uninitialised lock in fc replay path

The following kernel trace can be triggered with fstest generic/629 when
executed against a filesystem with fast-commit feature enabled:

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: 0 PID: 866 Comm: mount Not tainted 6.10.0+ \#11
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.2-3-gd478f380-prebuilt.qemu.org 04/01/2014
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x66/0x90
 register\_lock\_class+0x759/0x7d0
 \_\_lock\_acquire+0x85/0x2630
 ? \_\_find\_get\_block+0xb4/0x380
 lock\_acquire+0xd1/0x2d0
 ? \_\_ext4\_journal\_get\_write\_access+0xd5/0x160
 \_raw\_spin\_lock+0x33/0x40
 ? \_\_ext4\_journal\_get\_write\_access+0xd5/0x160
 \_\_ext4\_journal\_get\_write\_access+0xd5/0x160
 ext4\_reserve\_inode\_write+0x61/0xb0
 \_\_ext4\_mark\_inode\_dirty+0x79/0x270
 ? ext4\_ext\_replay\_set\_iblocks+0x2f8/0x450
 ext4\_ext\_replay\_set\_iblocks+0x330/0x450
 ext4\_fc\_replay+0x14c8/0x1540
 ? jread+0x88/0x2e0
 ? rcu\_is\_watching+0x11/0x40
 do\_one\_pass+0x447/0xd00
 jbd2\_journal\_recover+0x139/0x1b0
 jbd2\_journal\_load+0x96/0x390
 ext4\_load\_and\_init\_journal+0x253/0xd40
 ext4\_fill\_super+0x2cc6/0x3180
...

In the replay path there's an attempt to lock sbi-\>s\_bdev\_wb\_lock in
function ext4\_check\_bdev\_write\_error().  Unfortunately, at this point this
spinlock has not been initialized yet.  Moving it's initialization to an
earlier point in \_\_ext4\_fill\_super() fixes this splat.

## Affected and fixed versions

- Linux: \>= 01efe93a5aa20a19b390426718dc214898a7c2ec, \< 6e35f560daebe40264c95e9a1ab03110d4997df6; \>= 01efe93a5aa20a19b390426718dc214898a7c2ec, \< d157fc20ca5239fd56965a5a8aa1a0e25919891a; \>= 01efe93a5aa20a19b390426718dc214898a7c2ec, \< b002031d585a14eed511117dda8c6452a804d508; \>= 01efe93a5aa20a19b390426718dc214898a7c2ec, \< 23dfdb56581ad92a9967bcd720c8c23356af74c1 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 23dfdb56581ad92a9967bcd720c8c23356af74c1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-50014. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50014.md
Affected: Linux >= 01efe93a5aa20a19b390426718dc214898a7c2ec, < 6e35f560daebe40264c95e9a1ab03110d4997df6; >= 01efe93a5aa20a19b390426718dc214898a7c2ec, < d157fc20ca5239fd56965a5a8aa1a0e25919891a; >= 01efe93a5aa20a19b390426718dc214898a7c2ec, < b002031d585a14eed511117dda8c6452a804d508; >= 01efe93a5aa20a19b390426…
Fixed in: Linux 6e35f560daebe40264c95e9a1ab03110d4997df6, Linux 23dfdb56581ad92a9967bcd720c8c23356af74c1

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-50014 being exploited?

There is no confirmed exploitation: CVE-2024-50014 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-50014?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-50014?

Linux \>= 01efe93a5aa20a19b390426718dc214898a7c2ec, \< 6e35f560daebe40264c95e9a1ab03110d4997df6; \>= 01efe93a5aa20a19b390426718dc214898a7c2ec, \< d157fc20ca5239fd56965a5a8aa1a0e25919891a; \>= 01efe93a5aa20a19b390426718dc214898a7c2ec, \< b002031d585a14eed511117dda8c6452a804d508; \>= 01efe93a5aa20a19b390426718dc214898a7c2ec, \< 23dfdb56581ad92a9967bcd720c8c23356af74c1; Linux 6.6.

### Is there a fix for CVE-2024-50014?

Yes. Fixed in Linux 6e35f560daebe40264c95e9a1ab03110d4997df6, Linux 23dfdb56581ad92a9967bcd720c8c23356af74c1. Upgrade Linux to 23dfdb56581ad92a9967bcd720c8c23356af74c1 or later.

### How do I check if I'm affected by CVE-2024-50014?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/d157fc20ca5239fd56965a5a8aa1a0e25919891a>
- patch: <https://git.kernel.org/stable/c/b002031d585a14eed511117dda8c6452a804d508>
- patch: <https://git.kernel.org/stable/c/23dfdb56581ad92a9967bcd720c8c23356af74c1>
- other: <https://git.kernel.org/stable/c/6e35f560daebe40264c95e9a1ab03110d4997df6>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50014>

HTML: <https://flawdb.com/CVE-2024-50014> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50014>
