Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-21988

published critical CVSS 3.1 · 9.8

fs/netfs/read_collect: add to next->prev_donated

Published
02 Apr 2025, 12:53:12 UTC
Updated
05 Aug 2026, 11:55:52 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxee4cdf7ba857a894ad1650d6ab77669cbbfa329e to < 62b9ad7e52d4777f7e775ee1f0ad2452f6041024 · ee4cdf7ba857a894ad1650d6ab77669cbbfa329e to < e25cec3b76aba47a49138d2162fc809c6cd49c9e · ee4cdf7ba857a894ad1650d6ab77669cbbfa329e to < e2d46f2ec332533816417b60933954173f602121 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.12 (affected) · 0 to < 6.12 (unaffected · semver) · 6.12.20 through 6.12.* (unaffected · semver) · 6.13.8 through 6.13.* (unaffected · semver) · 6.14 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: fs/netfs/read_collect: add to next->prev_donated If multiple subrequests donate data to the same "next" request (depending on the subrequest completion order), each of them would overwrite the `prev_donated` field, causing data corruption and a BUG() crash ("Can't donate prior to front").

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - The vulnerable donation accounting in fs/netfs is driven entirely by data returned from a remote peer — subrequest completion order, short-read lengths and non-folio-aligned boundaries are chosen by the SMB/9p/Ceph/AFS server, and `netfs_read_subreq_terminated()` is invoked directly from those filesystems' network receive paths. A malicious or compromised file server, or an on-path attacker against an unsigned/unencrypted cifs, 9p or NFS mount, reaches the bug over the network. AC:L - The remote server controls both sides of the race: it decides when each READ response is sent and how much data it carries, so it can deterministically make two subrequests donate to the same successor and clobber `prev_donated`. The bug was reported from ordinary production use rather than a targeted fuzz, and the affected filesystems are enabled in all mainstream kernel configs. PR:N - The attacker is the remote server (or an on-path attacker) and needs no credentials or account on the victim host — only that the victim have a netfs-backed mount it reads from. No local privilege on the target is involved. UI:N - Ordinary background readahead on an already-mounted share (fstab/automount, container volume, WSL/Kata 9p, backup or indexer scans) is enough to drive the read-collection path; no specific victim action is required. S:U - The corruption and crash are confined to the kernel's own page cache and netfs request state; no VM, IOMMU or sandbox boundary is crossed. C:H - Lost donations make `netfs_unlock_read_folio()` mark folios uptodate for ranges no subrequest ever filled and inflate `rreq->transferred`, so read() returns uninitialized page-cache pages — arbitrary previously-freed kernel memory — to userspace, and the collector can also walk off the folio queue into invalid `folioq` pointers. I:H - The commit states the bug causes data corruption; because `NETFS_READ_FOR_WRITE` is one of the affected origins, a folio wrongly marked uptodate with unfilled content is subsequently written back, persisting corrupted data to the file on the server, and the broken start/len/transferred bookkeeping corrupts page-cache state generally. A:H - The mis-accounting hits an explicit `BUG()` ("Can't donate prior to front"/"fpos > start") in the filesystem completion context, killing the worker or softirq while rolling-buffer folios remain locked — a kernel panic, or at minimum an unrecoverable hang of every task waiting on those folios and of the mount.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux ee4cdf7ba857a894ad1650d6ab77669cbbfa329e to < 62b9ad7e52d4777f7e775ee1f0ad2452f6041024 (affected · git)ee4cdf7ba857a894ad1650d6ab77669cbbfa329e to < e25cec3b76aba47a49138d2162fc809c6cd49c9e (affected · git)ee4cdf7ba857a894ad1650d6ab77669cbbfa329e to < e2d46f2ec332533816417b60933954173f602121 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.12 (affected)0 to < 6.12 (unaffected · semver)6.12.20 through 6.12.* (unaffected · semver)6.13.8 through 6.13.* (unaffected · semver)6.14 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

fs/netfs/read_collect: add to next->prev_donated

Provenance

Schema
5.2
Searchable
yes
Content hash
bee219f42e9c64355976d443e74d46049473e1c6660b88d754dcabaea7791187
Ingested
23 Sep 2026, 08:40:04 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected