# CVE-2023-54311: ext4: fix deadlock when converting an inline directory in nojournal mode

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-12-30T12:23:43.174Z
- Modified: 2026-06-17T06:47:12.273Z
- Assigned by: Linux

## Description

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

ext4: fix deadlock when converting an inline directory in nojournal mode

In no journal mode, ext4_finish_convert_inline_dir() can self-deadlock
by calling ext4_handle_dirty_dirblock() when it already has taken the
directory lock.  There is a similar self-deadlock in
ext4_incvert_inline_data_nolock() for data files which we'll fix at
the same time.

A simple reproducer demonstrating the problem:

    mke2fs -Fq -t ext2 -O inline_data -b 4k /dev/vdc 64
    mount -t ext4 -o dirsync /dev/vdc /vdc
    cd /vdc
    mkdir file0
    cd file0
    touch file0
    touch file1
    attr -s BurnSpaceInEA -V abcde .
    touch supercalifragilisticexpialidocious

(As written by CVE List.)

## Affected

- Linux Linux: from 3c47d54170b6a678875566b1b8d6dcf57904e49b before b4fa4768c9acff77245d672d855d2c88294850b1; from 3c47d54170b6a678875566b1b8d6dcf57904e49b before 5f8b55136ad787aed2c184f7cb3e93772ae637a3; from 3c47d54170b6a678875566b1b8d6dcf57904e49b before 640c8c365999c6f23447ac766437236ad88317c5; from 3c47d54170b6a678875566b1b8d6dcf57904e49b before 665cc3ba50330049524c1d275bc840a8f28dde73; from 3c47d54170b6a678875566b1b8d6dcf57904e49b before 0b1c4357bb21d9770451a1bdb8d419ea10bada88; from 3c47d54170b6a678875566b1b8d6dcf57904e49b before 804de0c72cd473e186ca4e1f6287d45431b14e5a; from 3c47d54170b6a678875566b1b8d6dcf57904e49b before f4ce24f54d9cca4f09a395f3eecce20d6bec4663; 3.8 (not affected: before 3.8; from 5.4.243 up to 5.4.*; from 5.10.180 up to 5.10.*; from 5.15.112 up to 5.15.*; from 6.1.29 up to 6.1.*; from 6.2.16 up to 6.2.*; from 6.3.3 up to 6.3.*; from 6.4 up to *)

## References

- <https://git.kernel.org/stable/c/b4fa4768c9acff77245d672d855d2c88294850b1>
- <https://git.kernel.org/stable/c/5f8b55136ad787aed2c184f7cb3e93772ae637a3>
- <https://git.kernel.org/stable/c/640c8c365999c6f23447ac766437236ad88317c5>
- <https://git.kernel.org/stable/c/665cc3ba50330049524c1d275bc840a8f28dde73>
- <https://git.kernel.org/stable/c/0b1c4357bb21d9770451a1bdb8d419ea10bada88>
- <https://git.kernel.org/stable/c/804de0c72cd473e186ca4e1f6287d45431b14e5a>
- <https://git.kernel.org/stable/c/f4ce24f54d9cca4f09a395f3eecce20d6bec4663>

## Sources

- CVE List: [CVE-2023-54311](https://www.cve.org/CVERecord?id=CVE-2023-54311), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-54311](https://nvd.nist.gov/vuln/detail/CVE-2023-54311), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-54311 · Whole record: https://cve.day/CVE-2023-54311.json · Rebuilt by cve.day 2026-11-25T22:58:35.270Z
