CVE-2026-53347: Linux virtio-gpu Driver Crash on Removal Without KMS
The virtio-gpu Linux kernel driver crashes when being unloaded if it was compiled without KMS (Kernel Mode Setting) support. During driver removal, the code attempts to shut down atomic graphics rendering components that were never initialized in the first place, causing the kernel to access invalid memory and crash. This is a local denial-of-service condition that affects systems running custom or minimal Linux kernel builds where virtio-gpu is present but KMS is disabled.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.5 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- CWE-908
- Affected products
- 8 configuration(s)
- Published / Modified
- 2026-07-01 / 2026-07-22
NVD description (verbatim)
In the Linux kernel, the following vulnerability has been resolved: drm/virtio: Fix driver removal with disabled KMS DRM atomic and modesetting aren't initialized if virtio-gpu driver built with disabled KMS, leading to access of uninitialized data on driver removal/unbinding and crashing kernel. Fix it by skipping shutting down atomic core with unavailable KMS.
5 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-53347 is a use-after-free or uninitialized data access vulnerability in the DRM (Direct Rendering Manager) virtio-gpu driver. The issue occurs in the driver removal/unbinding path when the kernel is compiled with CONFIG_DRM_VIRTIO_GPU_KMS disabled. The atomic modesetting subsystem is conditional on KMS being enabled, but the shutdown sequence in the driver removal handler does not check this condition before attempting to clean up atomic core structures. This results in dereferencing uninitialized pointers, triggering a kernel panic. The vulnerability is classified under CWE-908 (Use of Uninitialized Resource).
Business impact
Systems running virtualized workloads on QEMU or other hypervisors using virtio-gpu without KMS will experience kernel crashes during driver unload events, such as device hot-removal, module unloading, or system shutdown. This causes unexpected downtime and disrupts containerized or VM-based services. In environments with automated driver reloading or frequent device reconfiguration, the crash becomes a reliable denial-of-service vector.
Affected systems
The Linux kernel across all versions is affected. The vulnerability specifically impacts systems with a custom or embedded kernel configuration where virtio-gpu is enabled but DRM_VIRTIO_GPU_KMS is disabled. This is uncommon in standard distributions but more likely in minimal cloud images, embedded systems, or custom hypervisor setups. Affected vendors: Linux (Linux kernel).
Exploitability
Exploitability is low in practice due to the specific configuration requirement. An attacker requires local access and the ability to trigger driver removal—typically via module unload commands, device hot-plug operations, or system reboot. No network vector exists. The vulnerability cannot be triggered remotely on standard distributions where KMS is enabled by default. However, in affected minimal or embedded configurations, any local user or service with root privileges can reliably crash the kernel by unloading the driver.
Remediation
The fix involves adding a conditional check in the driver removal handler to skip atomic core shutdown when KMS is not compiled in. This prevents the code from accessing uninitialized structures. The patch is straightforward and has minimal performance or compatibility impact. End users should update to a patched kernel version from their distribution; verify against your vendor's Linux kernel advisory for specific release versions and patch dates.
Patch guidance
Check your kernel version and rebuild or update to a patched release. If you are running a custom-compiled kernel with virtio-gpu enabled, either enable CONFIG_DRM_VIRTIO_GPU_KMS in your kernel config (recommended) or apply the upstream fix to the virtio-gpu driver removal logic. Distributions should issue kernel updates; monitor your vendor's security advisories (Red Hat, Canonical, etc.) for patched kernel versions. A kernel reboot is required to deploy the fix.
Detection guidance
Monitor system logs for kernel panics or oops messages referencing 'virtio_gpu' or 'drm' in the call stack during driver unload or system shutdown. If using virtualized infrastructure, log driver removal events and correlate with unexpected reboots. Inspect running kernel configuration via /boot/config-* or 'cat /proc/config.gz | zcat' to confirm if CONFIG_DRM_VIRTIO_GPU_KMS is disabled; this indicates a potentially vulnerable configuration. In CI/CD or hypervisor environments, test driver unload sequences in staging to surface crashes before production deployment.
Why prioritize this
Although the CVSS score is medium (5.5), this vulnerability has narrow blast radius due to configuration specificity. Prioritize if you operate minimal or custom-compiled kernels with virtio-gpu but no KMS, or if you manage hypervisor infrastructure where automatic driver reloading occurs. Lower priority for standard Linux distributions where KMS is enabled by default.
Risk score, explained
The CVSS:3.1 score of 5.5 reflects a local attack vector (AV:L), low complexity (AC:L), low privilege requirement (PR:L), no user interaction (UI:N), and no confidentiality or integrity impact—only availability (A:H). The score accurately reflects the impact (reliable kernel crash) and the low likelihood of exploitation in mainstream environments, balanced against the ease of triggering the crash once the narrow configuration requirement is met.
Frequently asked questions
Does this affect my standard Linux distribution?
Unlikely. Most distributions enable CONFIG_DRM_VIRTIO_GPU_KMS by default. The vulnerability only manifests if your kernel was explicitly compiled with KMS disabled. Run 'cat /boot/config-$(uname -r) | grep CONFIG_DRM_VIRTIO_GPU_KMS' to verify; if the line is missing or set to 'n', you may be affected.
What if I don't use virtio-gpu?
You are unaffected. This vulnerability requires both the virtio-gpu driver to be present and KMS to be disabled. Check 'lsmod | grep virtio_gpu'; if it does not appear, you are safe.
Can this be exploited remotely?
No. The vulnerability requires local access and the ability to trigger driver removal via module unload, device hot-plug, or system commands. It cannot be exploited over the network.
Is there a workaround if I cannot patch immediately?
Yes: enable CONFIG_DRM_VIRTIO_GPU_KMS in your kernel configuration and rebuild, or avoid unloading the virtio-gpu driver. However, patching is the proper long-term solution.
This analysis is provided for informational purposes and based on the CVE details and CVSS vector available as of the publication date. Patch versions, release dates, and vendor-specific advisory links should be verified directly with the Linux vendor (Red Hat, Canonical, SUSE, etc.) and the upstream Linux kernel project. No guarantee is made regarding the completeness or currency of this information. Always test patches in a controlled environment before deploying to production. Source: NVD (public-domain), retrieved 2026-08-10. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-11089MEDIUMGoogle Chrome Memory Disclosure in Media Handling
- CVE-2026-46132MEDIUMLinux Kernel Stack Memory Leak via rtnetlink VF Information Disclosure
- CVE-2026-46139MEDIUMLinux SMB Client Uninitialized Buffer in Security Descriptors
- CVE-2026-46167MEDIUMLinux Kernel USB Printer Driver Uninitialized Heap Memory Leak via LPGETSTATUS ioctl
- CVE-2026-46169MEDIUMLinux HFS+ Catalog Record Validation Vulnerability
- CVE-2026-46186MEDIUMLinux Bluetooth Virtio Driver Memory Validation Flaw
- CVE-2026-46257MEDIUMLinux SP804 Timer Kernel Panic on ARM32 – Patch & Detection
- CVE-2026-52985MEDIUMLinux Kernel Netdevsim Uninitialized Memory Bug