7.8high
drm/vkms: Fix use after free and double free on init error
- Severity
- 7.8high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.30% (higher than 15% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6 before 49a69f67f53518bdd9b7eeebf019a2da6cc0e954, from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6 before 79d138d137b80eeb0a83244d1cff29e64cf91067, from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6 before 561fc0c5cf41f646f3e9e61784cbc0fc832fb936, from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6 before d5eb8e347905ab17788a7903fa1d3d06747355f5, from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6 before b8a18bb53e06d6d3c1fd03d12533d6e333ba8853, from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6 before 1f68f1cf09d06061eb549726ff8339e064eddebd, from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6 before ed15511a773df86205bda66c37193569575ae828, 5.12 Not affected: before 5.12, from 5.15.180 up to 5.15.*, from 6.1.134 up to 6.1.*, from 6.6.87 up to 6.6.*, from 6.12.23 up to 6.12.*, from 6.13.11 up to 6.13.* | CVE List |
| linux linux_kernel | from 5.12 before 5.15.180, from 5.16 before 6.1.134, from 6.2 before 6.6.87, from 6.7 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/vkms: Se corrige el error "use after free" y "double free on init". Si falla la inicialización del controlador, la función "vkms_exit()" podría acceder a un puntero "default_config" no inicializado o liberado y liberarlo dos veces. Se corrigen ambos posibles errores inicializando "default_config" solo cuando la inicialización del controlador se haya realizado correctamente.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-22097 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-22097 changed 2026-06-17 | Public domain |