mshv: Fix error handling in mshv_region_pin
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.19.12, Kernel c0e296f257671ba10249630fe58026f29e4804d9, Kernel d14847cb7f65d419e43451d416a1f50c09a5f3be and 2 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.15 <6.19.12, =7.0, >=621191d709b14882270dfd8ea5d7d6cdfebe2c35 <c0e296f257671ba10249630fe58026f29e4804d9, >=621191d709b14882270dfd8ea5d7d6cdfebe2c35 <d14847cb7f65d419e43451d416a1f50c09a5f3be, =6.15, >=621191d709b14882270dfd8ea5d7d6cdfebe2c35 <a7d149152bc5a9119854331c57be35ad31fdf5cc | 6.19.12, c0e296f257671ba10249630fe58026f29e4804d9, d14847cb7f65d419e43451d416a1f50c09a5f3be, a7d149152bc5a9119854331c57be35ad31fdf5cc |
| linux-kernel: Kernel | >=6.15.0 <6.18.57, >=6.19.0 <6.19.12 | 6.18.57, 6.19.12 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket