CVE-2025-21978

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

State
Published
Severity
Not scored
Published
Apr 1, 2025
Updated
May 11, 2026
Reserved
Dec 29, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • a0ab5abced550ddeefddb06055ed60779a54eb79 to before c40cd24bfb9bfbb315c118ca14ebe6cf52e2dd1eAffected
  • a0ab5abced550ddeefddb06055ed60779a54eb79 to before ad27b4a51495490b815580d9b935e8eee14d1a9cAffected
  • a0ab5abced550ddeefddb06055ed60779a54eb79 to before 24f1bbfb2be77dad82489c1468bbb14312aab129Affected
  • a0ab5abced550ddeefddb06055ed60779a54eb79 to before 158242b56bf465a73e1edeac0fe828a8acad4499Affected
  • a0ab5abced550ddeefddb06055ed60779a54eb79 to before aed709355fd05ef747e1af24a1d5d78cd7feb81eAffected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 6.1.132 through 6.1.*Not affected
  • 6.6.84 through 6.6.*Not affected
  • 6.12.20 through 6.12.*Not affected
  • 6.13.8 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.