CVE-2026-99723: vhost-vdpa: fix pinned page leak in vhost_vdpa_pa_map() error path
From: Greg Kroah-Hartman <[email protected]>
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.
The Linux kernel CVE team has assigned CVE-2026-99723 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit ad89653f79f1882d55d9df76c9b2b94f008c4e27 and fixed in 6.12.118 with commit 441039451a19e171a1d6376b8b16e1b90316d119 Issue introduced in 5.10 with commit ad89653f79f1882d55d9df76c9b2b94f008c4e27 and fixed in 6.18.64 with commit 77bd4305f34f65630e26a108ec98555d6aafce37 Issue introduced in 5.10 with commit ad89653f79f1882d55d9df76c9b2b94f008c4e27 and fixed in 7.3.5 with commit 5b9af57dba47a1750be4831da1f1f34c99c50caa Issue introduced in 5.10 with commit ad89653f79f1882d55d9df76c9b2b94f008c4e27 and fixed in 7.4-rc2 with commit fd1462c96bafe2cb14e88c837b270f8990b717b5 Issue introduced in 5.9.15 with commit 0d3cf1602ef0aa0177c94bf94e27759f5502c818
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99723
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/vhost/vdpa.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/441039451a19e171a1d6376b8b16e1b90316d119 https://git.kernel.org/stable/c/77bd4305f34f65630e26a108ec98555d6aafce37 https://git.kernel.org/stable/c/5b9af57dba47a1750be4831da1f1f34c99c50caa https://git.kernel.org/stable/c/fd1462c96bafe2cb14e88c837b270f8990b717b5