VDB

CVE-2025-22097

CVE-2025-22097 PUBLISHED CVSS 7.8 HIGH

drm/vkms: Fix use after free and double free on init error

Reported by linux · Published April 16, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
LinuxLinuxed15511a773df86205bda66c37193569575ae828, d5eb8e347905ab17788a7903fa1d3d06747355f5, b8a18bb53e06d6d3c1fd03d12533d6e333ba8853, 79d138d137b80eeb0a83244d1cff29e64cf91067, 561fc0c5cf41f646f3e9e61784cbc0fc832fb936, 5.12, 49a69f67f53518bdd9b7eeebf019a2da6cc0e954, 1f68f1cf09d06061eb549726ff8339e064eddebd

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux2df7af93fdadb9ba8226fe443fae15ecdefda2a6, 2df7af93fdadb9ba8226fe443fae15ecdefda2a6, 2df7af93fdadb9ba8226fe443fae15ecdefda2a6
LinuxLinux5.12, 0, 5.15.180
LinuxLinux0, 6.6.87, 6.12.23
linuxlinux_kernel5.12, 5.12, 5.12

Timeline

  • Apr 16, 2025 CVE Published
  • Apr 17, 2025 EPSS Score (30 in total, the first dated here)
  • Apr 22, 2025 Coalition ESS Score (19 in total, the first dated here)
  • Dec 21, 2025 Security Advisory (359 in total, the first dated here)
  • Apr 20, 2026 Distribution Patch (352 in total, the first dated here)
  • Nov 2, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-22097
vulnetix vdb fixes CVE-2025-22097

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-22097/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›