{"id":"CVE-2023-54099","summary":"fs: Protect reconfiguration of sb read-write from racing writes","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs: Protect reconfiguration of sb read-write from racing writes\n\nThe reconfigure / remount code takes a lot of effort to protect\nfilesystem's reconfiguration code from racing writes on remounting\nread-only. However during remounting read-only filesystem to read-write\nmode userspace writes can start immediately once we clear SB_RDONLY\nflag. This is inconvenient for example for ext4 because we need to do\nsome writes to the filesystem (such as preparation of quota files)\nbefore we can take userspace writes so we are clearing SB_RDONLY flag\nbefore we are fully ready to accept userpace writes and syzbot has found\na way to exploit this [1]. Also as far as I'm reading the code\nthe filesystem remount code was protected from racing writes in the\nlegacy mount path by the mount's MNT_READONLY flag so this is relatively\nnew problem. It is actually fairly easy to protect remount read-write\nfrom racing writes using sb-\u003es_readonly_remount flag so let's just do\nthat instead of having to workaround these races in the filesystem code.\n\n[1] https://lore.kernel.org/all/00000000000006a0df05f6667499@google.com/T/","modified":"2026-03-31T17:29:45.036053641Z","published":"2025-12-24T13:06:25.895Z","related":["SUSE-SU-2026:0278-1","SUSE-SU-2026:0281-1","SUSE-SU-2026:0293-1","SUSE-SU-2026:0315-1","SUSE-SU-2026:20477-1","SUSE-SU-2026:20498-1","SUSE-SU-2026:20845-1","SUSE-SU-2026:20876-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54099.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0336b42456e485fda1006b5b411e7372e20fbf03"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0ccfe21949bc9f706a86ee7351b74375c0745757"},{"type":"WEB","url":"https://git.kernel.org/stable/c/295ef44a2abaf97d7a594b1d4c60d4be3738191f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4abda85197ba5d695e6040d580b4b409ce0d3733"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7e4e87ec56aa6d008c64eab31b340a7c452b26cc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c541dce86c537714b6761a79a969c1623dfa222b"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54099.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54099"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.7.5"}