Skip to content
Heist/ feed
Back to feed
HighFix available

block: don't revert iter for -EIOCBQUEUED

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.129, 6.12.14, 6.13.3, 6.6.78
CVEs
CVE-2025-21832
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 20:02 UTC · Revision 1

Source evidence

block: don't revert iter for -EIOCBQUEUED

core-osv · Original source

Published 6 Mar 2025, 16:22 UTC

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.

osv:CVE-2025-21832

Kernel

Fixed versions: 6.1.129, 6.6.78, 6.12.14, 6.13.3

Complete source record
{
  "id": "53ec5188d5be2139a91d52ee23e2d03c575f87d401264f1cd14138d83396a8e3",
  "url": "https://osv.dev/vulnerability/CVE-2025-21832",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "block: don't revert iter for -EIOCBQUEUED",
    "summary": "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.",
    "evidence": "osv:CVE-2025-21832",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.129",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.78",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.14",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.13.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-21832",
      "aliases": [
        "CVE-2025-21832"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3e1f941dd9f33776b3df4e30f741fe445ff773f3"
                },
                {
                  "fixed": "6c26619effb1b4cb7d20b4e666ab8f71f6a53ccb"
                },
                {
                  "fixed": "84671b0630ccb46ae9f1f99a45c7d63ffcd6a474"
                },
                {
                  "fixed": "68f16d3034a06661245ecd22f0d586a8b4e7c473"
                },
                {
                  "fixed": "a58f136bad29f9ae721a29d98c042fddbee22f77"
                },
                {
                  "fixed": "b13ee668e8280ca5b07f8ce2846b9957a8a10853"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21832.json"
          }
        },
        {
          "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21832.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.407609970Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-784472.html",
        "https://git.kernel.org/stable/c/68f16d3034a06661245ecd22f0d586a8b4e7c473",
        "https://git.kernel.org/stable/c/6c26619effb1b4cb7d20b4e666ab8f71f6a53ccb",
        "https://git.kernel.org/stable/c/84671b0630ccb46ae9f1f99a45c7d63ffcd6a474",
        "https://git.kernel.org/stable/c/a58f136bad29f9ae721a29d98c042fddbee22f77",
        "https://git.kernel.org/stable/c/b13ee668e8280ca5b07f8ce2846b9957a8a10853",
        "https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21832.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-21832",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21832.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-21832",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506459,
  "published_at": "2025-03-06T16:22:34.125+00:00"
}