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

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-10-21 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2024-50006, DEBIAN-CVE-2024-50006
- Record: https://cvemate.com/vulnerability/CVE-2024-50006 · JSON: https://cvemate.com/vulnerability/CVE-2024-50006/json

## Description

```text
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
```

## Signals

- CVSS: 4.7 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.192%, percentile 9.262%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 139)

- debian linux (Debian): \< 6.1.115-1 \| \< 6.11.4-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 4.4.0-274.308 \| \< 4.15.0-243.255 \| \< 5.4.0-208.228 \| \< 5.15.0-127.137 \| \< 6.8.0-54.56
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.4.0-1149.155 \| \< 4.4.0-1187.202 \| \< 4.15.0-1186.199 \| \< 5.4.0-1140.150 \| \< 5.15.0-1073.79 \| \< 6.8.0-1023.25
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1073.79~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1142.152~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1023.25~22.04.1
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2124.130 \| All versions (No fix recorded) \| \< 5.4.0-1140.151+fips1 \| \< 5.15.0-1073.79+fips1
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1186.199~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1194.209~14.04.1 \| \< 4.15.0-1194.209~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1145.152 \| \< 5.15.0-1078.87 \| \< 6.8.0-1025.30
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1194.209
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 59)

- <https://git.kernel.org/stable/c/4192adefc9c570698821c5eb9873320eac2fcbf1>
- <https://git.kernel.org/stable/c/3c46d6060d3e38de22196c1fe7706c5a3c696285>
- <https://git.kernel.org/stable/c/53b1999cfd2c7addf2e581a32865fe8835467b44>
- <https://git.kernel.org/stable/c/ef05572da0c0eb89614ed01cc17d3c882bdbd1ff>
- <https://git.kernel.org/stable/c/9fedf51ab8cf7b69bff08f37fe0989fec7f5d870>
- <https://git.kernel.org/stable/c/d43776b907659affef1de888525847d64b244194>
- <https://git.kernel.org/stable/c/6252cb6bde7fc76cb8dcb49d1def7c326b190820>
- <https://git.kernel.org/stable/c/d58a00e981d3118b91d503da263e640b7cde6729>
- <https://git.kernel.org/stable/c/cc749e61c011c255d81b192a822db650c68b313f>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>
- <https://ubuntu.com/security/CVE-2024-50006>
- <https://www.cve.org/CVERecord?id=CVE-2024-50006>
- <https://git.kernel.org/linus/cc749e61c011c255d81b192a822db650c68b313f>
- <https://ubuntu.com/security/notices/USN-7166-1>
- <https://ubuntu.com/security/notices/USN-7166-2>
- <https://ubuntu.com/security/notices/USN-7166-3>

---

Data as of 2026-12-05T03:51:10.172Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
