CVE-2026-23432
JSON

7.8high

mshv: Fix use-after-free in mshv_map_user_memory error path

Severity
7.8high CVSS:3.1 by Linux
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: mshv: Fix use-after-free in mshv_map_user_memory error path In the error path of mshv_map_user_memory(), calling vfree() directly on the region leaves the MMU notifier registered. When userspace later unmaps the memory, the notifier fires and accesses the freed region, causing a use-after-free and potential kernel panic. Replace vfree() with mshv_partition_put() to properly unregister the MMU notifier before freeing the region.

Affected

Product or packageVersionsReported by
Linux Linuxfrom b9a66cd5ccbb9fade15d0e427e19470d8ad35b75 before 34861bdc0c0196b6c2dd48f7454029407704ff6e, from b9a66cd5ccbb9fade15d0e427e19470d8ad35b75 before 6922db250422a0dfee34de322f86b7a73d713d33, 6.19
Not affected: before 6.19, from 6.19.10 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.19.1 before 6.19.10, 6.19, 7.0NVD

All scores

Linux7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: mshv: Fix use-after-free in mshv_map_user_memory error path In the error path of mshv_map_user_memory(), calling vfree() directly on the region leaves the MMU notifier registered. When userspace later unmaps the memory, the notifier fires and accesses the freed region, causing a use-after-free and potential kernel panic. Replace vfree() with mshv_partition_put() to properly unregister the MMU notifier before freeing the region.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mshv: Corrección de uso después de liberación en la ruta de error de mshv_map_user_memory En la ruta de error de mshv_map_user_memory(), llamar a vfree() directamente sobre la región deja el notificador de MMU registrado. Cuando el espacio de usuario (userspace) desmapea la memoria más tarde, el notificador se activa y accede a la región liberada, causando un uso después de liberación y un potencial pánico del kernel. Reemplace vfree() con mshv_partition_put() para anular correctamente el registro del notificador de MMU antes de liberar la región.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-23432 changed 2026-08-05CVE Terms of Use
NVDCVE-2026-23432 changed 2026-07-24Public domain