# CVE-2025-39868: erofs: fix runtime warning on truncate\_folio\_batch\_exceptionals()

> 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.22% (percentile 8, 2026-11-26)
- **Published:** 2025-09-23T06:00:43.308Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= bde708f1a65d025c45575bfe1e7bf7bdf7e71e87, \< 91c34cd6ca1bc67ccf2d104834956af56b5893de; \>= bde708f1a65d025c45575bfe1e7bf7bdf7e71e87, \< 181993bb0d626cf88cc803f4356ce5c5abe86278
- Anyone running Linux 6.15

## Description

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

erofs: fix runtime warning on truncate\_folio\_batch\_exceptionals()

Commit 0e2f80afcfa6("fs/dax: ensure all pages are idle prior to
filesystem unmount") introduced the WARN\_ON\_ONCE to capture whether
the filesystem has removed all DAX entries or not and applied the
fix to xfs and ext4.

Apply the missed fix on erofs to fix the runtime warning:

\[  5.266254\] ------------\[ cut here \]------------
\[  5.266274\] WARNING: CPU: 6 PID: 3109 at mm/truncate.c:89 truncate\_folio\_batch\_exceptionals+0xff/0x260
\[  5.266294\] Modules linked in:
\[  5.266999\] CPU: 6 UID: 0 PID: 3109 Comm: umount Tainted: G S                  6.16.0+ \#6 PREEMPT(voluntary)
\[  5.267012\] Tainted: \[S\]=CPU\_OUT\_OF\_SPEC
\[  5.267017\] Hardware name: Dell Inc. OptiPlex 5000/05WXFV, BIOS 1.5.1 08/24/2022
\[  5.267024\] RIP: 0010:truncate\_folio\_batch\_exceptionals+0xff/0x260
\[  5.267076\] Code: 00 00 41 39 df 7f 11 eb 78 83 c3 01 49 83 c4 08 41 39 df 74 6c 48 63 f3 48 83 fe 1f 0f 83 3c 01 00 00 43 f6 44 26 08 01 74 df \<0f\> 0b 4a 8b 34 22 4c 89 ef 48 89 55 90 e8 ff 54 1f 00 48 8b 55 90
\[  5.267083\] RSP: 0018:ffffc900013f36c8 EFLAGS: 00010202
\[  5.267095\] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
\[  5.267101\] RDX: ffffc900013f3790 RSI: 0000000000000000 RDI: ffff8882a1407898
\[  5.267108\] RBP: ffffc900013f3740 R08: 0000000000000000 R09: 0000000000000000
\[  5.267113\] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
\[  5.267119\] R13: ffff8882a1407ab8 R14: ffffc900013f3888 R15: 0000000000000001
\[  5.267125\] FS:  00007aaa8b437800(0000) GS:ffff88850025b000(0000) knlGS:0000000000000000
\[  5.267132\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  5.267138\] CR2: 00007aaa8b3aac10 CR3: 000000024f764000 CR4: 0000000000f52ef0
\[  5.267144\] PKRU: 55555554
\[  5.267150\] Call Trace:
\[  5.267154\]  \<TASK\>
\[  5.267181\]  truncate\_inode\_pages\_range+0x118/0x5e0
\[  5.267193\]  ? save\_trace+0x54/0x390
\[  5.267296\]  truncate\_inode\_pages\_final+0x43/0x60
\[  5.267309\]  evict+0x2a4/0x2c0
\[  5.267339\]  dispose\_list+0x39/0x80
\[  5.267352\]  evict\_inodes+0x150/0x1b0
\[  5.267376\]  generic\_shutdown\_super+0x41/0x180
\[  5.267390\]  kill\_block\_super+0x1b/0x50
\[  5.267402\]  erofs\_kill\_sb+0x81/0x90 \[erofs\]
\[  5.267436\]  deactivate\_locked\_super+0x32/0xb0
\[  5.267450\]  deactivate\_super+0x46/0x60
\[  5.267460\]  cleanup\_mnt+0xc3/0x170
\[  5.267475\]  \_\_cleanup\_mnt+0x12/0x20
\[  5.267485\]  task\_work\_run+0x5d/0xb0
\[  5.267499\]  exit\_to\_user\_mode\_loop+0x144/0x170
\[  5.267512\]  do\_syscall\_64+0x2b9/0x7c0
\[  5.267523\]  ? \_\_lock\_acquire+0x665/0x2ce0
\[  5.267535\]  ? \_\_lock\_acquire+0x665/0x2ce0
\[  5.267560\]  ? lock\_acquire+0xcd/0x300
\[  5.267573\]  ? find\_held\_lock+0x31/0x90
\[  5.267582\]  ? mntput\_no\_expire+0x97/0x4e0
\[  5.267606\]  ? mntput\_no\_expire+0xa1/0x4e0
\[  5.267625\]  ? mntput+0x24/0x50
\[  5.267634\]  ? path\_put+0x1e/0x30
\[  5.267647\]  ? do\_faccessat+0x120/0x2f0
\[  5.267677\]  ? do\_syscall\_64+0x1a2/0x7c0
\[  5.267686\]  ? from\_kgid\_munged+0x17/0x30
\[  5.267703\]  ? from\_kuid\_munged+0x13/0x30
\[  5.267711\]  ? \_\_do\_sys\_getuid+0x3d/0x50
\[  5.267724\]  ? do\_syscall\_64+0x1a2/0x7c0
\[  5.267732\]  ? irqentry\_exit+0x77/0xb0
\[  5.267743\]  ? clear\_bhb\_loop+0x30/0x80
\[  5.267752\]  ? clear\_bhb\_loop+0x30/0x80
\[  5.267765\]  entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
\[  5.267772\] RIP: 0033:0x7aaa8b32a9fb
\[  5.267781\] Code: c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 31 f6 e9 05 00 00 00 0f 1f 44 00 00 f3 0f 1e fa b8 a6 00 00 00 0f 05 \<48\> 3d 00 f0 ff ff 77 05 c3 0f 1f 40 00 48 8b 15 e9 83 0d 00 f7 d8
\[  5.267787\] RSP: 002b:00007ffd7c4c9468 EFLAGS: 00000246 ORIG\_RAX: 00000000000000a6
\[  5.267796\] RAX: 0000000000000000 RBX: 00005a61592a8b00 RCX: 00007aaa8b32a9fb
\[  5.267802\] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00005a61592b2080
\[  5.267806\] RBP: 00007ffd7c4c9540 R08: 00007aaa8b403b20 R09: 0000000000000020
\[  5.267812\] R10: 0000000000000001 R11: 0000000000000246 R12: 00005a61592a8c00
\[  5.267817\] R13: 00000000
---truncated---

## Affected and fixed versions

- Linux: \>= bde708f1a65d025c45575bfe1e7bf7bdf7e71e87, \< 91c34cd6ca1bc67ccf2d104834956af56b5893de; \>= bde708f1a65d025c45575bfe1e7bf7bdf7e71e87, \< 181993bb0d626cf88cc803f4356ce5c5abe86278 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 181993bb0d626cf88cc803f4356ce5c5abe86278 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-39868. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39868.md
Affected: Linux >= bde708f1a65d025c45575bfe1e7bf7bdf7e71e87, < 91c34cd6ca1bc67ccf2d104834956af56b5893de; >= bde708f1a65d025c45575bfe1e7bf7bdf7e71e87, < 181993bb0d626cf88cc803f4356ce5c5abe86278; Linux 6.15
Fixed in: Linux 91c34cd6ca1bc67ccf2d104834956af56b5893de, Linux 181993bb0d626cf88cc803f4356ce5c5abe86278

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

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

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

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

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

Linux \>= bde708f1a65d025c45575bfe1e7bf7bdf7e71e87, \< 91c34cd6ca1bc67ccf2d104834956af56b5893de; \>= bde708f1a65d025c45575bfe1e7bf7bdf7e71e87, \< 181993bb0d626cf88cc803f4356ce5c5abe86278; Linux 6.15.

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

Yes. Fixed in Linux 91c34cd6ca1bc67ccf2d104834956af56b5893de, Linux 181993bb0d626cf88cc803f4356ce5c5abe86278. Upgrade Linux to 181993bb0d626cf88cc803f4356ce5c5abe86278 or later.

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

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/91c34cd6ca1bc67ccf2d104834956af56b5893de>
- patch: <https://git.kernel.org/stable/c/181993bb0d626cf88cc803f4356ce5c5abe86278>

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

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