CVE-2025-21978
drm/hyperv: Fix address space leak when Hyper-V DRM device is removed
Check your servers for CVE-2025-21978
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-21978 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/hyperv: Fix address space leak when Hyper-V DRM device is removed
When a Hyper-V DRM device is probed, the driver allocates MMIO space for the vram, and maps it cacheable. If the device removed, or in the error path for device probing, the MMIO space is released but no unmap is done. Consequently the kernel address space for the mapping is leaked.
Fix this by adding iounmap() calls in the device removal path, and in the error path during device probing.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from a0ab5abced550ddeefddb06055ed60779a54eb79, before c40cd24bfb9bfbb315c118ca14ebe6cf52e2dd1e affected from a0ab5abced550ddeefddb06055ed60779a54eb79, before ad27b4a51495490b815580d9b935e8eee14d1a9c affected from a0ab5abced550ddeefddb06055ed60779a54eb79, before 24f1bbfb2be77dad82489c1468bbb14312aab129 affected from a0ab5abced550ddeefddb06055ed60779a54eb79, before 158242b56bf465a73e1edeac0fe828a8acad4499 affected from a0ab5abced550ddeefddb06055ed60779a54eb79, before aed709355fd05ef747e1af24a1d5d78cd7feb81e
Other versions: unaffected
|
| Linux |
affected 6.0 unaffected before 6.0 unaffected from 6.1.132 up to and including 6.1.* unaffected from 6.6.84 up to and including 6.6.* unaffected from 6.12.20 up to and including 6.12.* unaffected from 6.13.8 up to and including 6.13.* unaffected 6.14 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-21978 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21978
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-21978
trivy image --scanners vuln IMAGE | grep CVE-2025-21978
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/c40cd24bfb9bfbb315c118ca14ebe6cf52e2dd1e git.kernel.org
- https://git.kernel.org/stable/c/ad27b4a51495490b815580d9b935e8eee14d1a9c git.kernel.org
- https://git.kernel.org/stable/c/24f1bbfb2be77dad82489c1468bbb14312aab129 git.kernel.org
- https://git.kernel.org/stable/c/158242b56bf465a73e1edeac0fe828a8acad4499 git.kernel.org
- https://git.kernel.org/stable/c/aed709355fd05ef747e1af24a1d5d78cd7feb81e git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html lists.debian.org
Source: the record CVE-2025-21978 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse