Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilitywidely-deployed-product-advisoryprivilege-escalation-method

Linux VKMS Driver Use-After-Free and Double-Free Flaw Fixed

Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Sep 8, 2025

Linux VKMS Driver Use-After-Free and Double-Free Flaw Fixed

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.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

9 events · Aug 18, 2025 – Sep 8, 2025
  1. Reported Sep 8, 20251y ago

    Red Hat issues additional RHEL 9 kernel fix

    Red Hat released RHSA-2025:20518 as an additional RHEL 9 kernel remediation for CVE-2025-22097.

    CVE-2025-22097 - Red Hat Customer Portal
  2. Reported Sep 8, 20251y ago

    Red Hat patches RHEL 8.6 specialized kernel streams

    Red Hat issued RHSA-2025:18043 for RHEL 8.6 Advanced Mission Critical Update Support, Telecommunications Update Service, and SAP Solutions update-stream kernels.

    CVE-2025-22097 - Red Hat Customer Portal
  3. Reported Sep 8, 20251y ago

    Red Hat fixes affected RHEL 8.8 specialized update streams

    RHSA-2025:17009 remediated the vulnerability in RHEL 8.8 Telecommunications Update Service and Update Services for SAP Solutions kernel packages.

    CVE-2025-22097 - Red Hat Customer Portal
  4. Reported Sep 8, 20251y ago

    Red Hat releases initial RHEL 9 kernel fix

    Red Hat issued RHSA-2025:15661 to fix CVE-2025-22097 in Red Hat Enterprise Linux 9 kernel packages.

    CVE-2025-22097 - Red Hat Customer Portal
  5. Sep 8, 20251y ago

    Red Hat fixes CVE-2025-22097 in RHEL 10 kernel

    Red Hat issued RHSA-2025:15447 to remediate CVE-2025-22097 in the Red Hat Enterprise Linux 10 kernel.

    CVE-2025-22097 - Red Hat Customer Portal
  6. Aug 18, 20251y ago

    Red Hat issues RHEL 8 kernel and kernel-rt fixes

    Red Hat released RHSA-2025:13960 and RHSA-2025:13961 to fix CVE-2025-22097 in Red Hat Enterprise Linux 8 kernel and kernel-rt packages.

    CVE-2025-22097 - Red Hat Customer Portal
  7. Reported Apr 16, 20252y ago

    Upstream stable kernels receive VKMS remediation

    The issue was fixed in stable kernel releases 5.15.180, 6.1.134, 6.6.87, 6.12.23, 6.13.11, 6.14.2, and 6.15-rc1. The remediation defers initialization of default_config until VKMS driver initialization succeeds.

    CVE-2025-22097: drm/vkms: Fix use after free and double free on init error
  8. Reported Apr 16, 20252y ago

    Linux kernel CVE team assigns CVE-2025-22097

    The Linux kernel CVE team assigned CVE-2025-22097 to the VKMS initialization-error vulnerability in drivers/gpu/drm/vkms/vkms_drv.c.

    CVE-2025-22097: drm/vkms: Fix use after free and double free on init error
  9. Reported Apr 16, 20252y ago

    VKMS initialization flaw introduced in Linux 5.12

    The use-after-free and potential double-free flaw in the DRM Virtual Kernel Mode Setting driver was introduced in Linux kernel 5.12. On failed initialization, vkms_exit() could access an uninitialized or already freed default_config pointer.

    CVE-2025-22097: drm/vkms: Fix use after free and double free on init error
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Red Hat Enterprise Linux
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.