# CVE-2023-53829: f2fs: flush inode if atomic file is aborted

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-12-09T01:29:43.645Z
- **Modified:** 2026-08-05T09:16:19.040Z

## Who should check

- Anyone running Linux \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 1c64dbe8fa3552a340bca6d7fa09468c16ed2a85; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< bfa7853bb47fee0c17030b377c98cf4ede47ba33; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< a3ab55746612247ce3dcaac6de66f5ffc055b9df
- Anyone running Linux 3.8

## Description

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

f2fs: flush inode if atomic file is aborted

Let's flush the inode being aborted atomic operation to avoid stale dirty
inode during eviction in this call stack:

  f2fs\_mark\_inode\_dirty\_sync+0x22/0x40 \[f2fs\]
  f2fs\_abort\_atomic\_write+0xc4/0xf0 \[f2fs\]
  f2fs\_evict\_inode+0x3f/0x690 \[f2fs\]
  ? sugov\_start+0x140/0x140
  evict+0xc3/0x1c0
  evict\_inodes+0x17b/0x210
  generic\_shutdown\_super+0x32/0x120
  kill\_block\_super+0x21/0x50
  deactivate\_locked\_super+0x31/0x90
  cleanup\_mnt+0x100/0x160
  task\_work\_run+0x59/0x90
  do\_exit+0x33b/0xa50
  do\_group\_exit+0x2d/0x80
  \_\_x64\_sys\_exit\_group+0x14/0x20
  do\_syscall\_64+0x3b/0x90
  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

This triggers f2fs\_bug\_on() in f2fs\_evict\_inode:
 f2fs\_bug\_on(sbi, is\_inode\_flag\_set(inode, FI\_DIRTY\_INODE));

This fixes the syzbot report:

loop0: detected capacity change from 0 to 131072
F2FS-fs (loop0): invalid crc value
F2FS-fs (loop0): Found nat\_bits in checkpoint
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e4
------------\[ cut here \]------------
kernel BUG at fs/f2fs/inode.c:869!
invalid opcode: 0000 \[\#1\] PREEMPT SMP KASAN
CPU: 0 PID: 5014 Comm: syz-executor220 Not tainted 6.4.0-syzkaller-11479-g6cd06ab12d1a \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:f2fs\_evict\_inode+0x172d/0x1e00 fs/f2fs/inode.c:869
Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 6a 06 00 00 8b 75 40 ba 01 00 00 00 4c 89 e7 e8 6d ce 06 00 e9 aa fc ff ff e8 63 22 e2 fd \<0f\> 0b e8 5c 22 e2 fd 48 c7 c0 a8 3a 18 8d 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90003a6fa00 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: ffff8880273b8000 RSI: ffffffff83a2bd0d RDI: 0000000000000007
RBP: ffff888077db91b0 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff888029a3c000
R13: ffff888077db9660 R14: ffff888029a3c0b8 R15: ffff888077db9c50
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1909bb9000 CR3: 00000000276a9000 CR4: 0000000000350ef0
Call Trace:
 \<TASK\>
 evict+0x2ed/0x6b0 fs/inode.c:665
 dispose\_list+0x117/0x1e0 fs/inode.c:698
 evict\_inodes+0x345/0x440 fs/inode.c:748
 generic\_shutdown\_super+0xaf/0x480 fs/super.c:478
 kill\_block\_super+0x64/0xb0 fs/super.c:1417
 kill\_f2fs\_super+0x2af/0x3c0 fs/f2fs/super.c:4704
 deactivate\_locked\_super+0x98/0x160 fs/super.c:330
 deactivate\_super+0xb1/0xd0 fs/super.c:361
 cleanup\_mnt+0x2ae/0x3d0 fs/namespace.c:1254
 task\_work\_run+0x16f/0x270 kernel/task\_work.c:179
 exit\_task\_work include/linux/task\_work.h:38 \[inline\]
 do\_exit+0xa9a/0x29a0 kernel/exit.c:874
 do\_group\_exit+0xd4/0x2a0 kernel/exit.c:1024
 \_\_do\_sys\_exit\_group kernel/exit.c:1035 \[inline\]
 \_\_se\_sys\_exit\_group kernel/exit.c:1033 \[inline\]
 \_\_x64\_sys\_exit\_group+0x3e/0x50 kernel/exit.c:1033
 do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
 do\_syscall\_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
RIP: 0033:0x7f309be71a09
Code: Unable to access opcode bytes at 0x7f309be719df.
RSP: 002b:00007fff171df518 EFLAGS: 00000246 ORIG\_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f309bef7330 RCX: 00007f309be71a09
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 00007f309bef1e40
R10: 0000000000010600 R11: 0000000000000246 R12: 00007f309bef7330
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 \</TASK\>
Modules linked in:
---\[ end trace 0000000000000000 \]---
RIP: 0010:f2fs\_evict\_inode+0x172d/0x1e00 fs/f2fs/inode.c:869
Code: ff df 48 c1 ea 03 80 3c 02 00 0f 85 6a 06 00 00 8b 75 40 ba 01 00 00 00 4c 89 e7 e8 6d ce 06 00 e9 aa fc ff ff e8 63 22 e2 fd \<0f\> 0b e8 5c 22 e2 fd 48 c7 c0 a8 3a 18 8d 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90003a6fa00 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000
---truncated---

## Affected and fixed versions

- Linux: \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 1c64dbe8fa3552a340bca6d7fa09468c16ed2a85; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< bfa7853bb47fee0c17030b377c98cf4ede47ba33; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< a3ab55746612247ce3dcaac6de66f5ffc055b9df (cvelist)
- Linux: 3.8 (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-53829. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53829.md
Affected: Linux >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < 1c64dbe8fa3552a340bca6d7fa09468c16ed2a85; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < bfa7853bb47fee0c17030b377c98cf4ede47ba33; >= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, < a3ab55746612247ce3dcaac6de66f5ffc055b9df; Linux 3.8
Fixed in: Linux 1c64dbe8fa3552a340bca6d7fa09468c16ed2a85

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

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

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

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

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

Linux \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< 1c64dbe8fa3552a340bca6d7fa09468c16ed2a85; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< bfa7853bb47fee0c17030b377c98cf4ede47ba33; \>= 98e4da8ca301e062d79ae168c67e56f3c3de3ce4, \< a3ab55746612247ce3dcaac6de66f5ffc055b9df; Linux 3.8.

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

Yes. Fixed in Linux 1c64dbe8fa3552a340bca6d7fa09468c16ed2a85. No fix listed yet: follow the vendor advisory.

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

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/1c64dbe8fa3552a340bca6d7fa09468c16ed2a85>
- other: <https://git.kernel.org/stable/c/bfa7853bb47fee0c17030b377c98cf4ede47ba33>
- other: <https://git.kernel.org/stable/c/a3ab55746612247ce3dcaac6de66f5ffc055b9df>

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

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