In the Linux kernel, the following vulnerability has been resolved:xen/privcmd: fix error exit of privcmd_ioctl_dm_op()The error exit of privcmd_ioctl_dm_op() is calling unlock_pages()potentially with pages being NULL, leading to a NULL dereference.Additionally lock_pages() doesn't check for pin_user_pages_fast()having been completely successful, resulting in potentially notlocking all pages into memory. This could result in sporadic failureswhen using the related memory in user mode.Fix all of that by calling unlock_pages() always with the real numberof pinned pages, which will be zero in case pages being NULL, and bychecking the number of pages pinned by pin_user_pages_fast() matchingthe expected number of pages.
No PoCs from references.
- https://github.com/ARPSyndicate/cve-scores