# CVE-2025-21978: drm/hyperv: Fix address space leak when Hyper-V DRM device is removed

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-04-01T15:47:08.168Z
- Modified: 2026-11-05T21:17:47.137Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from a0ab5abced550ddeefddb06055ed60779a54eb79 before c40cd24bfb9bfbb315c118ca14ebe6cf52e2dd1e; from a0ab5abced550ddeefddb06055ed60779a54eb79 before ad27b4a51495490b815580d9b935e8eee14d1a9c; from a0ab5abced550ddeefddb06055ed60779a54eb79 before 24f1bbfb2be77dad82489c1468bbb14312aab129; from a0ab5abced550ddeefddb06055ed60779a54eb79 before 158242b56bf465a73e1edeac0fe828a8acad4499; from a0ab5abced550ddeefddb06055ed60779a54eb79 before aed709355fd05ef747e1af24a1d5d78cd7feb81e; 6.0 (not affected: before 6.0; from 6.1.132 up to 6.1.*; from 6.6.84 up to 6.6.*; from 6.12.20 up to 6.12.*; from 6.13.8 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.0 before 6.1.132; from 6.2 before 6.6.84; from 6.7 before 6.12.20; from 6.13 before 6.13.8; 6.14

## References

- <https://git.kernel.org/stable/c/c40cd24bfb9bfbb315c118ca14ebe6cf52e2dd1e> (patch)
- <https://git.kernel.org/stable/c/ad27b4a51495490b815580d9b935e8eee14d1a9c> (patch)
- <https://git.kernel.org/stable/c/24f1bbfb2be77dad82489c1468bbb14312aab129> (patch)
- <https://git.kernel.org/stable/c/158242b56bf465a73e1edeac0fe828a8acad4499> (patch)
- <https://git.kernel.org/stable/c/aed709355fd05ef747e1af24a1d5d78cd7feb81e> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Sources

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

---

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