CVE-2025-22097

drm/vkms: Fix use after free and double free on init error

HIGH
7.8
CVSS Score
Published: April 16, 2025 at 02:12 PM UTC
Updated: June 17, 2026 at 08:45 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: drm/vkms: Fix use after free and double free on init error If the driver initialization fails, the vkms_exit() function might access an uninitialized or freed default_config pointer and it might double free it. Fix both possible errors by initializing default_config only when the driver initialization succeeded.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.12 ≤ v < 5.15.1805.12 ≤ v < 6.1.1345.12 ≤ v < 6.12.235.12 ≤ v < 6.13.115.12 ≤ v < 6.14.25.12 ≤ v < 6.155.12 ≤ v < 6.6.875.16 ≤ v < 6.1.1346.13 ≤ v < 6.13.116.14 ≤ v < 6.14.26.2 ≤ v < 6.6.876.7 ≤ v < 6.12.232df7af93fdadb9ba8226fe443fae15ecdefda2a65.12
Vendor states this is fixed in 1f68f1cf09d06061eb549726ff8339e064eddebd (fixed)
Vendor states this is fixed in 49a69f67f53518bdd9b7eeebf019a2da6cc0e954 (fixed)
Vendor states this is fixed in 561fc0c5cf41f646f3e9e61784cbc0fc832fb936 (fixed)
Vendor states this is fixed in 79d138d137b80eeb0a83244d1cff29e64cf91067 (fixed)
Vendor states this is fixed in b8a18bb53e06d6d3c1fd03d12533d6e333ba8853 (fixed)
Vendor states this is fixed in d5eb8e347905ab17788a7903fa1d3d06747355f5 (fixed)
Vendor states this is fixed in ed15511a773df86205bda66c37193569575ae828 (fixed)
Vendor states this is fixed in 5.12 (unaffected)
Vendor states this is fixed in 5.15.180 (unaffected)
Vendor states this is fixed in 6.1.134 (unaffected)
Vendor states this is fixed in 6.12.23 (unaffected)
Vendor states this is fixed in 6.13.11 (unaffected)
Vendor states this is fixed in 6.14.2 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.87 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1f68f1cf09d06061eb549726ff8339e064eddebd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/49a69f67f53518bdd9b7eeebf019a2da6cc0e954
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/561fc0c5cf41f646f3e9e61784cbc0fc832fb936
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/79d138d137b80eeb0a83244d1cff29e64cf91067
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b8a18bb53e06d6d3c1fd03d12533d6e333ba8853
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d5eb8e347905ab17788a7903fa1d3d06747355f5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ed15511a773df86205bda66c37193569575ae828
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card