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.
Metrics
Affected Vendors & Products
| Source | ID | Title | 
|---|---|---|
  Debian DLA | 
                DLA-4193-1 | linux-6.1 security update | 
  Debian DSA | 
                DSA-5907-1 | linux security update | 
  EUVD | 
                EUVD-2025-11205 | 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. | 
  Ubuntu USN | 
                USN-7591-1 | Linux kernel vulnerabilities | 
  Ubuntu USN | 
                USN-7591-2 | Linux kernel (FIPS) vulnerabilities | 
  Ubuntu USN | 
                USN-7591-3 | Linux kernel (Real-time) vulnerabilities | 
  Ubuntu USN | 
                USN-7591-4 | Linux kernel (AWS) vulnerabilities | 
  Ubuntu USN | 
                USN-7591-5 | Linux kernel (Intel IoTG) vulnerabilities | 
  Ubuntu USN | 
                USN-7591-6 | Linux kernel (Raspberry Pi) vulnerabilities | 
  Ubuntu USN | 
                USN-7592-1 | Linux kernel vulnerabilities | 
  Ubuntu USN | 
                USN-7593-1 | Linux kernel (HWE) vulnerabilities | 
  Ubuntu USN | 
                USN-7594-1 | Linux kernel vulnerabilities | 
  Ubuntu USN | 
                USN-7594-2 | Linux kernel (Azure) vulnerabilities | 
  Ubuntu USN | 
                USN-7594-3 | Linux kernel vulnerabilities | 
  Ubuntu USN | 
                USN-7597-1 | Linux kernel (Azure) vulnerabilities | 
  Ubuntu USN | 
                USN-7597-2 | Linux kernel (Azure FIPS) vulnerabilities | 
  Ubuntu USN | 
                USN-7598-1 | Linux kernel (Azure) vulnerabilities | 
  Ubuntu USN | 
                USN-7602-1 | Linux kernel (Xilinx ZynqMP) vulnerabilities | 
  Ubuntu USN | 
                USN-7605-1 | Linux kernel vulnerabilities | 
  Ubuntu USN | 
                USN-7605-2 | Linux kernel (Low Latency) vulnerabilities | 
  Ubuntu USN | 
                USN-7606-1 | Linux kernel (OEM) vulnerabilities | 
  Ubuntu USN | 
                USN-7628-1 | Linux kernel (Azure) vulnerabilities | 
  Ubuntu USN | 
                USN-7655-1 | Linux kernel (Intel IoTG) vulnerabilities | 
  Ubuntu USN | 
                USN-7835-1 | Linux kernel vulnerabilities | 
  Ubuntu USN | 
                USN-7835-2 | Linux kernel (Real-time) vulnerabilities | 
  Ubuntu USN | 
                USN-7835-3 | Linux kernel vulnerabilities | 
  Ubuntu USN | 
                USN-7835-4 | Linux kernel (HWE) vulnerabilities | 
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
Mon, 03 Nov 2025 20:30:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| References | 
         | 
Fri, 25 Apr 2025 19:00:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| First Time appeared | 
        
        Linux
         Linux linux Kernel  | 
|
| CPEs | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | |
| Vendors & Products | 
        
        Linux
         Linux linux Kernel  | 
Fri, 25 Apr 2025 15:15:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| Weaknesses | CWE-416 | |
| Metrics | 
        
        
        cvssV3_1
         
  | 
    
        
        ssvc
         
 
  | 
Sat, 19 Apr 2025 02:00:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| References | 
         | |
| Metrics | 
        
        
        threat_severity
         
  | 
    
        
        cvssV3_1
         
 
  | 
Wed, 16 Apr 2025 14:30:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| 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. | |
| Title | drm/vkms: Fix use after free and double free on init error | |
| References | 
         | 
        
  | 
Status: PUBLISHED
Assigner: Linux
Published:
Updated: 2025-11-03T19:42:13.124Z
Reserved: 2024-12-29T08:45:45.818Z
Link: CVE-2025-22097
Updated: 2025-04-25T14:30:08.194Z
Status : Modified
Published: 2025-04-16T15:16:04.080
Modified: 2025-11-03T20:17:44.253
Link: CVE-2025-22097
                        OpenCVE Enrichment
                    No data.
 Debian DLA
 Debian DSA
 EUVD
 Ubuntu USN