CVE-2025-22097
drm/vkms: Fix use after free and double free on init error
Check your servers for CVE-2025-22097
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-22097 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 25 Apr 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-416 Use After Free
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6, before 49a69f67f53518bdd9b7eeebf019a2da6cc0e954 affected from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6, before 79d138d137b80eeb0a83244d1cff29e64cf91067 affected from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6, before 561fc0c5cf41f646f3e9e61784cbc0fc832fb936 affected from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6, before d5eb8e347905ab17788a7903fa1d3d06747355f5 affected from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6, before b8a18bb53e06d6d3c1fd03d12533d6e333ba8853 affected from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6, before 1f68f1cf09d06061eb549726ff8339e064eddebd affected from 2df7af93fdadb9ba8226fe443fae15ecdefda2a6, before ed15511a773df86205bda66c37193569575ae828
Other versions: unaffected
|
| Linux |
affected 5.12 unaffected before 5.12 unaffected from 5.15.180 up to and including 5.15.* unaffected from 6.1.134 up to and including 6.1.* unaffected from 6.6.87 up to and including 6.6.* unaffected from 6.12.23 up to and including 6.12.* unaffected from 6.13.11 up to and including 6.13.* unaffected from 6.14.2 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-22097 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-22097
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-22097
trivy image --scanners vuln IMAGE | grep CVE-2025-22097
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/49a69f67f53518bdd9b7eeebf019a2da6cc0e954 git.kernel.org
- https://git.kernel.org/stable/c/79d138d137b80eeb0a83244d1cff29e64cf91067 git.kernel.org
- https://git.kernel.org/stable/c/561fc0c5cf41f646f3e9e61784cbc0fc832fb936 git.kernel.org
- https://git.kernel.org/stable/c/d5eb8e347905ab17788a7903fa1d3d06747355f5 git.kernel.org
- https://git.kernel.org/stable/c/b8a18bb53e06d6d3c1fd03d12533d6e333ba8853 git.kernel.org
- https://git.kernel.org/stable/c/1f68f1cf09d06061eb549726ff8339e064eddebd git.kernel.org
- https://git.kernel.org/stable/c/ed15511a773df86205bda66c37193569575ae828 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html lists.debian.org
Source: the record CVE-2025-22097 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse