7.8high
block: don't revert iter for -EIOCBQUEUED
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.19% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: block: don't revert iter for -EIOCBQUEUED blkdev_read_iter() 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 blkdev_direct_IO() before doing an iov_iter_revert(). The latter can lead to attempting to revert with a negative value, which when passed to iov_iter_revert() as an unsigned value will lead to throwing a WARN_ON() because unroll is bigger than MAX_RW_COUNT. Be sane and don't revert for -EIOCBQUEUED, like what is done in other spots.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 3e1f941dd9f33776b3df4e30f741fe445ff773f3 before 6c26619effb1b4cb7d20b4e666ab8f71f6a53ccb, from 3e1f941dd9f33776b3df4e30f741fe445ff773f3 before 84671b0630ccb46ae9f1f99a45c7d63ffcd6a474, from 3e1f941dd9f33776b3df4e30f741fe445ff773f3 before 68f16d3034a06661245ecd22f0d586a8b4e7c473, from 3e1f941dd9f33776b3df4e30f741fe445ff773f3 before a58f136bad29f9ae721a29d98c042fddbee22f77, from 3e1f941dd9f33776b3df4e30f741fe445ff773f3 before b13ee668e8280ca5b07f8ce2846b9957a8a10853, 5.17 Not affected: before 5.17, from 6.1.129 up to 6.1.*, from 6.6.78 up to 6.6.*, from 6.12.14 up to 6.12.*, from 6.13.3 up to 6.13.*, from 6.14 up to * | CVE List |
| linux linux_kernel | from 5.17.1 before 6.1.129, from 6.2 before 6.6.78, from 6.7 before 6.12.14, from 6.13 before 6.13.3, 5.17 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: block: don't revert iter for -EIOCBQUEUED blkdev_read_iter() 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 blkdev_direct_IO() before doing an iov_iter_revert(). The latter can lead to attempting to revert with a negative value, which when passed to iov_iter_revert() as an unsigned value will lead to throwing a WARN_ON() because unroll is bigger than MAX_RW_COUNT. Be sane and don't revert for -EIOCBQUEUED, like what is done in other spots.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bloque: no revertir iter para -EIOCBQUEUED blkdev_read_iter() tiene algunas comprobaciones extrañas, como bloquear el ajuste de posición y conteo en función de si el resultado es o no mayor o igual a cero (donde mayor que tiene más sentido), y no verificar el valor de retorno de blkdev_direct_IO() antes de hacer un iov_iter_revert(). Esto último puede llevar a intentar revertir con un valor negativo, que cuando se pasa a iov_iter_revert() como un valor sin signo conducirá a lanzar un WARN_ON() porque unroll es mayor que MAX_RW_COUNT. Sea sensato y no revierta para -EIOCBQUEUED, como lo que se hace en otros lugares.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-21832 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2025-21832 changed 2026-10-15 | Public domain |