CVE-2026-23432
published high CVSS 3.1 · 7.8mshv: Fix use-after-free in mshv_map_user_memory error path
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb9a66cd5ccbb9fade15d0e427e19470d8ad35b75 to < 34861bdc0c0196b6c2dd48f7454029407704ff6e · b9a66cd5ccbb9fade15d0e427e19470d8ad35b75 to < 6922db250422a0dfee34de322f86b7a73d713d33 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.19 (affected) · 0 to < 6.19 (unaffected · semver) · 6.19.10 through 6.19.* (unaffected · semver) · 7.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable path is reached through local `/dev/mshv` and partition-file ioctls, specifically `MSHV_SET_GUEST_MEMORY`, not via network or adjacent protocols. AC:L - The attacker controls the memory-region parameters and can subsequently unmap the userspace range to fire the stale MMU notifier. No attacker-uncontrolled race or special victim state is required. PR:L - The attacker needs local access to the mshv device or an already-created partition fd, but the vulnerable ioctl itself has no `capable()` check. In a reasonable VMM deployment where that fd/device is granted to a service process, this is Low rather than High. UI:N - After obtaining the local mshv interface, the attacker can issue the ioctl and unmap memory without requiring any separate user action. S:U - The bug corrupts kernel memory through a kernel driver interface and impacts the same kernel security authority. This is not a guest-to-host escape path from inside a VM. C:H - This is a use-after-free of a registered MMU interval notifier embedded in `struct mshv_mem_region`. Reuse of the freed vmalloc object can plausibly expose kernel memory or support read primitives. I:H - The stale notifier callback dereferences and writes through fields of freed attacker-reclaimable kernel memory, including notifier sequence and region state. As a kernel UAF, it is plausibly exploitable for memory corruption or control-flow impact. A:H - The upstream fix explicitly notes that later userspace unmapping can fire the notifier on freed memory and cause a kernel panic. A local attacker can trigger this repeatedly for host denial of service.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b9a66cd5ccbb9fade15d0e427e19470d8ad35b75 to < 34861bdc0c0196b6c2dd48f7454029407704ff6e (affected · git)b9a66cd5ccbb9fade15d0e427e19470d8ad35b75 to < 6922db250422a0dfee34de322f86b7a73d713d33 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.19 (affected)0 to < 6.19 (unaffected · semver)6.19.10 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
mshv: Fix use-after-free in mshv_map_user_memory error path
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9fdc0d009f9fa53d2cbe72775409e536ece5dca063a4f9f0b733b13de5beddea
- Ingested
- 23 Sep 2026, 09:06:03 UTC
- Source record
- Official CVE record