AZL-115597: CVE-2026-99723 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
vhost-vdpa: fix pinned page leak in vhostvdpapamap() error path
When pinuserpages() or vhostvdpamap() fails, vhostvdpapamap() is supposed to unpin the pages pinned after the last successfully mapped chunk, i.e. the range [mappfn, lastpfn]. The unpin is guarded by nchunks, but nchunks is reset to 0 every time a chunk is mapped from inside the current page list, so a failure after any such boundary leaves that pending range pinned forever. With physically scattered memory nearly every page list contains a boundary, so the leak happens on practically every failed IOTLB update.
The pending range is non-empty exactly when a page has been pinned, which lastpfn already tells us, so drop nchunks and test lastpfn.