# CVE-2025-38577: f2fs: fix to avoid panic in f2fs\_evict\_inode

> 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-08-19T17:03:00.534Z
- **Modified:** 2026-08-05T12:03:04.492Z

## Who should check

- Anyone running Linux \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 15df59809c54fbd687cdf27efbd2103a937459be; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 9535e440fe5bc6c5ac7cfb407e53bf788b8bf8d4; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 5cd99d5aa3d39086bdb53eb5c52df16e98b101a0; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 4732ca17c17f5062426cfa982f43593e6b81963b; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 880ef748e78a1eb7df2d8e11a9ef21e98bcaabe5; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 97df495d754116c8c28ac6a4112f831727bde887; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 9bbfe83924946552c4c513099c0e8c83af76311a; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 42f9ea16aea8b49febaa87950a006a1792209f38; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< a509a55f8eecc8970b3980c6f06886bbff0e2f68
- Anyone running Linux 4.8

## Description

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

f2fs: fix to avoid panic in f2fs\_evict\_inode

As syzbot \[1\] reported as below:

R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffe17473450
R13: 00007f28b1c10854 R14: 000000000000dae5 R15: 00007ffe17474520
 \</TASK\>
---\[ end trace 0000000000000000 \]---
==================================================================
BUG: KASAN: use-after-free in \_\_list\_del\_entry\_valid+0xa6/0x130 lib/list\_debug.c:62
Read of size 8 at addr ffff88812d962278 by task syz-executor/564

CPU: 1 PID: 564 Comm: syz-executor Tainted: G        W          6.1.129-syzkaller \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Call Trace:
 \<TASK\>
 \_\_dump\_stack+0x21/0x24 lib/dump\_stack.c:88
 dump\_stack\_lvl+0xee/0x158 lib/dump\_stack.c:106
 print\_address\_description+0x71/0x210 mm/kasan/report.c:316
 print\_report+0x4a/0x60 mm/kasan/report.c:427
 kasan\_report+0x122/0x150 mm/kasan/report.c:531
 \_\_asan\_report\_load8\_noabort+0x14/0x20 mm/kasan/report\_generic.c:351
 \_\_list\_del\_entry\_valid+0xa6/0x130 lib/list\_debug.c:62
 \_\_list\_del\_entry include/linux/list.h:134 \[inline\]
 list\_del\_init include/linux/list.h:206 \[inline\]
 f2fs\_inode\_synced+0xf7/0x2e0 fs/f2fs/super.c:1531
 f2fs\_update\_inode+0x74/0x1c40 fs/f2fs/inode.c:585
 f2fs\_update\_inode\_page+0x137/0x170 fs/f2fs/inode.c:703
 f2fs\_write\_inode+0x4ec/0x770 fs/f2fs/inode.c:731
 write\_inode fs/fs-writeback.c:1460 \[inline\]
 \_\_writeback\_single\_inode+0x4a0/0xab0 fs/fs-writeback.c:1677
 writeback\_single\_inode+0x221/0x8b0 fs/fs-writeback.c:1733
 sync\_inode\_metadata+0xb6/0x110 fs/fs-writeback.c:2789
 f2fs\_sync\_inode\_meta+0x16d/0x2a0 fs/f2fs/checkpoint.c:1159
 block\_operations fs/f2fs/checkpoint.c:1269 \[inline\]
 f2fs\_write\_checkpoint+0xca3/0x2100 fs/f2fs/checkpoint.c:1658
 kill\_f2fs\_super+0x231/0x390 fs/f2fs/super.c:4668
 deactivate\_locked\_super+0x98/0x100 fs/super.c:332
 deactivate\_super+0xaf/0xe0 fs/super.c:363
 cleanup\_mnt+0x45f/0x4e0 fs/namespace.c:1186
 \_\_cleanup\_mnt+0x19/0x20 fs/namespace.c:1193
 task\_work\_run+0x1c6/0x230 kernel/task\_work.c:203
 exit\_task\_work include/linux/task\_work.h:39 \[inline\]
 do\_exit+0x9fb/0x2410 kernel/exit.c:871
 do\_group\_exit+0x210/0x2d0 kernel/exit.c:1021
 \_\_do\_sys\_exit\_group kernel/exit.c:1032 \[inline\]
 \_\_se\_sys\_exit\_group kernel/exit.c:1030 \[inline\]
 \_\_x64\_sys\_exit\_group+0x3f/0x40 kernel/exit.c:1030
 x64\_sys\_call+0x7b4/0x9a0 arch/x86/include/generated/asm/syscalls\_64.h:232
 do\_syscall\_x64 arch/x86/entry/common.c:51 \[inline\]
 do\_syscall\_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry\_SYSCALL\_64\_after\_hwframe+0x68/0xd2
RIP: 0033:0x7f28b1b8e169
Code: Unable to access opcode bytes at 0x7f28b1b8e13f.
RSP: 002b:00007ffe174710a8 EFLAGS: 00000246 ORIG\_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f28b1c10879 RCX: 00007f28b1b8e169
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000002 R08: 00007ffe1746ee47 R09: 00007ffe17472360
R10: 0000000000000009 R11: 0000000000000246 R12: 00007ffe17472360
R13: 00007f28b1c10854 R14: 000000000000dae5 R15: 00007ffe17474520
 \</TASK\>

Allocated by task 569:
 kasan\_save\_stack mm/kasan/common.c:45 \[inline\]
 kasan\_set\_track+0x4b/0x70 mm/kasan/common.c:52
 kasan\_save\_alloc\_info+0x25/0x30 mm/kasan/generic.c:505
 \_\_kasan\_slab\_alloc+0x72/0x80 mm/kasan/common.c:328
 kasan\_slab\_alloc include/linux/kasan.h:201 \[inline\]
 slab\_post\_alloc\_hook+0x4f/0x2c0 mm/slab.h:737
 slab\_alloc\_node mm/slub.c:3398 \[inline\]
 slab\_alloc mm/slub.c:3406 \[inline\]
 \_\_kmem\_cache\_alloc\_lru mm/slub.c:3413 \[inline\]
 kmem\_cache\_alloc\_lru+0x104/0x220 mm/slub.c:3429
 alloc\_inode\_sb include/linux/fs.h:3245 \[inline\]
 f2fs\_alloc\_inode+0x2d/0x340 fs/f2fs/super.c:1419
 alloc\_inode fs/inode.c:261 \[inline\]
 iget\_locked+0x186/0x880 fs/inode.c:1373
 f2fs\_iget+0x55/0x4c60 fs/f2fs/inode.c:483
 f2fs\_lookup+0x366/0xab0 fs/f2fs/namei.c:487
 \_\_lookup\_slow+0x2a3/0x3d0 fs/namei.c:1690
 lookup\_slow+0x57/0x70 fs/namei.c:1707
 walk\_component+0x2e6/0x410 fs/namei
---truncated---

## Affected and fixed versions

- Linux: \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 15df59809c54fbd687cdf27efbd2103a937459be; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 9535e440fe5bc6c5ac7cfb407e53bf788b8bf8d4; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 5cd99d5aa3d39086bdb53eb5c52df16e98b101a0; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 4732ca17c17f5062426cfa982f43593e6b81963b; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 880ef748e78a1eb7df2d8e11a9ef21e98bcaabe5; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 97df495d754116c8c28ac6a4112f831727bde887; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 9bbfe83924946552c4c513099c0e8c83af76311a; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 42f9ea16aea8b49febaa87950a006a1792209f38; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< a509a55f8eecc8970b3980c6f06886bbff0e2f68 (cvelist)
- Linux: 4.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-2025-38577. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38577.md
Affected: Linux >= 0f18b462b2e5aff64b8638e8a47284b907351ef3, < 15df59809c54fbd687cdf27efbd2103a937459be; >= 0f18b462b2e5aff64b8638e8a47284b907351ef3, < 9535e440fe5bc6c5ac7cfb407e53bf788b8bf8d4; >= 0f18b462b2e5aff64b8638e8a47284b907351ef3, < 5cd99d5aa3d39086bdb53eb5c52df16e98b101a0; >= 0f18b462b2e5aff64b8638e…
Fixed in: Linux 15df59809c54fbd687cdf27efbd2103a937459be, Linux 9535e440fe5bc6c5ac7cfb407e53bf788b8bf8d4, Linux 5cd99d5aa3d39086bdb53eb5c52df16e98b101a0, Linux 4732ca17c17f5062426cfa982f43593e6b81963b, Linux 880ef748e78a1eb7df2d8e11a9ef21e98bcaabe5, Linux 97df495d754116c8c28ac6a4112f831727bde887, Linux 9bbfe…

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-2025-38577 being exploited?

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

### How serious is CVE-2025-38577?

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

### Which versions are affected by CVE-2025-38577?

Linux \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 15df59809c54fbd687cdf27efbd2103a937459be; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 9535e440fe5bc6c5ac7cfb407e53bf788b8bf8d4; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 5cd99d5aa3d39086bdb53eb5c52df16e98b101a0; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 4732ca17c17f5062426cfa982f43593e6b81963b; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 880ef748e78a1eb7df2d8e11a9ef21e98bcaabe5; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 97df495d754116c8c28ac6a4112f831727bde887; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 9bbfe83924946552c4c513099c0e8c83af76311a; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 42f9ea16aea8b49febaa87950a006a1792209f38; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< a509a55f8eecc8970b3980c6f06886bbff0e2f68; Linux 4.8.

### Is there a fix for CVE-2025-38577?

Yes. Fixed in Linux 15df59809c54fbd687cdf27efbd2103a937459be, Linux 9535e440fe5bc6c5ac7cfb407e53bf788b8bf8d4, Linux 5cd99d5aa3d39086bdb53eb5c52df16e98b101a0, Linux 4732ca17c17f5062426cfa982f43593e6b81963b, Linux 880ef748e78a1eb7df2d8e11a9ef21e98bcaabe5, Linux 97df495d754116c8c28ac6a4112f831727bde887, Linux 9bbfe83924946552c4c513099c0e8c83af76311a, Linux 42f9ea16aea8b49febaa87950a006a1792209f38. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38577?

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/15df59809c54fbd687cdf27efbd2103a937459be>
- patch: <https://git.kernel.org/stable/c/9535e440fe5bc6c5ac7cfb407e53bf788b8bf8d4>
- patch: <https://git.kernel.org/stable/c/5cd99d5aa3d39086bdb53eb5c52df16e98b101a0>
- patch: <https://git.kernel.org/stable/c/4732ca17c17f5062426cfa982f43593e6b81963b>
- patch: <https://git.kernel.org/stable/c/880ef748e78a1eb7df2d8e11a9ef21e98bcaabe5>
- patch: <https://git.kernel.org/stable/c/97df495d754116c8c28ac6a4112f831727bde887>
- patch: <https://git.kernel.org/stable/c/9bbfe83924946552c4c513099c0e8c83af76311a>
- patch: <https://git.kernel.org/stable/c/42f9ea16aea8b49febaa87950a006a1792209f38>
- patch: <https://git.kernel.org/stable/c/a509a55f8eecc8970b3980c6f06886bbff0e2f68>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## 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-2025-38577>

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