# CVE-2023-54182: f2fs: fix to check readonly condition correctly

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.21% (percentile 7, 2026-11-26)
- **Published:** 2025-12-30T12:08:53.092Z
- **Modified:** 2026-08-05T09:17:51.173Z

## Who should check

- Anyone running Linux \>= f824deb54b683165b953371a0529446c723ef6d6, \< e2759a59a4cc96af712084e9db7065c858c4fe9f; \>= f824deb54b683165b953371a0529446c723ef6d6, \< e05d63f8b48aad4613bd582c945bee41e2dd7255; \>= f824deb54b683165b953371a0529446c723ef6d6, \< da8c535b28696017e5d1532d12ea78e836432d9e; \>= f824deb54b683165b953371a0529446c723ef6d6, \< d78dfefcde9d311284434560d69c0478c55a657e
- Anyone running Linux 5.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

f2fs: fix to check readonly condition correctly

With below case, it can mount multi-device image w/ rw option, however
one of secondary device is set as ro, later update will cause panic, so
let's introduce f2fs\_dev\_is\_readonly(), and check multi-devices rw status
in f2fs\_remount() w/ it in order to avoid such inconsistent mount status.

mkfs.f2fs -c /dev/zram1 /dev/zram0 -f
blockdev --setro /dev/zram1
mount -t f2fs dev/zram0 /mnt/f2fs
mount: /mnt/f2fs: WARNING: source write-protected, mounted read-only.
mount -t f2fs -o remount,rw mnt/f2fs
dd if=/dev/zero  of=/mnt/f2fs/file bs=1M count=8192

kernel BUG at fs/f2fs/inline.c:258!
RIP: 0010:f2fs\_write\_inline\_data+0x23e/0x2d0 \[f2fs\]
Call Trace:
  f2fs\_write\_single\_data\_page+0x26b/0x9f0 \[f2fs\]
  f2fs\_write\_cache\_pages+0x389/0xa60 \[f2fs\]
  \_\_f2fs\_write\_data\_pages+0x26b/0x2d0 \[f2fs\]
  f2fs\_write\_data\_pages+0x2e/0x40 \[f2fs\]
  do\_writepages+0xd3/0x1b0
  \_\_writeback\_single\_inode+0x5b/0x420
  writeback\_sb\_inodes+0x236/0x5a0
  \_\_writeback\_inodes\_wb+0x56/0xf0
  wb\_writeback+0x2a3/0x490
  wb\_do\_writeback+0x2b2/0x330
  wb\_workfn+0x6a/0x260
  process\_one\_work+0x270/0x5e0
  worker\_thread+0x52/0x3e0
  kthread+0xf4/0x120
  ret\_from\_fork+0x29/0x50

## Affected and fixed versions

- Linux: \>= f824deb54b683165b953371a0529446c723ef6d6, \< e2759a59a4cc96af712084e9db7065c858c4fe9f; \>= f824deb54b683165b953371a0529446c723ef6d6, \< e05d63f8b48aad4613bd582c945bee41e2dd7255; \>= f824deb54b683165b953371a0529446c723ef6d6, \< da8c535b28696017e5d1532d12ea78e836432d9e; \>= f824deb54b683165b953371a0529446c723ef6d6, \< d78dfefcde9d311284434560d69c0478c55a657e (cvelist)
- Linux: 5.2 (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-54182. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54182.md
Affected: Linux >= f824deb54b683165b953371a0529446c723ef6d6, < e2759a59a4cc96af712084e9db7065c858c4fe9f; >= f824deb54b683165b953371a0529446c723ef6d6, < e05d63f8b48aad4613bd582c945bee41e2dd7255; >= f824deb54b683165b953371a0529446c723ef6d6, < da8c535b28696017e5d1532d12ea78e836432d9e; >= f824deb54b683165b953371…
Fixed in: no fixed version listed yet

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-54182 being exploited?

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

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

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= f824deb54b683165b953371a0529446c723ef6d6, \< e2759a59a4cc96af712084e9db7065c858c4fe9f; \>= f824deb54b683165b953371a0529446c723ef6d6, \< e05d63f8b48aad4613bd582c945bee41e2dd7255; \>= f824deb54b683165b953371a0529446c723ef6d6, \< da8c535b28696017e5d1532d12ea78e836432d9e; \>= f824deb54b683165b953371a0529446c723ef6d6, \< d78dfefcde9d311284434560d69c0478c55a657e; Linux 5.2.

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

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

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

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/e2759a59a4cc96af712084e9db7065c858c4fe9f>
- other: <https://git.kernel.org/stable/c/e05d63f8b48aad4613bd582c945bee41e2dd7255>
- other: <https://git.kernel.org/stable/c/da8c535b28696017e5d1532d12ea78e836432d9e>
- other: <https://git.kernel.org/stable/c/d78dfefcde9d311284434560d69c0478c55a657e>

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

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