CVE-2023-54099

Source
https://cve.org/CVERecord?id=CVE-2023-54099
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54099.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-54099
Downstream
Related
Published
2025-12-24T13:06:25.895Z
Modified
2026-03-31T17:29:45.036053641Z
Summary
fs: Protect reconfiguration of sb read-write from racing writes
Details

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 SBRDONLY 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 SBRDONLY 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 MNTREADONLY flag so this is relatively new problem. It is actually fairly easy to protect remount read-write from racing writes using sb->sreadonly_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/

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54099.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8d0347f6c3a9d4953ddd636a31c6584da082e084
Fixed
0336b42456e485fda1006b5b411e7372e20fbf03
Fixed
7e4e87ec56aa6d008c64eab31b340a7c452b26cc
Fixed
0ccfe21949bc9f706a86ee7351b74375c0745757
Fixed
295ef44a2abaf97d7a594b1d4c60d4be3738191f
Fixed
4abda85197ba5d695e6040d580b4b409ce0d3733
Fixed
c541dce86c537714b6761a79a969c1623dfa222b

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54099.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.1.0
Fixed
5.4.253
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.190
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.126
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.45
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.4.10

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-54099.json"