# CVE-2025-37779: lib/iov\_iter: fix to increase non slab folio refcount

> 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.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2025-05-01T13:07:17.106Z
- **Modified:** 2026-08-05T11:57:30.683Z

## Who should check

- Anyone running Linux \>= b9c0e49abfca06f1a109acea834bcfc934f33f76, \< d833f21162c4d536d729628f8cf1ee8d4110f2b7; \>= b9c0e49abfca06f1a109acea834bcfc934f33f76, \< 770c8d55c42868239c748a3ebc57c9e37755f842
- Anyone running Linux 6.14

## Description

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

lib/iov\_iter: fix to increase non slab folio refcount

When testing EROFS file-backed mount over v9fs on qemu, I encountered a
folio UAF issue.  The page sanity check reports the following call trace. 
The root cause is that pages in bvec are coalesced across a folio bounary.
The refcount of all non-slab folios should be increased to ensure
p9\_releas\_pages can put them correctly.

BUG: Bad page state in process md5sum  pfn:18300
page: refcount:0 mapcount:0 mapping:00000000d5ad8e4e index:0x60 pfn:0x18300
head: order:0 mapcount:0 entire\_mapcount:0 nr\_pages\_mapped:0 pincount:0
aops:z\_erofs\_aops ino:30b0f dentry name(?):"GoogleExtServicesCn.apk"
flags: 0x100000000000041(locked\|head\|node=0\|zone=1)
raw: 0100000000000041 dead000000000100 dead000000000122 ffff888014b13bd0
raw: 0000000000000060 0000000000000020 00000000ffffffff 0000000000000000
head: 0100000000000041 dead000000000100 dead000000000122 ffff888014b13bd0
head: 0000000000000060 0000000000000020 00000000ffffffff 0000000000000000
head: 0100000000000000 0000000000000000 ffffffffffffffff 0000000000000000
head: 0000000000000010 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: PAGE\_FLAGS\_CHECK\_AT\_FREE flag(s) set
Call Trace:
 dump\_stack\_lvl+0x53/0x70
 bad\_page+0xd4/0x220
 \_\_free\_pages\_ok+0x76d/0xf30
 \_\_folio\_put+0x230/0x320
 p9\_release\_pages+0x179/0x1f0
 p9\_virtio\_zc\_request+0xa2a/0x1230
 p9\_client\_zc\_rpc.constprop.0+0x247/0x700
 p9\_client\_read\_once+0x34d/0x810
 p9\_client\_read+0xf3/0x150
 v9fs\_issue\_read+0x111/0x360
 netfs\_unbuffered\_read\_iter\_locked+0x927/0x1390
 netfs\_unbuffered\_read\_iter+0xa2/0xe0
 vfs\_iocb\_iter\_read+0x2c7/0x460
 erofs\_fileio\_rq\_submit+0x46b/0x5b0
 z\_erofs\_runqueue+0x1203/0x21e0
 z\_erofs\_readahead+0x579/0x8b0
 read\_pages+0x19f/0xa70
 page\_cache\_ra\_order+0x4ad/0xb80
 filemap\_readahead.isra.0+0xe7/0x150
 filemap\_get\_pages+0x7aa/0x1890
 filemap\_read+0x320/0xc80
 vfs\_read+0x6c6/0xa30
 ksys\_read+0xf9/0x1c0
 do\_syscall\_64+0x9e/0x1a0
 entry\_SYSCALL\_64\_after\_hwframe+0x71/0x79

## Affected and fixed versions

- Linux: \>= b9c0e49abfca06f1a109acea834bcfc934f33f76, \< d833f21162c4d536d729628f8cf1ee8d4110f2b7; \>= b9c0e49abfca06f1a109acea834bcfc934f33f76, \< 770c8d55c42868239c748a3ebc57c9e37755f842 (cvelist)
- Linux: 6.14 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-37779.md
Affected: Linux >= b9c0e49abfca06f1a109acea834bcfc934f33f76, < d833f21162c4d536d729628f8cf1ee8d4110f2b7; >= b9c0e49abfca06f1a109acea834bcfc934f33f76, < 770c8d55c42868239c748a3ebc57c9e37755f842; Linux 6.14
Fixed in: Linux 770c8d55c42868239c748a3ebc57c9e37755f842

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

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

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

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

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

Linux \>= b9c0e49abfca06f1a109acea834bcfc934f33f76, \< d833f21162c4d536d729628f8cf1ee8d4110f2b7; \>= b9c0e49abfca06f1a109acea834bcfc934f33f76, \< 770c8d55c42868239c748a3ebc57c9e37755f842; Linux 6.14.

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

Yes. Fixed in Linux 770c8d55c42868239c748a3ebc57c9e37755f842. Upgrade Linux to 770c8d55c42868239c748a3ebc57c9e37755f842 or later.

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

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/d833f21162c4d536d729628f8cf1ee8d4110f2b7>
- patch: <https://git.kernel.org/stable/c/770c8d55c42868239c748a3ebc57c9e37755f842>

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

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