Skip to contentSkip to conversation

CVE-2026-23432: mshv: Fix use-after-free in mshv_map_user_memory error path

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 3

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-23432 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.19 with commit b9a66cd5ccbb9fade15d0e427e19470d8ad35b75 and fixed in 6.19.10 with commit 34861bdc0c0196b6c2dd48f7454029407704ff6e
	Issue introduced in 6.19 with commit b9a66cd5ccbb9fade15d0e427e19470d8ad35b75 and fixed in 7.0-rc5 with commit 6922db250422a0dfee34de322f86b7a73d713d33

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-23432

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/hv/mshv_root_main.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/34861bdc0c0196b6c2dd48f7454029407704ff6e
	https://git.kernel.org/stable/c/6922db250422a0dfee34de322f86b7a73d713d33