rootpwn

high · CVSS v3 7.8

CVE-2026-97991

CVE-2026-97991 is a Linux kernel vulnerability affecting the vDPA block device driver. It allows out-of-range buffer offsets to be used in r

Overview

CVE-2026-97991 is a Linux kernel vulnerability affecting the vDPA block device driver. It allows out-of-range buffer offsets to be used in read/write operations, leading to potential memory corruption. The flaw can be triggered by VIRTIO_BLK_T_IN, VIRTIO_BLK_T_OUT, or VIRTIO_BLK_T_WRITE_ZEROES requests.

Description

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.

Impact

Confidentiality: guest data may be leaked to the host. Integrity: memory corruption could enable arbitrary code execution in kernel context. Availability: the host or block device may crash or become unresponsive. Defenders include kernel maintainers, system administrators, and virtualization host operators.

Remediation

Apply the latest kernel patch that fixes vdpa_sim_blk. If patching is not immediately possible, disable the vDPA block device or restrict its use via kernel parameters. Monitor system logs for "invalid start sector" messages and audit VIRTIO_BLK requests for anomalous offsets.

Risk context

High severity with CVSS 7.8. No EPSS data is available. Prompt patching is recommended to mitigate potential memory corruption and denial of service.

Affected products

  • Linux kernel vdpa_sim_blk
  • Linux kernel vDPA

Scores

Severity
high
CVSS v2
6
CVSS v3
7.8
CVSS v4
—
EPSS
—

kernel vDPA buffer-overflow Linux block-device out-of-bounds high-severity

← All CVEs