mshv: Fix error handling in mshv_region_pin
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.18.57, 6.19.12
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 621191d709b14882270dfd8ea5d7d6cdfebe2c35 · fixed in d14847cb7f65d419e43451d416a1f50c09a5f3be; From 621191d709b14882270dfd8ea5d7d6cdfebe2c35 · fixed in a7d149152bc5a9119854331c57be35ad31fdf5cc; From 621191d709b14882270dfd8ea5d7d6cdfebe2c35 · fixed in c0e296f257671ba10249630fe58026f29e4804d9
- Linux Linux
6.15
- KernelLinux
From 6.15.0 · fixed in 6.18.57; From 6.19.0 · fixed in 6.19.12