Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-43045

mshv: Fix error handling in mshv_region_pin

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 621191d709b14882270dfd8ea5d7d6cdfebe2c35 to < d14847cb7f65d419e43451d416a1f50c09a5f3beaffected
  • 621191d709b14882270dfd8ea5d7d6cdfebe2c35 to < a7d149152bc5a9119854331c57be35ad31fdf5ccaffected
  • 621191d709b14882270dfd8ea5d7d6cdfebe2c35 to < c0e296f257671ba10249630fe58026f29e4804d9affected

Linux Linux

Default version status: affected

  • 6.15affected
  • 0 to < 6.15unaffected
  • 6.18.57 to ≤ 6.18.*unaffected
  • 6.19.12 to ≤ 6.19.*unaffected
  • 7.0 to ≤ *unaffected

References