Skip to content
Heist/ feed
Unrated

io_uring/rsrc: fix folio size overflow in io_vec_fill_bvec()

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: io_uring/rsrc: fix folio size overflow in io_vec_fill_bvec() io_vec_fill_bvec() computes the folio size with a plain int 1: unsigned long folio_size = 1 << imu->folio_shift; imu->folio_shift is unsigned int and comes from folio_shift() of the folio backing the registered buffer, so it can be 32 or more on a 64 bit kernel. Shifting int 1 that far is undefined, and on x86 and arm64 the count is taken modulo 32, so a shift of 34 yields 4 rather than 16G. Every other folio_shift shift in this file already uses 1UL. The result is that the segment estimate and the fill loop disagree. io_estimate_bvec_size() sizes the bvec array with the real shift: max_segs += (iov[i].iov_len >> shift) + 2; so a 1M iovec on a 16G folio is charged 2 segments, while io_vec_fill_bvec() then walks the same iovec in folio_size chunks of 4 bytes and writes res_bvec[bvec_idx] a quarter of a million times, past the end of the array it was given. src_bvec is advanced once per iteration as well, so imu->bvec is read past its end at the same time. validate_fixed_range() only checks that the range is inside the registered buffer and does not bound the segment count. Reaching it needs a folio with a shift of at least 32, which means a gigantic hugetlb page: 16G on arm64 with 64K pages, where CONT_PMD_SHIFT is 34 and hugetlb_add_hstate(CONT_PMD_SHIFT - PAGE_SHIFT) registers that size, and likewise on powerpc. x86_64 tops out at 1G, so a shift of

Announced Source revision 1
Original source ↗

CVE-2026-80810

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-2026-80810

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": "9ef4cbbcb4ac3786a1a4164507511b76b2a572c5",
        "lessThan": "45c945107e007b1fb73e21cd220277652a45521a",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9ef4cbbcb4ac3786a1a4164507511b76b2a572c5",
        "lessThan": "6b308c37fbeba3aa8c634fb1ed53e2f63a5d5a5c",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9ef4cbbcb4ac3786a1a4164507511b76b2a572c5",
        "lessThan": "3267d7c8ba51642117f7bdd1ece02b2540668476",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "9ef4cbbcb4ac3786a1a4164507511b76b2a572c5",
        "lessThan": "3f3a6a16bbe8bde76532d9415438f8cdef439e5d",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "io_uring/rsrc.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.15"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.15",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.18.47",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.1.11",
        "versionType": "semver",
        "lessThanOrEqual": "7.1.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.1",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "io_uring/rsrc.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-80810

Source reference: /cveMetadata/cveId

Publisher severity

No explicit severity was provided.

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