vhost/vdpa: validate virtqueue index in mmap and fault paths (Linux Linux)

CVE-2026-74312
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.13 % · percentile 3 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

In the Linux kernel, the following vulnerability has been resolved: vhost/vdpa: validate virtqueue index in mmap and fault paths vhost_vdpa_mmap() and vhost_vdpa_fault() use vma->vm_pgoff as a virtqueue index for get_vq_notification(), but they do not validate that the index is smaller than v->nvqs. The ioctl path already performs both a bounds check and array_index_nospec(), but the mmap/fault path only checks that the index fits in u16. This allows an out-of-range queue index to reach driver-specific get_vq_notification() callbacks. Fix this by extracting a unified vhost_vdpa_get_vq_notification() helper that validates the queue index against v->nvqs and applies array_index_nospec() before calling the driver callback. Both the mmap and fault paths use this helper, and the bounds checking is consolidated into a single location. From source inspection, the most defensible impact is out-of-bounds access in the callback path, potentially leading to invalid PFN remaps and crash/DoS.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 < 0f310bac6db9bd3bb1655707d692d9d2a86eeb17 ; affected ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 < 4bf5a51963ff816f7443702dc536b9327cf5e550 ; affected ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 < 55a644031e610ea93fbde2702c7b8f267476552f ; affected ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 < 2b3f79b90b231a682315fe2191bb71925650e183 ; affected ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 < bbba4f92515238d76018e9b75e41b16d83df52c8 ; affected ddd89d0a059d8e9740c75a97e0efe9bf07ee51f9 < 1f5f94c6c6b2e4eaa5b45815509e21d0c6cfa81e
Linux · Linuxaffected 5.8 ; unaffected 0 < 5.8 ; unaffected 5.10.261 ≤ 5.10.* ; unaffected 5.15.212 ≤ 5.15.* ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD