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

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 15% of CVEs (2026-11-30)
- Published: 2025-04-16T14:12:47.649Z
- Modified: 2026-06-17T08:45:08.440Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- 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.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- 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

## References

- <https://git.kernel.org/stable/c/49a69f67f53518bdd9b7eeebf019a2da6cc0e954> (patch)
- <https://git.kernel.org/stable/c/79d138d137b80eeb0a83244d1cff29e64cf91067> (patch)
- <https://git.kernel.org/stable/c/561fc0c5cf41f646f3e9e61784cbc0fc832fb936> (patch)
- <https://git.kernel.org/stable/c/d5eb8e347905ab17788a7903fa1d3d06747355f5> (patch)
- <https://git.kernel.org/stable/c/b8a18bb53e06d6d3c1fd03d12533d6e333ba8853> (patch)
- <https://git.kernel.org/stable/c/1f68f1cf09d06061eb549726ff8339e064eddebd> (patch)
- <https://git.kernel.org/stable/c/ed15511a773df86205bda66c37193569575ae828> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Sources

- CVE List: [CVE-2025-22097](https://www.cve.org/CVERecord?id=CVE-2025-22097), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-22097](https://nvd.nist.gov/vuln/detail/CVE-2025-22097), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22097 · Whole record: https://cve.day/CVE-2025-22097.json · Rebuilt by cve.day 2026-11-25T22:58:56.611Z
