mshv: Fix create memory region overlap check
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.17.136.18.26.19In the Linux kernel, the following vulnerability has been resolved:
mshv: Fix create memory region overlap check
The current check is incorrect; it only checks if the beginning or end of a region is within an existing region. This doesn't account for userspace specifying a region that begins before and ends after an existing region.
Change the logic to a range intersection check against gfns and uaddrs for each region.
Remove mshv_partition_region_by_uaddr() as it is no longer used.
From the CVE record · Linux
The mshv memory-region overlap check misses a new region that begins before and ends after an existing region. Local userspace can specify such a region when creating a memory region; the input does not describe any further impact or authentication requirement.
Engineers running the Linux kernel with mshv should check their kernel; affected versions are not specified.