Description
In the Linux kernel, the following vulnerability has been resolved:

vhost/vdpa: reject VRING_NUM larger than device max

vhost_vring_set_num() accepts any non-zero power-of-two queue size that
fits in 16 bits. vhost-vdpa then passes that value to set_vq_num()
without comparing it with get_vq_num_max().

A process with access to /dev/vhost-vdpa-* can therefore configure a
queue larger than the device advertises. With vdpa_sim, the worker can
walk descriptors beyond the mapped descriptor ring. KASAN reports a
16-byte out-of-bounds read, corresponding to one vring_desc, in the
vringh IOTLB path:

BUG: KASAN: out-of-bounds in _copy_from_iter
Read of size 16
copy_from_iotlb
copydesc_iotlb
vringh_getdesc_iotlb
vdpasim_net_work

Cache get_vq_num_max() immediately after reset. Some backends derive
it from writable queue-size state, so querying it after SET_NUM may
return the current size instead of the device capability. Invalidate
the cached value before reset so a failed reset leaves SET_NUM
disabled.

For VHOST_SET_VRING_NUM, copy the complete vring state once and use
the same index and size for validation, vq->num, and set_vq_num().
This ensures that validation and use operate on the same copied values.
Published: 2026-09-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Out-of-bounds read that could lead to kernel exploitation
Action: Patch
AI Analysis

Impact

In the Linux kernel, the vhost/vdpa subsystem allows a caller to set a virtual queue (vring) size via VHOST_SET_VRING_NUM. The vhost_vring_set_num() routine accepts any non‑zero power‑of‑two queue size that fits in 16 bits and forwards this value to set_vq_num() without verifying it against the device’s maximum queue size obtained from get_vq_num_max(). A process with access to /dev/vhost‑vdpa‑* can therefore configure a queue larger than the device advertises. When the backend processes packets it walks beyond the mapped descriptor ring, triggering a 16‑byte out-of-bounds read reported by KASAN in the vringh IOTLB path. This out‑of-bounds read can leak kernel memory contents and, in a kernel context, may be leveraged to gain elevated privileges or destabilize the system.

Affected Systems

The vulnerability resides in the generic Linux kernel source, so any distribution that ships a kernel revision containing the unguarded vhost/vdpa code is affected. The patch was applied after commit c1d09201 in the kernel’s mainline; therefore all kernel versions released before that commit are susceptible. No specific distribution version list is supplied by the CNA, but users should check whether their kernel was built prior to the fix and plan an upgrade accordingly.

Risk and Exploitability

The EPSS score is < 1%, indicating a low probability of exploitation, and the vulnerability is not listed in CISA KEV. The attack requires local access to /dev/vhost‑vdpa‑* and the ability to issue VHOST_SET_VRING_NUM, which typically implies privileged or compromised local users. The CVSS score of 5.5 places the flaw in the moderate severity range. Nevertheless, the kernel out‑of-bounds read could allow an attacker to read arbitrary kernel memory, potentially leading to privilege escalation or denial of service. While exploitation may be non‑trivial, the potential impact is system‑wide kernel compromise. Given the severity of a kernel memory corruption flaw, the risk is considered high.

Generated by OpenCVE AI on October 1, 2026 at 05:54 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel version that includes the vhost/vdpa fix which validates VRING_NUM against the device maximum before setting the queue size.
  • Restrict the permissions on /dev/vhost‑vdpa‑* to trusted users or groups, ensuring only privileged processes can change queue sizes.
  • Monitor kernel logs for KASAN “out-of-bounds” messages and audit /dev/vhost‑vdpa‑* usage to detect anomalous activity.

Generated by OpenCVE AI on October 1, 2026 at 05:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6528-1 linux security update
History

Sat, 03 Oct 2026 11:15:00 +0000


Thu, 01 Oct 2026 04:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-20
CWE-787

Wed, 30 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 25 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119
CWE-20
CWE-787

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: vhost/vdpa: reject VRING_NUM larger than device max vhost_vring_set_num() accepts any non-zero power-of-two queue size that fits in 16 bits. vhost-vdpa then passes that value to set_vq_num() without comparing it with get_vq_num_max(). A process with access to /dev/vhost-vdpa-* can therefore configure a queue larger than the device advertises. With vdpa_sim, the worker can walk descriptors beyond the mapped descriptor ring. KASAN reports a 16-byte out-of-bounds read, corresponding to one vring_desc, in the vringh IOTLB path: BUG: KASAN: out-of-bounds in _copy_from_iter Read of size 16 copy_from_iotlb copydesc_iotlb vringh_getdesc_iotlb vdpasim_net_work Cache get_vq_num_max() immediately after reset. Some backends derive it from writable queue-size state, so querying it after SET_NUM may return the current size instead of the device capability. Invalidate the cached value before reset so a failed reset leaves SET_NUM disabled. For VHOST_SET_VRING_NUM, copy the complete vring state once and use the same index and size for validation, vq->num, and set_vq_num(). This ensures that validation and use operate on the same copied values.
Title vhost/vdpa: reject VRING_NUM larger than device max
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-03T11:01:21.645Z

Reserved: 2026-09-25T10:18:58.209Z

Link: CVE-2026-97994

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:27.637

Modified: 2026-10-03T11:18:23.120

Link: CVE-2026-97994

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-97994 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T06:00:13Z

Weaknesses