Skip to contentSkip to conversation

CVE-2023-54215: virtio-vdpa: Fix cpumask memory leak in virtio_vdpa_find_vqs()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 30, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

virtio-vdpa: Fix cpumask memory leak in virtio_vdpa_find_vqs()

Free the cpumask allocated by create_affinity_masks() before returning from the function.

The Linux kernel CVE team has assigned CVE-2023-54215 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.4 with commit 3dad56823b5332ffdbe1867b2d7b50fbacea124a and fixed in 6.4.12 with commit fa450621efab58121fe8e57f7a7b80fee6e0bae1
	Issue introduced in 6.4 with commit 3dad56823b5332ffdbe1867b2d7b50fbacea124a and fixed in 6.5 with commit df9557046440b0a62250fee3169a8f6a139f55a6

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-2023-54215

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/virtio/virtio_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/fa450621efab58121fe8e57f7a7b80fee6e0bae1
	https://git.kernel.org/stable/c/df9557046440b0a62250fee3169a8f6a139f55a6