CVE-2026-23432

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

Published Apr 3, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A use‑after‑free flaw exists in the error path of the Linux kernel’s mshv_map_user_memory() function. When the function calls vfree() on a memory region that still has an MMU notifier registered, the notifier remains active. If userspace later unmaps the memory, the notifier fires and touches the freed memory, causing a use‑after‑free and potentially a kernel panic. The flaw can be triggered by malformed hypervisor memory mapping requests and leads to a denial of service by crashing the kernel.

Affected Systems

The vulnerability affects the Linux kernel in all versions that contain the buggy implementation of mshv_map_user_memory. The fix is present only after the patches released in the kernel commit referenced in the advisory. No specific version range is listed, so any kernel that has not yet been updated to include the fix remains potentially vulnerable.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity. The exploit probability is reported as less than 1 % according to EPSS, and the vulnerability is not listed in the CISA KEV catalog, indicating a low likelihood of widespread exploitation. However, once triggered, the impact is a complete system crash. The likely attack vector involves exploiting the hypervisor interface from userspace or privileged clients, requiring a successful call to mshv_map_user_memory with crafted parameters. Because the flaw resides in kernel memory management, no privilege escalation to arbitrary code execution is described; the primary risk is denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the commit fixing the use‑after‑free bug (see the referenced kernel commit URLs).
  • If an immediate kernel upgrade is not possible, consider disabling or limiting hypervisor memory mapping features until the fix is applied.
  • Monitor system logs for kernel panic incidents that may indicate an exploitation of the use‑after‑free flaw.

Generated by OpenCVE AI on April 28, 2026 at 21:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
CPEs cpe:2.3:o:linux:linux_kernel:6.19:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
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.
Title mshv: Fix use-after-free in mshv_map_user_memory error path
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-416

    Use After Free

  • CWE-763

    Release of Invalid Pointer or Reference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 5, 2026, 12:21 PM
Reserved
Jan 13, 2026, 3:37 PM
Status
Modified
Published
Apr 3, 2026, 4:16 PM
Modified
Jul 24, 2026, 9:10 PM
Severity
Public date
Apr 3, 2026, 12:00 AM