Linux VKMS Driver Use-After-Free and Double-Free Flaw Fixed
Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Sep 8, 2025

CVE-2025-22097 affects the Linux kernel's DRM Virtual Kernel Mode Setting (VKMS) driver (drivers/gpu/drm/vkms/vkms_drv.c). A failed driver initialization can cause vkms_exit() to access an uninitialized or already freed default_config pointer, creating a use-after-free or possible double-free condition. The flaw was introduced in Linux kernel 5.12.
The issue is fixed in stable kernels 5.15.180, 6.1.134, 6.6.87, 6.12.23, 6.13.11, 6.14.2, and 6.15-rc1, and organizations should deploy a current stable kernel or applicable vendor errata. Red Hat rated the vulnerability moderate severity with CVSS 6.7, versus CVE.org's 7.8; Red Hat said an unprivileged local user cannot intentionally force VKMS initialization failure in its supplied configurations and released errata for multiple RHEL versions.
Why it matters
Impact assessment
CVE-2025-22097 exposes Linux systems with the DRM Virtual Kernel Mode Setting (VKMS) driver to local kernel-memory corruption when VKMS initialization enters its error path. Successful exploitation can cause denial of service, information disclosure, or potentially elevated code execution; impact is greatest on systems where untrusted users already have local access and VKMS can be loaded or initialized.
- Affected component: Linux kernel VKMS driver,
drivers/gpu/drm/vkms/vkms_drv.c. - Exposure begins with Linux kernel 5.12 and persists until vendor or upstream fixes are applied.
- Red Hat rates the issue Moderate, CVSS 6.7, and assesses high privileges as required in its supplied configurations; it states unprivileged users cannot deliberately trigger VKMS initialization failure on those configurations.
- CVE.org scores the issue 7.8 and assesses low privileges, indicating exploitability can differ by kernel build, module configuration, and local permissions.
- No exploitation in the wild is reported in the supplied references.
- Scope is not remotely exploitable from the described flaw; it is a local attack surface and is most relevant to multi-user Linux hosts, developer systems, virtualized workloads, and systems permitting privileged users or automation to manage kernel modules/display drivers.


