CVE-2025-37779
Severity CVSS v4.0:
Pending analysis
Type:
CWE-415
Double Free
Publication date:
01/05/2025
Last modified:
30/07/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
lib/iov_iter: fix to increase non slab folio refcount<br />
<br />
When testing EROFS file-backed mount over v9fs on qemu, I encountered a<br />
folio UAF issue. The page sanity check reports the following call trace. <br />
The root cause is that pages in bvec are coalesced across a folio bounary.<br />
The refcount of all non-slab folios should be increased to ensure<br />
p9_releas_pages can put them correctly.<br />
<br />
BUG: Bad page state in process md5sum pfn:18300<br />
page: refcount:0 mapcount:0 mapping:00000000d5ad8e4e index:0x60 pfn:0x18300<br />
head: order:0 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0<br />
aops:z_erofs_aops ino:30b0f dentry name(?):"GoogleExtServicesCn.apk"<br />
flags: 0x100000000000041(locked|head|node=0|zone=1)<br />
raw: 0100000000000041 dead000000000100 dead000000000122 ffff888014b13bd0<br />
raw: 0000000000000060 0000000000000020 00000000ffffffff 0000000000000000<br />
head: 0100000000000041 dead000000000100 dead000000000122 ffff888014b13bd0<br />
head: 0000000000000060 0000000000000020 00000000ffffffff 0000000000000000<br />
head: 0100000000000000 0000000000000000 ffffffffffffffff 0000000000000000<br />
head: 0000000000000010 0000000000000000 00000000ffffffff 0000000000000000<br />
page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set<br />
Call Trace:<br />
dump_stack_lvl+0x53/0x70<br />
bad_page+0xd4/0x220<br />
__free_pages_ok+0x76d/0xf30<br />
__folio_put+0x230/0x320<br />
p9_release_pages+0x179/0x1f0<br />
p9_virtio_zc_request+0xa2a/0x1230<br />
p9_client_zc_rpc.constprop.0+0x247/0x700<br />
p9_client_read_once+0x34d/0x810<br />
p9_client_read+0xf3/0x150<br />
v9fs_issue_read+0x111/0x360<br />
netfs_unbuffered_read_iter_locked+0x927/0x1390<br />
netfs_unbuffered_read_iter+0xa2/0xe0<br />
vfs_iocb_iter_read+0x2c7/0x460<br />
erofs_fileio_rq_submit+0x46b/0x5b0<br />
z_erofs_runqueue+0x1203/0x21e0<br />
z_erofs_readahead+0x579/0x8b0<br />
read_pages+0x19f/0xa70<br />
page_cache_ra_order+0x4ad/0xb80<br />
filemap_readahead.isra.0+0xe7/0x150<br />
filemap_get_pages+0x7aa/0x1890<br />
filemap_read+0x320/0xc80<br />
vfs_read+0x6c6/0xa30<br />
ksys_read+0xf9/0x1c0<br />
do_syscall_64+0x9e/0x1a0<br />
entry_SYSCALL_64_after_hwframe+0x71/0x79
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.14.1 (including) | 6.14.4 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.14:-:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page


