Skip to content
Heist/ feed
Critical

iomap: adjust read range correctly for non-block-aligned positions

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: iomap: adjust read range correctly for non-block-aligned positions iomap_adjust_read_range() assumes that the position and length passed in are block-aligned. This is not always the case however, as shown in the syzbot generated case for erofs. This causes too many bytes to be skipped for uptodate blocks, which results in returning the incorrect position and length to read in. If all the blocks are uptodate, this underflows length and returns a position beyond the folio. Fix the calculation to also take into account the block offset when calculating how many bytes can be skipped for uptodate blocks.

Announced Source revision 1
Original source ↗

CVE-2025-68794

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-68794

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": "9dc55f1389f9569acf9659e58dd836a9c70df217",
        "lessThan": "ce20f49ac9194cf81a77f01d1c316d7c17ae753c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9dc55f1389f9569acf9659e58dd836a9c70df217",
        "lessThan": "275b37a1e5c2c8abd313e8075f6aec9a349f291b",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9dc55f1389f9569acf9659e58dd836a9c70df217",
        "lessThan": "b8c9f25fd84328c5fcc4f70c6d1e8f1d4787eaac",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9dc55f1389f9569acf9659e58dd836a9c70df217",
        "lessThan": "82b60ffbb532d919959702768dca04c3c0500ae5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9dc55f1389f9569acf9659e58dd836a9c70df217",
        "lessThan": "12053695c8ef5410e8cc6c9ed4c0db9cd9c82b3e",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9dc55f1389f9569acf9659e58dd836a9c70df217",
        "lessThan": "142194fb21afe964d2d194cab1fc357cbf87e899",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9dc55f1389f9569acf9659e58dd836a9c70df217",
        "lessThan": "7aa6bc3e8766990824f66ca76c19596ce10daf3e",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "fs/iomap/buffered-io.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "4.19"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "4.19",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "5.10.267",
        "versionType": "semver",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.15.218",
        "versionType": "semver",
        "lessThanOrEqual": "5.15.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.185",
        "versionType": "semver",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.120",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.64",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.3",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "6.19",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "fs/iomap/buffered-io.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2025-68794

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

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