CVE-2025-21978
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.22% (higher than 12% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 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.14NVD

Classification

CWE-401

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/hyperv: Se soluciona la fuga de espacio de direcciones al eliminar un dispositivo DRM de Hyper-V. Al sondear un dispositivo DRM de Hyper-V, el controlador asigna espacio MMIO para la VRAM y lo asigna como caché. Si se elimina el dispositivo, o si se encuentra en la ruta de error para el sondeo del dispositivo, se libera el espacio MMIO, pero no se desasigna. En consecuencia, se filtra el espacio de direcciones del kernel para la asignación. Para solucionar esto, agregue llamadas a iounmap() en la ruta de eliminación del dispositivo y en la ruta de error durante el sondeo del dispositivo.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-21978 changed 2026-11-05CVE Terms of Use
NVDCVE-2025-21978 changed 2026-11-05Public domain