# CVE-2026-43045: mshv: Fix error handling in mshv_region_pin

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.12%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-05-01T14:15:40.976Z
- Modified: 2026-11-11T23:10:00.263Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

mshv: Fix error handling in mshv_region_pin

The current error handling has two issues:

First, pin_user_pages_fast() can return a short pin count (less than
requested but greater than zero) when it cannot pin all requested pages.
This is treated as success, leading to partially pinned regions being
used, which causes memory corruption.

Second, when an error occurs mid-loop, already pinned pages from the
current batch are not properly accounted for before calling
mshv_region_invalidate_pages(), causing a page reference leak.

Treat short pins as errors and fix partial batch accounting before
cleanup.

(As written by CVE List.)

## Affected

- Linux Linux: from 621191d709b14882270dfd8ea5d7d6cdfebe2c35 before d14847cb7f65d419e43451d416a1f50c09a5f3be; from 621191d709b14882270dfd8ea5d7d6cdfebe2c35 before a7d149152bc5a9119854331c57be35ad31fdf5cc; from 621191d709b14882270dfd8ea5d7d6cdfebe2c35 before c0e296f257671ba10249630fe58026f29e4804d9; 6.15 (not affected: before 6.15; from 6.18.57 up to 6.18.*; from 6.19.12 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.15 before 6.19.12; 7.0

## References

- <https://git.kernel.org/stable/c/d14847cb7f65d419e43451d416a1f50c09a5f3be>
- <https://git.kernel.org/stable/c/a7d149152bc5a9119854331c57be35ad31fdf5cc> (patch)
- <https://git.kernel.org/stable/c/c0e296f257671ba10249630fe58026f29e4804d9> (patch)

## Sources

- CVE List: [CVE-2026-43045](https://www.cve.org/CVERecord?id=CVE-2026-43045), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2026-43045](https://nvd.nist.gov/vuln/detail/CVE-2026-43045), Public domain, modified 2026-11-11

---

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