# CVE-2023-54099: fs: Protect reconfiguration of sb read-write from racing writes

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-12-24T13:06:25.895Z
- **Modified:** 2026-06-17T06:46:48.077Z

## Who should check

- Anyone running Linux \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 0336b42456e485fda1006b5b411e7372e20fbf03; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 7e4e87ec56aa6d008c64eab31b340a7c452b26cc; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 0ccfe21949bc9f706a86ee7351b74375c0745757; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 295ef44a2abaf97d7a594b1d4c60d4be3738191f; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 4abda85197ba5d695e6040d580b4b409ce0d3733; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< c541dce86c537714b6761a79a969c1623dfa222b
- Anyone running Linux 5.1

## 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/

## Affected and fixed versions

- Linux: \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 0336b42456e485fda1006b5b411e7372e20fbf03; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 7e4e87ec56aa6d008c64eab31b340a7c452b26cc; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 0ccfe21949bc9f706a86ee7351b74375c0745757; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 295ef44a2abaf97d7a594b1d4c60d4be3738191f; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 4abda85197ba5d695e6040d580b4b409ce0d3733; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< c541dce86c537714b6761a79a969c1623dfa222b (cvelist)
- Linux: 5.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54099. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54099.md
Affected: Linux >= 8d0347f6c3a9d4953ddd636a31c6584da082e084, < 0336b42456e485fda1006b5b411e7372e20fbf03; >= 8d0347f6c3a9d4953ddd636a31c6584da082e084, < 7e4e87ec56aa6d008c64eab31b340a7c452b26cc; >= 8d0347f6c3a9d4953ddd636a31c6584da082e084, < 0ccfe21949bc9f706a86ee7351b74375c0745757; >= 8d0347f6c3a9d4953ddd636…
Fixed in: Linux 0336b42456e485fda1006b5b411e7372e20fbf03, Linux 7e4e87ec56aa6d008c64eab31b340a7c452b26cc, Linux 0ccfe21949bc9f706a86ee7351b74375c0745757, Linux 295ef44a2abaf97d7a594b1d4c60d4be3738191f, Linux 4abda85197ba5d695e6040d580b4b409ce0d3733

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54099 being exploited?

There is no confirmed exploitation: CVE-2023-54099 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54099?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-54099?

Linux \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 0336b42456e485fda1006b5b411e7372e20fbf03; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 7e4e87ec56aa6d008c64eab31b340a7c452b26cc; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 0ccfe21949bc9f706a86ee7351b74375c0745757; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 295ef44a2abaf97d7a594b1d4c60d4be3738191f; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< 4abda85197ba5d695e6040d580b4b409ce0d3733; \>= 8d0347f6c3a9d4953ddd636a31c6584da082e084, \< c541dce86c537714b6761a79a969c1623dfa222b; Linux 5.1.

### Is there a fix for CVE-2023-54099?

Yes. Fixed in Linux 0336b42456e485fda1006b5b411e7372e20fbf03, Linux 7e4e87ec56aa6d008c64eab31b340a7c452b26cc, Linux 0ccfe21949bc9f706a86ee7351b74375c0745757, Linux 295ef44a2abaf97d7a594b1d4c60d4be3738191f, Linux 4abda85197ba5d695e6040d580b4b409ce0d3733. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54099?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/0336b42456e485fda1006b5b411e7372e20fbf03>
- other: <https://git.kernel.org/stable/c/7e4e87ec56aa6d008c64eab31b340a7c452b26cc>
- other: <https://git.kernel.org/stable/c/0ccfe21949bc9f706a86ee7351b74375c0745757>
- other: <https://git.kernel.org/stable/c/295ef44a2abaf97d7a594b1d4c60d4be3738191f>
- other: <https://git.kernel.org/stable/c/4abda85197ba5d695e6040d580b4b409ce0d3733>
- other: <https://git.kernel.org/stable/c/c541dce86c537714b6761a79a969c1623dfa222b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54099>

HTML: <https://flawdb.com/CVE-2023-54099> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54099>
