CVE-2025-21832

Source
https://cve.org/CVERecord?id=CVE-2025-21832
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21832.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21832
Downstream
Related
Published
2025-03-06T16:22:34.125Z
Modified
2026-05-13T03:52:27.032033140Z
Summary
block: don't revert iter for -EIOCBQUEUED
Details

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

block: don't revert iter for -EIOCBQUEUED

blkdevreaditer() has a few odd checks, like gating the position and count adjustment on whether or not the result is bigger-than-or-equal to zero (where bigger than makes more sense), and not checking the return value of blkdevdirectIO() before doing an ioviterrevert(). The latter can lead to attempting to revert with a negative value, which when passed to ioviterrevert() as an unsigned value will lead to throwing a WARNON() because unroll is bigger than MAXRW_COUNT.

Be sane and don't revert for -EIOCBQUEUED, like what is done in other spots.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21832.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3e1f941dd9f33776b3df4e30f741fe445ff773f3
Fixed
6c26619effb1b4cb7d20b4e666ab8f71f6a53ccb
Fixed
84671b0630ccb46ae9f1f99a45c7d63ffcd6a474
Fixed
68f16d3034a06661245ecd22f0d586a8b4e7c473
Fixed
a58f136bad29f9ae721a29d98c042fddbee22f77
Fixed
b13ee668e8280ca5b07f8ce2846b9957a8a10853

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21832.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
6.1.129
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.78
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.14
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21832.json"