# CVE-2024-50006: ext4: fix i\_data\_sem unlock order in ext4\_ind\_migrate()

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-10-21T18:53:59.938Z
- **Modified:** 2026-10-15T01:19:04.183Z

## Who should check

- Anyone running Linux \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 4192adefc9c570698821c5eb9873320eac2fcbf1; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 3c46d6060d3e38de22196c1fe7706c5a3c696285; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 53b1999cfd2c7addf2e581a32865fe8835467b44; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< ef05572da0c0eb89614ed01cc17d3c882bdbd1ff; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 9fedf51ab8cf7b69bff08f37fe0989fec7f5d870; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< d43776b907659affef1de888525847d64b244194; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 6252cb6bde7fc76cb8dcb49d1def7c326b190820; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< d58a00e981d3118b91d503da263e640b7cde6729; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< cc749e61c011c255d81b192a822db650c68b313f
- Anyone running Linux 3.10

## Description

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

ext4: fix i\_data\_sem unlock order in ext4\_ind\_migrate()

Fuzzing reports a possible deadlock in jbd2\_log\_wait\_commit.

This issue is triggered when an EXT4\_IOC\_MIGRATE ioctl is set to require
synchronous updates because the file descriptor is opened with O\_SYNC.
This can lead to the jbd2\_journal\_stop() function calling
jbd2\_might\_wait\_for\_commit(), potentially causing a deadlock if the
EXT4\_IOC\_MIGRATE call races with a write(2) system call.

This problem only arises when CONFIG\_PROVE\_LOCKING is enabled. In this
case, the jbd2\_might\_wait\_for\_commit macro locks jbd2\_handle in the
jbd2\_journal\_stop function while i\_data\_sem is locked. This triggers
lockdep because the jbd2\_journal\_start function might also lock the same
jbd2\_handle simultaneously.

Found by Linux Verification Center (linuxtesting.org) with syzkaller.

Rule: add

## Affected and fixed versions

- Linux: \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 4192adefc9c570698821c5eb9873320eac2fcbf1; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 3c46d6060d3e38de22196c1fe7706c5a3c696285; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 53b1999cfd2c7addf2e581a32865fe8835467b44; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< ef05572da0c0eb89614ed01cc17d3c882bdbd1ff; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 9fedf51ab8cf7b69bff08f37fe0989fec7f5d870; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< d43776b907659affef1de888525847d64b244194; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 6252cb6bde7fc76cb8dcb49d1def7c326b190820; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< d58a00e981d3118b91d503da263e640b7cde6729; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< cc749e61c011c255d81b192a822db650c68b313f (cvelist)
- Linux: 3.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-50006.md
Affected: Linux >= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, < 4192adefc9c570698821c5eb9873320eac2fcbf1; >= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, < 3c46d6060d3e38de22196c1fe7706c5a3c696285; >= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, < 53b1999cfd2c7addf2e581a32865fe8835467b44; >= e8238f9a8339b3578c85e41…
Fixed in: Linux 4192adefc9c570698821c5eb9873320eac2fcbf1, Linux 3c46d6060d3e38de22196c1fe7706c5a3c696285, Linux 53b1999cfd2c7addf2e581a32865fe8835467b44, Linux 9fedf51ab8cf7b69bff08f37fe0989fec7f5d870, Linux 6252cb6bde7fc76cb8dcb49d1def7c326b190820

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-50006 being exploited?

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 4192adefc9c570698821c5eb9873320eac2fcbf1; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 3c46d6060d3e38de22196c1fe7706c5a3c696285; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 53b1999cfd2c7addf2e581a32865fe8835467b44; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< ef05572da0c0eb89614ed01cc17d3c882bdbd1ff; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 9fedf51ab8cf7b69bff08f37fe0989fec7f5d870; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< d43776b907659affef1de888525847d64b244194; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< 6252cb6bde7fc76cb8dcb49d1def7c326b190820; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< d58a00e981d3118b91d503da263e640b7cde6729; \>= e8238f9a8339b3578c85e4192a7a23bc2bdc0333, \< cc749e61c011c255d81b192a822db650c68b313f; Linux 3.10.

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

Yes. Fixed in Linux 4192adefc9c570698821c5eb9873320eac2fcbf1, Linux 3c46d6060d3e38de22196c1fe7706c5a3c696285, Linux 53b1999cfd2c7addf2e581a32865fe8835467b44, Linux 9fedf51ab8cf7b69bff08f37fe0989fec7f5d870, Linux 6252cb6bde7fc76cb8dcb49d1def7c326b190820. No fix listed yet: follow the vendor advisory.

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

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/53b1999cfd2c7addf2e581a32865fe8835467b44>
- patch: <https://git.kernel.org/stable/c/ef05572da0c0eb89614ed01cc17d3c882bdbd1ff>
- patch: <https://git.kernel.org/stable/c/9fedf51ab8cf7b69bff08f37fe0989fec7f5d870>
- patch: <https://git.kernel.org/stable/c/d43776b907659affef1de888525847d64b244194>
- patch: <https://git.kernel.org/stable/c/6252cb6bde7fc76cb8dcb49d1def7c326b190820>
- patch: <https://git.kernel.org/stable/c/d58a00e981d3118b91d503da263e640b7cde6729>
- patch: <https://git.kernel.org/stable/c/cc749e61c011c255d81b192a822db650c68b313f>
- other: <https://git.kernel.org/stable/c/4192adefc9c570698821c5eb9873320eac2fcbf1>
- other: <https://git.kernel.org/stable/c/3c46d6060d3e38de22196c1fe7706c5a3c696285>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.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-50006>

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