vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fd1462c96bafe2cb14e88c837b270f8990b717b5, Kernel 5.10, Kernel 441039451a19e171a1d6376b8b16e1b90316d119 and 5 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=ad89653f79f1882d55d9df76c9b2b94f008c4e27 <fd1462c96bafe2cb14e88c837b270f8990b717b5, >=5.9.15 <5.10, >=ad89653f79f1882d55d9df76c9b2b94f008c4e27 <441039451a19e171a1d6376b8b16e1b90316d119, >=ad89653f79f1882d55d9df76c9b2b94f008c4e27 <5b9af57dba47a1750be4831da1f1f34c99c50caa, >=ad89653f79f1882d55d9df76c9b2b94f008c4e27 <77bd4305f34f65630e26a108ec98555d6aafce37, =0d3cf1602ef0aa0177c94bf94e27759f5502c818, =5.10 | fd1462c96bafe2cb14e88c837b270f8990b717b5, 5.10, 441039451a19e171a1d6376b8b16e1b90316d119, 5b9af57dba47a1750be4831da1f1f34c99c50caa, 77bd4305f34f65630e26a108ec98555d6aafce37 |
| linux-kernel: Kernel | >=5.9.15 <5.10, >=6.13.0 <6.18.64, >=6.19.0 <7.3.5, >=5.10.0 <6.12.118 | 5.10, 6.18.64, 7.3.5, 6.12.118 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket