# CVE-2023-53447: f2fs: don't reset unchangable mount option in f2fs\_remount()

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.15% (percentile 2, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-09-18T16:04:22.649Z
- **Modified:** 2026-10-30T13:17:18.473Z

## Who should check

- Anyone running Linux \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< f6464b3c31344af4964443dbbcb4596ac9b46519; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 115557cc226a927924f2d7d1980ccbf6e3b3bb36; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 458c15dfbce62c35fefd9ca637b20a051309c9f1
- Anyone running Linux 3.8

## Description

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

f2fs: don't reset unchangable mount option in f2fs\_remount()

syzbot reports a bug as below:

general protection fault, probably for non-canonical address 0xdffffc0000000009: 0000 \[\#1\] PREEMPT SMP KASAN
RIP: 0010:\_\_lock\_acquire+0x69/0x2000 kernel/locking/lockdep.c:4942
Call Trace:
 lock\_acquire+0x1e3/0x520 kernel/locking/lockdep.c:5691
 \_\_raw\_write\_lock include/linux/rwlock\_api\_smp.h:209 \[inline\]
 \_raw\_write\_lock+0x2e/0x40 kernel/locking/spinlock.c:300
 \_\_drop\_extent\_tree+0x3ac/0x660 fs/f2fs/extent\_cache.c:1100
 f2fs\_drop\_extent\_tree+0x17/0x30 fs/f2fs/extent\_cache.c:1116
 f2fs\_insert\_range+0x2d5/0x3c0 fs/f2fs/file.c:1664
 f2fs\_fallocate+0x4e4/0x6d0 fs/f2fs/file.c:1838
 vfs\_fallocate+0x54b/0x6b0 fs/open.c:324
 ksys\_fallocate fs/open.c:347 \[inline\]
 \_\_do\_sys\_fallocate fs/open.c:355 \[inline\]
 \_\_se\_sys\_fallocate fs/open.c:353 \[inline\]
 \_\_x64\_sys\_fallocate+0xbd/0x100 fs/open.c:353
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

The root cause is race condition as below:
- since it tries to remount rw filesystem, so that do\_remount won't
call sb\_prepare\_remount\_readonly to block fallocate, there may be race
condition in between remount and fallocate.
- in f2fs\_remount(), default\_options() will reset mount option to default
one, and then update it based on result of parse\_options(), so there is
a hole which race condition can happen.

Thread A			Thread B
- f2fs\_fill\_super
 - parse\_options
  - clear\_opt(READ\_EXTENT\_CACHE)

- f2fs\_remount
 - default\_options
  - set\_opt(READ\_EXTENT\_CACHE)
				- f2fs\_fallocate
				 - f2fs\_insert\_range
				  - f2fs\_drop\_extent\_tree
				   - \_\_drop\_extent\_tree
				    - \_\_may\_extent\_tree
				     - test\_opt(READ\_EXTENT\_CACHE) return true
				    - write\_lock(&et-\>lock) access NULL pointer
 - parse\_options
  - clear\_opt(READ\_EXTENT\_CACHE)

## Affected and fixed versions

- Linux: \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< f6464b3c31344af4964443dbbcb4596ac9b46519; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 115557cc226a927924f2d7d1980ccbf6e3b3bb36; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 458c15dfbce62c35fefd9ca637b20a051309c9f1 (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- Upgrade Linux to 458c15dfbce62c35fefd9ca637b20a051309c9f1 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-53447.md
Affected: Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < f6464b3c31344af4964443dbbcb4596ac9b46519; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 115557cc226a927924f2d7d1980ccbf6e3b3bb36; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 458c15dfbce62c35fefd9ca637b20a051309c9f1; Linux 3.8
Fixed in: Linux 115557cc226a927924f2d7d1980ccbf6e3b3bb36, Linux 458c15dfbce62c35fefd9ca637b20a051309c9f1

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

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

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

Medium: CVSS 4.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< f6464b3c31344af4964443dbbcb4596ac9b46519; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 115557cc226a927924f2d7d1980ccbf6e3b3bb36; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 458c15dfbce62c35fefd9ca637b20a051309c9f1; Linux 3.8.

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

Yes. Fixed in Linux 115557cc226a927924f2d7d1980ccbf6e3b3bb36, Linux 458c15dfbce62c35fefd9ca637b20a051309c9f1. Upgrade Linux to 458c15dfbce62c35fefd9ca637b20a051309c9f1 or later.

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

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

- patch: <https://git.kernel.org/stable/c/115557cc226a927924f2d7d1980ccbf6e3b3bb36>
- patch: <https://git.kernel.org/stable/c/458c15dfbce62c35fefd9ca637b20a051309c9f1>
- other: <https://git.kernel.org/stable/c/f6464b3c31344af4964443dbbcb4596ac9b46519>

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

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