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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-04-03T15:15:18.061Z
- Modified: 2026-08-05T12:21:43.430Z
- Weaknesses: CWE-416
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 6.19.1 before 6.19.10; 6.19; 7.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/34861bdc0c0196b6c2dd48f7454029407704ff6e> (patch)
- <https://git.kernel.org/stable/c/6922db250422a0dfee34de322f86b7a73d713d33> (patch)

## Sources

- CVE List: [CVE-2026-23432](https://www.cve.org/CVERecord?id=CVE-2026-23432), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-23432](https://nvd.nist.gov/vuln/detail/CVE-2026-23432), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-23432 · Whole record: https://cve.day/CVE-2026-23432.json · Rebuilt by cve.day 2026-11-25T22:59:17.872Z
