CVE-2025-22097: Linux kernel · drm/vkms: Fix use after free and double free on init error
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High · fixed in 5.15.0-1086.93~20.04.1 : patch Linux kernel soon.
Data as of 12 Nov 2026, 19:25 UTC
- Patch
- Available – fixed in 5.15.0-1086.93~20.04.1, 5.15.0-1091.100~20.04.1, 5.15.0-1085.94~20.04.1 +64
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Apr 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 12 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-7591-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7592-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7593-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7597-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7597-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7598-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7602-1 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-nvidiapkg:deb/ubuntu/linux-azure-nvidia?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and included in Linux kernel versions 5.15.0-1086.93~20.04.1 and later. Users should apply the official kernel updates provided by their distribution and reboot systems to ensure the fix is active. No additional mitigation steps are required beyond applying the update.
Description
CVE-2025-22097 is a use-after-free and double-free vulnerability in the drm/vkms driver of the Linux kernel. The flaw occurs if driver initialization fails, where the vkms_exit() function may access or free an uninitialized or already freed default_config pointer. This issue has been fixed by ensuring default_config is only initialized when driver initialization succeeds.
References
- ubuntu.com/security/CVE-2025-22097 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-22097 (opens in a new tab)
- git.kernel.org/linus/ed15511a773df86205bda66c37193569575ae828 (opens in a new tab)
- git.kernel.org/stable/c/1f68f1cf09d06061eb549726ff8339e064eddebd (opens in a new tab)
- git.kernel.org/stable/c/49a69f67f53518bdd9b7eeebf019a2da6cc0e954 (opens in a new tab)
- git.kernel.org/stable/c/561fc0c5cf41f646f3e9e61784cbc0fc832fb936 (opens in a new tab)
- git.kernel.org/stable/c/79d138d137b80eeb0a83244d1cff29e64cf91067 (opens in a new tab)
- git.kernel.org/stable/c/b8a18bb53e06d6d3c1fd03d12533d6e333ba8853 (opens in a new tab)
- git.kernel.org/stable/c/d5eb8e347905ab17788a7903fa1d3d06747355f5 (opens in a new tab)
- git.kernel.org/stable/c/ed15511a773df86205bda66c37193569575ae828 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7592-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7593-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7597-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7597-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7598-1 (opens in a new tab)