CVE-2023-54311
ext4: fix deadlock when converting an inline directory in nojournal mode
Check your servers for CVE-2023-54311
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2023-54311 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.5% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 3c47d54170b6a678875566b1b8d6dcf57904e49b, before b4fa4768c9acff77245d672d855d2c88294850b1 affected from 3c47d54170b6a678875566b1b8d6dcf57904e49b, before 5f8b55136ad787aed2c184f7cb3e93772ae637a3 affected from 3c47d54170b6a678875566b1b8d6dcf57904e49b, before 640c8c365999c6f23447ac766437236ad88317c5 affected from 3c47d54170b6a678875566b1b8d6dcf57904e49b, before 665cc3ba50330049524c1d275bc840a8f28dde73 affected from 3c47d54170b6a678875566b1b8d6dcf57904e49b, before 0b1c4357bb21d9770451a1bdb8d419ea10bada88 affected from 3c47d54170b6a678875566b1b8d6dcf57904e49b, before 804de0c72cd473e186ca4e1f6287d45431b14e5a affected from 3c47d54170b6a678875566b1b8d6dcf57904e49b, before f4ce24f54d9cca4f09a395f3eecce20d6bec4663
Other versions: unaffected
|
| Linux |
affected 3.8 unaffected before 3.8 unaffected from 5.4.243 up to and including 5.4.* unaffected from 5.10.180 up to and including 5.10.* unaffected from 5.15.112 up to and including 5.15.* unaffected from 6.1.29 up to and including 6.1.* unaffected from 6.2.16 up to and including 6.2.* unaffected from 6.3.3 up to and including 6.3.* unaffected 6.4 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2023-54311 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54311
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2023-54311
trivy image --scanners vuln IMAGE | grep CVE-2023-54311
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/b4fa4768c9acff77245d672d855d2c88294850b1 git.kernel.org
- https://git.kernel.org/stable/c/5f8b55136ad787aed2c184f7cb3e93772ae637a3 git.kernel.org
- https://git.kernel.org/stable/c/640c8c365999c6f23447ac766437236ad88317c5 git.kernel.org
- https://git.kernel.org/stable/c/665cc3ba50330049524c1d275bc840a8f28dde73 git.kernel.org
- https://git.kernel.org/stable/c/0b1c4357bb21d9770451a1bdb8d419ea10bada88 git.kernel.org
- https://git.kernel.org/stable/c/804de0c72cd473e186ca4e1f6287d45431b14e5a git.kernel.org
- https://git.kernel.org/stable/c/f4ce24f54d9cca4f09a395f3eecce20d6bec4663 git.kernel.org
Source: the record CVE-2023-54311 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse