CVE-2025-21978

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

MEDIUM
5.5
CVSS Score
Published: April 1, 2025 at 03:47 PM UTC
Updated: June 17, 2026 at 08:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.0 ≤ v < 6.1.1326.0 ≤ v < 6.12.206.0 ≤ v < 6.13.86.0 ≤ v < 6.146.0 ≤ v < 6.6.846.13 ≤ v < 6.13.86.2 ≤ v < 6.6.846.7 ≤ v < 6.12.206.06.14 rc16.14 rc26.14 rc36.14 rc46.14 rc56.14 rc6a0ab5abced550ddeefddb06055ed60779a54eb79
Vendor states this is fixed in 158242b56bf465a73e1edeac0fe828a8acad4499 (fixed)
Vendor states this is fixed in 24f1bbfb2be77dad82489c1468bbb14312aab129 (fixed)
Vendor states this is fixed in ad27b4a51495490b815580d9b935e8eee14d1a9c (fixed)
Vendor states this is fixed in aed709355fd05ef747e1af24a1d5d78cd7feb81e (fixed)
Vendor states this is fixed in c40cd24bfb9bfbb315c118ca14ebe6cf52e2dd1e (fixed)
Vendor states this is fixed in 6.0 (unaffected)
Vendor states this is fixed in 6.1.132 (unaffected)
Vendor states this is fixed in 6.12.20 (unaffected)
Vendor states this is fixed in 6.13.8 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.84 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/158242b56bf465a73e1edeac0fe828a8acad4499
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/24f1bbfb2be77dad82489c1468bbb14312aab129
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ad27b4a51495490b815580d9b935e8eee14d1a9c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/aed709355fd05ef747e1af24a1d5d78cd7feb81e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c40cd24bfb9bfbb315c118ca14ebe6cf52e2dd1e
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card