# CVE-2025-38578: f2fs: fix to avoid UAF in f2fs\_sync\_inode\_meta()

> 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-28)
- **CWE:** CWE-416
- **Published:** 2025-08-19T17:03:01.483Z
- **Modified:** 2026-08-05T12:03:05.562Z

## Who should check

- Anyone running Linux \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 37e78cad7e9e025e63bb35bc200f44637b009bb1; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 4dcd830c420f2190ae32f03626039fde7b57b2ad; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 1edf68272b8cba2b2817ef1488ecb9f0f84cb6a0; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 917ae5e280bc263f56c83fba0d0f0be2c4828083; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 3d37cadaac1a8e108e576297aab9125b24ea2dfe; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< dea243f58a8391e76f42ad5eb59ff210519ee772; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< a4b0cc9e0bba7525a29f37714e88df12a47997a2; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 6cac47af39b2b8edbb41d47c3bd9c332f83e9932; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 7c30d79930132466f5be7d0b57add14d1a016bda
- Anyone running Linux 4.8

## Description

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

f2fs: fix to avoid UAF in f2fs\_sync\_inode\_meta()

syzbot reported an UAF issue as below: \[1\] \[2\]

\[1\] https://syzkaller.appspot.com/text?tag=CrashReport&x=16594c60580000

==================================================================
BUG: KASAN: use-after-free in \_\_list\_del\_entry\_valid+0xa6/0x130 lib/list\_debug.c:62
Read of size 8 at addr ffff888100567dc8 by task kworker/u4:0/8

CPU: 1 PID: 8 Comm: kworker/u4:0 Tainted: G        W          6.1.129-syzkaller-00017-g642656a36791 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: writeback wb\_workfn (flush-7:0)
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
 dump\_stack\_lvl+0x151/0x1b7 lib/dump\_stack.c:106
 print\_address\_description mm/kasan/report.c:316 \[inline\]
 print\_report+0x158/0x4e0 mm/kasan/report.c:427
 kasan\_report+0x13c/0x170 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+0x100/0x2e0 fs/f2fs/super.c:1553
 f2fs\_update\_inode+0x72/0x1c40 fs/f2fs/inode.c:588
 f2fs\_update\_inode\_page+0x135/0x170 fs/f2fs/inode.c:706
 f2fs\_write\_inode+0x416/0x790 fs/f2fs/inode.c:734
 write\_inode fs/fs-writeback.c:1460 \[inline\]
 \_\_writeback\_single\_inode+0x4cf/0xb80 fs/fs-writeback.c:1677
 writeback\_sb\_inodes+0xb32/0x1910 fs/fs-writeback.c:1903
 \_\_writeback\_inodes\_wb+0x118/0x3f0 fs/fs-writeback.c:1974
 wb\_writeback+0x3da/0xa00 fs/fs-writeback.c:2081
 wb\_check\_background\_flush fs/fs-writeback.c:2151 \[inline\]
 wb\_do\_writeback fs/fs-writeback.c:2239 \[inline\]
 wb\_workfn+0xbba/0x1030 fs/fs-writeback.c:2266
 process\_one\_work+0x73d/0xcb0 kernel/workqueue.c:2299
 worker\_thread+0xa60/0x1260 kernel/workqueue.c:2446
 kthread+0x26d/0x300 kernel/kthread.c:386
 ret\_from\_fork+0x1f/0x30 arch/x86/entry/entry\_64.S:295
 \</TASK\>

Allocated by task 298:
 kasan\_save\_stack mm/kasan/common.c:45 \[inline\]
 kasan\_set\_track+0x4b/0x70 mm/kasan/common.c:52
 kasan\_save\_alloc\_info+0x1f/0x30 mm/kasan/generic.c:505
 \_\_kasan\_slab\_alloc+0x6c/0x80 mm/kasan/common.c:333
 kasan\_slab\_alloc include/linux/kasan.h:202 \[inline\]
 slab\_post\_alloc\_hook+0x53/0x2c0 mm/slab.h:768
 slab\_alloc\_node mm/slub.c:3421 \[inline\]
 slab\_alloc mm/slub.c:3431 \[inline\]
 \_\_kmem\_cache\_alloc\_lru mm/slub.c:3438 \[inline\]
 kmem\_cache\_alloc\_lru+0x102/0x270 mm/slub.c:3454
 alloc\_inode\_sb include/linux/fs.h:3255 \[inline\]
 f2fs\_alloc\_inode+0x2d/0x350 fs/f2fs/super.c:1437
 alloc\_inode fs/inode.c:261 \[inline\]
 iget\_locked+0x18c/0x7e0 fs/inode.c:1373
 f2fs\_iget+0x55/0x4ca0 fs/f2fs/inode.c:486
 f2fs\_lookup+0x3c1/0xb50 fs/f2fs/namei.c:484
 \_\_lookup\_slow+0x2b9/0x3e0 fs/namei.c:1689
 lookup\_slow+0x5a/0x80 fs/namei.c:1706
 walk\_component+0x2e7/0x410 fs/namei.c:1997
 lookup\_last fs/namei.c:2454 \[inline\]
 path\_lookupat+0x16d/0x450 fs/namei.c:2478
 filename\_lookup+0x251/0x600 fs/namei.c:2507
 vfs\_statx+0x107/0x4b0 fs/stat.c:229
 vfs\_fstatat fs/stat.c:267 \[inline\]
 vfs\_lstat include/linux/fs.h:3434 \[inline\]
 \_\_do\_sys\_newlstat fs/stat.c:423 \[inline\]
 \_\_se\_sys\_newlstat+0xda/0x7c0 fs/stat.c:417
 \_\_x64\_sys\_newlstat+0x5b/0x70 fs/stat.c:417
 x64\_sys\_call+0x52/0x9a0 arch/x86/include/generated/asm/syscalls\_64.h:7
 do\_syscall\_x64 arch/x86/entry/common.c:51 \[inline\]
 do\_syscall\_64+0x3b/0x80 arch/x86/entry/common.c:81
 entry\_SYSCALL\_64\_after\_hwframe+0x68/0xd2

Freed by task 0:
 kasan\_save\_stack mm/kasan/common.c:45 \[inline\]
 kasan\_set\_track+0x4b/0x70 mm/kasan/common.c:52
 kasan\_save\_free\_info+0x2b/0x40 mm/kasan/generic.c:516
 \_\_\_\_kasan\_slab\_free+0x131/0x180 mm/kasan/common.c:241
 \_\_kasan\_slab\_free+0x11/0x20 mm/kasan/common.c:249
 kasan\_slab\_free include/linux/kasan.h:178 \[inline\]
 slab\_free\_hook mm/slub.c:1745 \[inline\]
 slab\_free\_freelist\_hook mm/slub.c:1771 \[inline\]
 slab\_free mm/slub.c:3686 \[inline\]
 kmem\_cache\_free+0x
---truncated---

## Affected and fixed versions

- Linux: \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 37e78cad7e9e025e63bb35bc200f44637b009bb1; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 4dcd830c420f2190ae32f03626039fde7b57b2ad; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 1edf68272b8cba2b2817ef1488ecb9f0f84cb6a0; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 917ae5e280bc263f56c83fba0d0f0be2c4828083; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 3d37cadaac1a8e108e576297aab9125b24ea2dfe; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< dea243f58a8391e76f42ad5eb59ff210519ee772; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< a4b0cc9e0bba7525a29f37714e88df12a47997a2; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 6cac47af39b2b8edbb41d47c3bd9c332f83e9932; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 7c30d79930132466f5be7d0b57add14d1a016bda (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- Upgrade Linux to 7c30d79930132466f5be7d0b57add14d1a016bda or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38578.md
Affected: Linux >= 0f18b462b2e5aff64b8638e8a47284b907351ef3, < 37e78cad7e9e025e63bb35bc200f44637b009bb1; >= 0f18b462b2e5aff64b8638e8a47284b907351ef3, < 4dcd830c420f2190ae32f03626039fde7b57b2ad; >= 0f18b462b2e5aff64b8638e8a47284b907351ef3, < 1edf68272b8cba2b2817ef1488ecb9f0f84cb6a0; >= 0f18b462b2e5aff64b8638e…
Fixed in: Linux 37e78cad7e9e025e63bb35bc200f44637b009bb1, Linux 4dcd830c420f2190ae32f03626039fde7b57b2ad, Linux 1edf68272b8cba2b2817ef1488ecb9f0f84cb6a0, Linux 917ae5e280bc263f56c83fba0d0f0be2c4828083, Linux 3d37cadaac1a8e108e576297aab9125b24ea2dfe, Linux 6cac47af39b2b8edbb41d47c3bd9c332f83e9932, Linux 7c30d…

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

There is no confirmed exploitation: CVE-2025-38578 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-28).

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

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

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

Linux \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 37e78cad7e9e025e63bb35bc200f44637b009bb1; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 4dcd830c420f2190ae32f03626039fde7b57b2ad; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 1edf68272b8cba2b2817ef1488ecb9f0f84cb6a0; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 917ae5e280bc263f56c83fba0d0f0be2c4828083; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 3d37cadaac1a8e108e576297aab9125b24ea2dfe; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< dea243f58a8391e76f42ad5eb59ff210519ee772; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< a4b0cc9e0bba7525a29f37714e88df12a47997a2; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 6cac47af39b2b8edbb41d47c3bd9c332f83e9932; \>= 0f18b462b2e5aff64b8638e8a47284b907351ef3, \< 7c30d79930132466f5be7d0b57add14d1a016bda; Linux 4.8.

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

Yes. Fixed in Linux 37e78cad7e9e025e63bb35bc200f44637b009bb1, Linux 4dcd830c420f2190ae32f03626039fde7b57b2ad, Linux 1edf68272b8cba2b2817ef1488ecb9f0f84cb6a0, Linux 917ae5e280bc263f56c83fba0d0f0be2c4828083, Linux 3d37cadaac1a8e108e576297aab9125b24ea2dfe, Linux 6cac47af39b2b8edbb41d47c3bd9c332f83e9932, Linux 7c30d79930132466f5be7d0b57add14d1a016bda. Upgrade Linux to 7c30d79930132466f5be7d0b57add14d1a016bda or later.

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

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/37e78cad7e9e025e63bb35bc200f44637b009bb1>
- patch: <https://git.kernel.org/stable/c/4dcd830c420f2190ae32f03626039fde7b57b2ad>
- patch: <https://git.kernel.org/stable/c/1edf68272b8cba2b2817ef1488ecb9f0f84cb6a0>
- patch: <https://git.kernel.org/stable/c/917ae5e280bc263f56c83fba0d0f0be2c4828083>
- patch: <https://git.kernel.org/stable/c/3d37cadaac1a8e108e576297aab9125b24ea2dfe>
- patch: <https://git.kernel.org/stable/c/dea243f58a8391e76f42ad5eb59ff210519ee772>
- patch: <https://git.kernel.org/stable/c/a4b0cc9e0bba7525a29f37714e88df12a47997a2>
- patch: <https://git.kernel.org/stable/c/6cac47af39b2b8edbb41d47c3bd9c332f83e9932>
- patch: <https://git.kernel.org/stable/c/7c30d79930132466f5be7d0b57add14d1a016bda>
- 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-38578>

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