{"id":"CVE-2025-21832","summary":"block: don't revert iter for -EIOCBQUEUED","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: don't revert iter for -EIOCBQUEUED\n\nblkdev_read_iter() has a few odd checks, like gating the position and\ncount adjustment on whether or not the result is bigger-than-or-equal to\nzero (where bigger than makes more sense), and not checking the return\nvalue of blkdev_direct_IO() before doing an iov_iter_revert(). The\nlatter can lead to attempting to revert with a negative value, which\nwhen passed to iov_iter_revert() as an unsigned value will lead to\nthrowing a WARN_ON() because unroll is bigger than MAX_RW_COUNT.\n\nBe sane and don't revert for -EIOCBQUEUED, like what is done in other\nspots.","modified":"2026-03-20T12:41:11.861861Z","published":"2025-03-06T16:22:34.125Z","related":["SUSE-SU-2025:01919-1","SUSE-SU-2025:01951-1","SUSE-SU-2025:01967-1","SUSE-SU-2025:1177-1","SUSE-SU-2025:1178-1","SUSE-SU-2025:1180-1","SUSE-SU-2025:20190-1","SUSE-SU-2025:20192-1","SUSE-SU-2025:20260-1","SUSE-SU-2025:20270-1","USN-7521-2"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21832.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/68f16d3034a06661245ecd22f0d586a8b4e7c473"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6c26619effb1b4cb7d20b4e666ab8f71f6a53ccb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/84671b0630ccb46ae9f1f99a45c7d63ffcd6a474"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a58f136bad29f9ae721a29d98c042fddbee22f77"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b13ee668e8280ca5b07f8ce2846b9957a8a10853"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21832.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21832"},{"type":"PACKAGE","url":"https://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"}}],"schema_version":"1.7.5"}