Skip to main content
Vulnerability Database/CVE-2026-98156

CVE-2026-98156: Linux Kernel Privilege Escalation Flaw

CVE-2026-98156 is a privilege escalation vulnerability in the Linux kernel drm/virtio component affecting Xen PV domains. This article covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98156 Overview

CVE-2026-98156 is a Linux kernel vulnerability in the drm/virtio (virtio-gpu) driver. The flaw affects Xen paravirtualized (PV) domains where guest-physical addresses do not correspond to host machine addresses. The virtio-gpu driver incorrectly bypasses the DMA API when VIRTIO_F_ACCESS_PLATFORM is not negotiated, passing raw guest-physical addresses to the host via sg_phys(). On a Xen PV dom0, the host then scans out memory belonging to unrelated domains, causing cross-domain memory disclosure through the framebuffer. The issue is resolved by moving the DMA API decision into virtio_gpu_use_dma_api() and adding a xen_domain() check, mirroring the existing logic in vring_use_map_api().

Critical Impact

On Xen PV dom0 systems using virtio-vga, the host scans out memory pages belonging to other domains, exposing arbitrary guest memory contents through the virtio-gpu framebuffer.

Affected Products

  • Linux kernel versions prior to the fix (reproduced on 6.8 and 6.18 LTS)
  • Systems running as Xen PV dom0 with virtio-gpu / virtio-vga devices
  • QEMU 8.2 configurations exposing virtio-vga without iommu_platform set

Discovery Timeline

  • 2026-09-25 - CVE-2026-98156 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-98156

Vulnerability Analysis

The virtio-gpu driver independently determines whether to use the DMA API through the expression bool use_dma_api = !virtio_has_dma_quirk(vgdev->vdev);. This logic examines only the VIRTIO_F_ACCESS_PLATFORM feature bit. QEMU does not set iommu_platform on virtio-vga by default, so the feature is not negotiated and use_dma_api resolves to false.

With DMA bypass enabled, virtio_gpu_object_shmem_init() describes framebuffer backing pages to the host using sg_phys(). These are guest-physical addresses. On a Xen PV domain, guest-physical addresses bear no relation to the machine addresses the host must use to reach the actual memory. The host therefore resolves these addresses to pages owned by other domains and scans out their contents.

The virtio_ring.c subsystem handles this case correctly through vring_use_map_api(), which returns true for any xen_domain() regardless of the feature bit. The virtio-gpu driver's parallel decision path missed this check.

Root Cause

The root cause is an incomplete feature-detection check in virtio-gpu that fails to account for Xen PV address translation semantics [CWE-200]. The driver assumes that absent VIRTIO_F_ACCESS_PLATFORM, guest-physical addresses are directly usable by the host, which is invalid under Xen PV.

Attack Vector

Exploitation requires a local, low-privileged context inside a Xen PV dom0 guest with a virtio-gpu or virtio-vga device attached. A PVH dom0 is not affected because it is identity-mapped. The vulnerability allows reading memory from other domains on the same host via framebuffer scanout, resulting in information disclosure and potential impact to the integrity and availability of co-located guests.

No exploitation code example is available. See the upstream commits listed below for the fix.

Detection Methods for CVE-2026-98156

Indicators of Compromise

  • Unexpected image artifacts, text fragments, or binary data appearing in the virtio-gpu framebuffer output of a Xen PV dom0
  • Kernel logs showing virtio-gpu initialization on a xen_domain() without VIRTIO_F_ACCESS_PLATFORM negotiated
  • QEMU virtio-vga device configurations lacking the iommu_platform=on option

Detection Strategies

  • Enumerate running kernel versions across Xen PV dom0 hosts and compare against the patched commits 455184d, 6a736d2, and 93c557e
  • Audit QEMU command lines and libvirt domain XML for virtio-vga or virtio-gpu devices without iommu_platform enabled
  • Review hypervisor topology to identify PV dom0 instances; PVH dom0 instances are not affected

Monitoring Recommendations

  • Alert on loading of the virtio_gpu module within Xen PV guest kernels that predate the fix
  • Track kernel package versions through configuration management tooling and flag hosts that have not received the stable kernel update

How to Mitigate CVE-2026-98156

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in commits 455184d, 6a736d2, and 93c557e
  • Inventory all Xen PV dom0 hosts and prioritize patching for those exposing virtio-gpu or virtio-vga devices
  • Where patching is not immediately possible, remove or disable virtio-gpu / virtio-vga devices from affected guests

Patch Information

The fix moves the DMA API decision into a new helper virtio_gpu_use_dma_api() that includes a xen_domain() check analogous to vring_use_map_api(). This also enables the dma_sync_sgtable_for_device() calls in virtgpu_vq.c required for correctness when swiotlb is active. Patches are available at Kernel Git Commit 455184d, Kernel Git Commit 6a736d2, and Kernel Git Commit 93c557e.

Workarounds

  • Migrate dom0 from PV mode to PVH mode, which is identity-mapped and not affected by this issue
  • Replace virtio-vga with an alternative display device (such as a QXL or standard VGA emulated device) until the kernel patch is deployed
  • If virtio-vga must remain, configure QEMU with iommu_platform=on so that VIRTIO_F_ACCESS_PLATFORM is negotiated and the DMA API is used
bash
# QEMU configuration example: enable iommu_platform on virtio-vga
-device virtio-vga,iommu_platform=on,ats=on

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.