Skip to content
Heist/ feed
High

block: don't revert iter for -EIOCBQUEUED

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2025-21832

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2025-21832

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "3e1f941dd9f33776b3df4e30f741fe445ff773f3",
        "lessThan": "6c26619effb1b4cb7d20b4e666ab8f71f6a53ccb",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3e1f941dd9f33776b3df4e30f741fe445ff773f3",
        "lessThan": "84671b0630ccb46ae9f1f99a45c7d63ffcd6a474",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3e1f941dd9f33776b3df4e30f741fe445ff773f3",
        "lessThan": "68f16d3034a06661245ecd22f0d586a8b4e7c473",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3e1f941dd9f33776b3df4e30f741fe445ff773f3",
        "lessThan": "a58f136bad29f9ae721a29d98c042fddbee22f77",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "3e1f941dd9f33776b3df4e30f741fe445ff773f3",
        "lessThan": "b13ee668e8280ca5b07f8ce2846b9957a8a10853",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "block/fops.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.17"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.17",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.1.129",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.78",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.14",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.13.3",
        "versionType": "semver",
        "lessThanOrEqual": "6.13.*"
      },
      {
        "status": "unaffected",
        "version": "6.14",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "block/fops.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-21832

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#30436 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement