In the Linux kernel, the following vulnerability has been resolved: vdpa_sim_blk: reject out-of...

zetlyn/cve-ghsa vulnerability ghsa GHSA-hprw-93rc-4v5g cve CVE-2026-97991 known 2026-09-25

https://github.com/advisories/GHSA-hprw-93rc-4v5g

Properties

cvss7.8
receipt
Source
GitHub advisories
Its words
7.8
Read by
field:cvss.score
Said since
2026-09-28 11:44 UTC
Last answered
2026-10-06 13:46 UTC
Original
open at the source
What the source handed over
{
  "credits": [],
  "cve_id": "CVE-2026-97991",
  "cvss": {
    "score": 7.8,
    "vector_string": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"
  },
  "cvss_severities": {
    "cvss_v3": {
      "score": 7.8,
      "vector_string": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"
    },
    "cvss_v4": {
      "score": 0.0,
      "vector_string": null
    }
  },
  "cwes": [],
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nvdpa_sim_blk: reject out-of-range sector starts\n\nvdpasim_blk_check_range() logs an invalid start sector but continues\nvalidating the request.  The subsequent unsigned capacity subtraction can\nunderflow and let an out-of-range buffer offset reach the data path.\n\nThe invalid offset is used by three request paths.  VIRTIO_BLK_T_OUT\ncopies guest data to blk->buffer + offset through\nvringh_iov_pull_iotlb(), causing an out-of-bounds write in\n_copy_from_iter() or memcpy().  VIRTIO_BLK_T_IN copies from\nblk->buffer + offset to the guest through vringh_iov_push_iotlb(),\ncausing an out-of-bounds read in _copy_to_iter().\nVIRTIO_BLK_T_WRITE_ZEROES passes blk->buffer + offset to memset(),\ncausing an out-of-bounds write.\n\nReject starts at or beyond the capacity before the subtraction.  Treat the\ncapacity boundary as invalid because the IN and OUT paths round byte counts\ndown to sectors for validation but later copy the original byte counts.  A\nsub-sector request at the capacity boundary would otherwise still access\npast the end of the buffer.\n\nI found this bug myself, though the patch was written with AI assistance.",
  "epss": {
    "percentage": 0.00121,
    "percentile": 0.01694
  },
  "ghsa_id": "GHSA-hprw-93rc-4v5g",
  "github_reviewed_at": null,
  "html_url": "https://github.com/advisories/GHSA-hprw-93rc-4v5g",
  "identifiers": [
    {
      "type": "GHSA",
      "value": "GHSA-hprw-93rc-4v5g"
    },
    {
      "type": "CVE",
      "value": "CVE-2026-97991"
    }
  ],
  "nvd_published_at": "2026-09-25T11:17:27Z",
  "published_at": "2026-09-25T12:31:32Z",
  "references": [
    "https://nvd.nist.gov/vuln/detail/CVE-2026-97991",
    "https://git.kernel.org/stable/c/0a8693f00c408d85f086ad85d29e7030bf1e2055",
    "https://git.kernel.org/stable/c/14acb0d44b7d90a077beb7b92b444b90bafda9d9",
    "https://git.kernel.org/stable/c/a8a1413a2cfdbedc896249f461d6d92efbbfe21f",
    "https://git.kernel.org/stable/c/d6dac17e20fd2abd0eb8c09d69fccf7426e12bcf",
    "https://github.com/advisories/GHSA-hprw-93rc-4v5g"
  ],
  "repository_advisory_url": null,
  "severity": "high",
  "source_code_location": "",
  "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nvdpa_sim_blk: reject out-of...",
  "type": "unreviewed",
  "updated_at": "2026-09-25T15:31:44Z",
  "url": "https://api.github.com/advisories/GHSA-hprw-93rc-4v5g",
  "vulnerabilities": [],
  "withdrawn_at": null
}
severityhigh
From 7.0 to 8.9.
receipt
Source
GitHub advisories
Its words
high
Read by
field:severity
Said since
2026-09-28 11:44 UTC
Last answered
2026-10-06 13:46 UTC
Original
open at the source
What the source handed over
{
  "credits": [],
  "cve_id": "CVE-2026-97991",
  "cvss": {
    "score": 7.8,
    "vector_string": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"
  },
  "cvss_severities": {
    "cvss_v3": {
      "score": 7.8,
      "vector_string": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"
    },
    "cvss_v4": {
      "score": 0.0,
      "vector_string": null
    }
  },
  "cwes": [],
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nvdpa_sim_blk: reject out-of-range sector starts\n\nvdpasim_blk_check_range() logs an invalid start sector but continues\nvalidating the request.  The subsequent unsigned capacity subtraction can\nunderflow and let an out-of-range buffer offset reach the data path.\n\nThe invalid offset is used by three request paths.  VIRTIO_BLK_T_OUT\ncopies guest data to blk->buffer + offset through\nvringh_iov_pull_iotlb(), causing an out-of-bounds write in\n_copy_from_iter() or memcpy().  VIRTIO_BLK_T_IN copies from\nblk->buffer + offset to the guest through vringh_iov_push_iotlb(),\ncausing an out-of-bounds read in _copy_to_iter().\nVIRTIO_BLK_T_WRITE_ZEROES passes blk->buffer + offset to memset(),\ncausing an out-of-bounds write.\n\nReject starts at or beyond the capacity before the subtraction.  Treat the\ncapacity boundary as invalid because the IN and OUT paths round byte counts\ndown to sectors for validation but later copy the original byte counts.  A\nsub-sector request at the capacity boundary would otherwise still access\npast the end of the buffer.\n\nI found this bug myself, though the patch was written with AI assistance.",
  "epss": {
    "percentage": 0.00121,
    "percentile": 0.01694
  },
  "ghsa_id": "GHSA-hprw-93rc-4v5g",
  "github_reviewed_at": null,
  "html_url": "https://github.com/advisories/GHSA-hprw-93rc-4v5g",
  "identifiers": [
    {
      "type": "GHSA",
      "value": "GHSA-hprw-93rc-4v5g"
    },
    {
      "type": "CVE",
      "value": "CVE-2026-97991"
    }
  ],
  "nvd_published_at": "2026-09-25T11:17:27Z",
  "published_at": "2026-09-25T12:31:32Z",
  "references": [
    "https://nvd.nist.gov/vuln/detail/CVE-2026-97991",
    "https://git.kernel.org/stable/c/0a8693f00c408d85f086ad85d29e7030bf1e2055",
    "https://git.kernel.org/stable/c/14acb0d44b7d90a077beb7b92b444b90bafda9d9",
    "https://git.kernel.org/stable/c/a8a1413a2cfdbedc896249f461d6d92efbbfe21f",
    "https://git.kernel.org/stable/c/d6dac17e20fd2abd0eb8c09d69fccf7426e12bcf",
    "https://github.com/advisories/GHSA-hprw-93rc-4v5g"
  ],
  "repository_advisory_url": null,
  "severity": "high",
  "source_code_location": "",
  "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nvdpa_sim_blk: reject out-of...",
  "type": "unreviewed",
  "updated_at": "2026-09-25T15:31:44Z",
  "url": "https://api.github.com/advisories/GHSA-hprw-93rc-4v5g",
  "vulnerabilities": [],
  "withdrawn_at": null
}

Text

In the Linux kernel, the following vulnerability has been resolved: vdpa_sim_blk: reject out-of... In the Linux kernel, the following vulnerability has been resolved: vdpa_sim_blk: reject out-of-range sector starts vdpasim_blk_check_range() logs an invalid start sector but continues validating the request. The subsequent unsigned capacity subtraction can underflow and let an out-of-range buffer offset reach the data path. The invalid offset is used by three request paths. VIRTIO_BLK_T_OUT copies guest data to blk->buffer + offset through vringh_iov_pull_iotlb(), causing an out-of-bounds write in _copy_from_iter() or memcpy(). VIRTIO_BLK_T_IN copies from blk->buffer + offset to the guest through vringh_iov_push_iotlb(), causing an out-of-bounds read in _copy_to_iter(). VIRTIO_BLK_T_WRITE_ZEROES passes blk->buffer + offset to memset(), causing an out-of-bounds write. Reject starts at or beyond the capacity before the subtraction. Treat the capacity boundary as invalid because the IN and OUT paths round byte counts down to sectors for validation but later copy the original byte counts. A sub-sector request at the capacity boundary would otherwise still access past the end of the buffer. I found this bug myself, though the patch was written with AI assistance.