A plain-language summary of this CVE is being written; the description below is the NVD's own text.
Description
In the Linux kernel, the following vulnerability has been resolved:
vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path
When pin_user_pages() or vhost_vdpa_map() fails, vhost_vdpa_pa_map() is supposed to unpin the pages pinned after the last successfully mapped chunk, i.e. the range [map_pfn, last_pfn]. 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 last_pfn already tells us, so drop nchunks and test last_pfn.
Affected products
The NVD has not attached product data to this record yet; the description names what is affected.
References
- git.kernel.org /stable/c/23d142e60e3551186a4237649dfbd808780fe574
- git.kernel.org /stable/c/42aa04c60c739a45bc2f7f4123ef3e8b8150a5e7
- git.kernel.org /stable/c/441039451a19e171a1d6376b8b16e1b90316d119
- git.kernel.org /stable/c/5b9af57dba47a1750be4831da1f1f34c99c50caa
- git.kernel.org /stable/c/77bd4305f34f65630e26a108ec98555d6aafce37
- git.kernel.org /stable/c/9e13e8eac79134fd45881c85cbea581045ff8ac1
- git.kernel.org /stable/c/fd1462c96bafe2cb14e88c837b270f8990b717b5
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning