CVE-2023-54099
fs: Protect reconfiguration of sb read-write from racing writes
Check your servers for CVE-2023-54099
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-54099 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:
fs: Protect reconfiguration of sb read-write from racing writes
The reconfigure / remount code takes a lot of effort to protect filesystem's reconfiguration code from racing writes on remounting read-only. However during remounting read-only filesystem to read-write mode userspace writes can start immediately once we clear SB_RDONLY flag. This is inconvenient for example for ext4 because we need to do some writes to the filesystem (such as preparation of quota files) before we can take userspace writes so we are clearing SB_RDONLY flag before we are fully ready to accept userpace writes and syzbot has found a way to exploit this [1]. Also as far as I'm reading the code the filesystem remount code was protected from racing writes in the legacy mount path by the mount's MNT_READONLY flag so this is relatively new problem. It is actually fairly easy to protect remount read-write from racing writes using sb->s_readonly_remount flag so let's just do that instead of having to workaround these races in the filesystem code.
[1] https://lore.kernel.org/all/00000000000006a0df05f6667499@google.com/T/
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8d0347f6c3a9d4953ddd636a31c6584da082e084, before 0336b42456e485fda1006b5b411e7372e20fbf03 affected from 8d0347f6c3a9d4953ddd636a31c6584da082e084, before 7e4e87ec56aa6d008c64eab31b340a7c452b26cc affected from 8d0347f6c3a9d4953ddd636a31c6584da082e084, before 0ccfe21949bc9f706a86ee7351b74375c0745757 affected from 8d0347f6c3a9d4953ddd636a31c6584da082e084, before 295ef44a2abaf97d7a594b1d4c60d4be3738191f affected from 8d0347f6c3a9d4953ddd636a31c6584da082e084, before 4abda85197ba5d695e6040d580b4b409ce0d3733 affected from 8d0347f6c3a9d4953ddd636a31c6584da082e084, before c541dce86c537714b6761a79a969c1623dfa222b
Other versions: unaffected
|
| Linux |
affected 5.1 unaffected before 5.1 unaffected from 5.4.253 up to and including 5.4.* unaffected from 5.10.190 up to and including 5.10.* unaffected from 5.15.126 up to and including 5.15.* unaffected from 6.1.45 up to and including 6.1.* unaffected from 6.4.10 up to and including 6.4.* unaffected 6.5 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-54099 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54099
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-54099
trivy image --scanners vuln IMAGE | grep CVE-2023-54099
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/0336b42456e485fda1006b5b411e7372e20fbf03 git.kernel.org
- https://git.kernel.org/stable/c/7e4e87ec56aa6d008c64eab31b340a7c452b26cc git.kernel.org
- https://git.kernel.org/stable/c/0ccfe21949bc9f706a86ee7351b74375c0745757 git.kernel.org
- https://git.kernel.org/stable/c/295ef44a2abaf97d7a594b1d4c60d4be3738191f git.kernel.org
- https://git.kernel.org/stable/c/4abda85197ba5d695e6040d580b4b409ce0d3733 git.kernel.org
- https://git.kernel.org/stable/c/c541dce86c537714b6761a79a969c1623dfa222b git.kernel.org
Source: the record CVE-2023-54099 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