Linux Kernel Memory Corruption Vulnerability in mshv_region_pin Error Handling

Vulnerability

A vulnerability in the Linux kernel's error handling for the 'mshv_region_pin' function can lead to memory corruption. The issue arises because 'pin_user_pages_fast()' may return a short pin count, indicating that not all requested pages were pinned, yet this is incorrectly treated as a success. Consequently, partially pinned regions can be used, causing memory corruption. Additionally, if an error occurs mid-loop, the function fails to properly account for already pinned pages before invalidating the region, leading to a page reference leak. This vulnerability affects the Linux kernel stable tree.

Impact

Improper error handling in the 'mshv_region_pin' function can cause memory corruption and a page reference leak.

Remediation

Users can apply the patch available in the Linux kernel stable tree to address this vulnerability.

Added: May 1, 2026, 3:32 PM
Updated: May 1, 2026, 3:32 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
1.3
exploitability
4.0
remediation
7.7
relevance
7.2
threat
3.2
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.