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.
Metrics
Affected Vendors & Products
| Source | ID | Title | 
|---|---|---|
|  Debian DLA | DLA-4193-1 | linux-6.1 security update | 
|  Debian DSA | DSA-5900-1 | linux security update | 
|  EUVD | EUVD-2025-9342 | 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. | 
|  Ubuntu USN | USN-7605-1 | Linux kernel vulnerabilities | 
|  Ubuntu USN | USN-7605-2 | Linux kernel (Low Latency) vulnerabilities | 
|  Ubuntu USN | USN-7606-1 | Linux kernel (OEM) vulnerabilities | 
|  Ubuntu USN | USN-7628-1 | Linux kernel (Azure) vulnerabilities | 
|  Ubuntu USN | USN-7764-1 | Linux kernel vulnerabilities | 
|  Ubuntu USN | USN-7764-2 | Linux kernel (HWE) vulnerabilities | 
|  Ubuntu USN | USN-7765-1 | Linux kernel (NVIDIA) vulnerabilities | 
|  Ubuntu USN | USN-7766-1 | Linux kernel vulnerabilities | 
|  Ubuntu USN | USN-7767-1 | Linux kernel (Real-time) vulnerabilities | 
|  Ubuntu USN | USN-7767-2 | Linux kernel (Real-time) vulnerabilities | 
|  Ubuntu USN | USN-7779-1 | Linux kernel (IBM) vulnerabilities | 
|  Ubuntu USN | USN-7790-1 | Linux kernel (Raspberry Pi) vulnerabilities | 
|  Ubuntu USN | USN-7800-1 | Linux kernel (Raspberry Pi Real-time) vulnerabilities | 
|  Ubuntu USN | USN-7801-1 | Linux kernel (HWE) vulnerabilities | 
|  Ubuntu USN | USN-7802-1 | Linux kernel (Azure) vulnerabilities | 
|  Ubuntu USN | USN-7801-2 | Linux kernel (Oracle) vulnerabilities | 
|  Ubuntu USN | USN-7809-1 | Linux kernel (Azure, N-Series) vulnerabilities | 
|  Ubuntu USN | USN-7801-3 | Linux kernel (Oracle) vulnerabilities | 
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
Thu, 30 Oct 2025 21:15:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| First Time appeared | Linux Linux linux Kernel | |
| CPEs | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:6.14:rc5:*:*:*:*:*:* cpe:2.3:o:linux:linux_kernel:6.14:rc6:*:*:*:*:*:* | |
| Vendors & Products | Linux Linux linux Kernel | |
| Metrics | cvssV3_1 
 | cvssV3_1 
 | 
Fri, 23 May 2025 02:45:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| Weaknesses | CWE-401 | |
| Metrics | cvssV3_1 
 | cvssV3_1 
 | 
Wed, 02 Apr 2025 14:00:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| References |  | |
| Metrics | threat_severity 
 | cvssV3_1 
 
 | 
Tue, 01 Apr 2025 16:00:00 +0000
| Type | Values Removed | Values Added | 
|---|---|---|
| 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. | |
| Title | drm/hyperv: Fix address space leak when Hyper-V DRM device is removed | |
| References |  | 
 | 
 MITRE
                        MITRE
                    Status: PUBLISHED
Assigner: Linux
Published:
Updated: 2025-05-04T07:26:27.998Z
Reserved: 2024-12-29T08:45:45.798Z
Link: CVE-2025-21978
 Vulnrichment
                        Vulnrichment
                    No data.
 NVD
                        NVD
                    Status : Analyzed
Published: 2025-04-01T16:15:29.183
Modified: 2025-10-30T21:10:00.357
Link: CVE-2025-21978
 Redhat
                        Redhat
                     OpenCVE Enrichment
                        OpenCVE Enrichment
                    No data.