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

Published Apr 1, 2025
·
Updated

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.

Affected Software

12 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=6.0<6.1.132
Linux Linux kernel>=6.2<6.6.84
Linux Linux kernel>=6.7<6.12.20
Linux Linux kernel>=6.13<6.13.8
Linux Linux kernel=6.14-rc1
Linux Linux kernel=6.14-rc2
Linux Linux kernel=6.14-rc3
Linux Linux kernel=6.14-rc4
Linux Linux kernel=6.14-rc5
Linux Linux kernel=6.14-rc6
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.12-17.2.15-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Add iounmap() calls in the Hyper-V DRM device removal path and the error path during device probing so the cacheable MMIO mapping is unmapped when the device is removed or probing fails.

Event History

Apr 1, 2025
CVE Published
via MITRE·03:47 PM
Data Sourced
via MITRE·03:47 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-21978?

CVE-2025-21978 has been classified with moderate severity due to its potential to leak memory when a Hyper-V DRM device is removed.

2

How do I fix CVE-2025-21978?

To fix CVE-2025-21978, update your Linux kernel to the latest stable version that includes the patch addressing this vulnerability.

3

What systems are affected by CVE-2025-21978?

CVE-2025-21978 affects systems running the Linux kernel when utilizing Hyper-V DRM devices.

4

What type of vulnerability is CVE-2025-21978?

CVE-2025-21978 is an address space leak vulnerability that occurs in the Linux kernel during the removal of Hyper-V DRM devices.

5

Has CVE-2025-21978 been mitigated in recent updates?

Yes, CVE-2025-21978 has been resolved in recent kernel updates that include specific fixes for memory management related to Hyper-V DRM devices.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203