Skip to contentSkip to conversation

CVE-2026-45890: xen-netback: reject zero-queue configuration from guest

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 27

lore
Share & tools
lore
#0 lore raw

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

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

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

xen-netback: reject zero-queue configuration from guest

A malicious or buggy Xen guest can write "0" to the xenbus key "multi-queue-num-queues". The connect() function in the backend only validates the upper bound (requested_num_queues > xenvif_max_queues) but not zero, allowing requested_num_queues=0 to reach vzalloc(array_size(0, sizeof(struct xenvif_queue))), which triggers WARN_ON_ONCE(!size) in __vmalloc_node_range().

On systems with panic_on_warn=1, this allows a guest-to-host denial of service.

The Xen network interface specification requires
the queue count to be "greater than zero".

Add a zero check to match the validation already present in xen-blkback, which has included this
guard since its multi-queue support was added.

The Linux kernel CVE team has assigned CVE-2026-45890 to this issue.

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

	Issue introduced in 3.16 with commit 8d3d53b3e43363e79ab9a9ecc149b06c1314b25d and fixed in 5.10.252 with commit 2993e0f904c45f8af12917344bb1cac7ccd05a60
	Issue introduced in 3.16 with commit 8d3d53b3e43363e79ab9a9ecc149b06c1314b25d and fixed in 5.15.202 with commit 787bfa423228c4b02ba3368128f625d579085353
	Issue introduced in 3.16 with commit 8d3d53b3e43363e79ab9a9ecc149b06c1314b25d and fixed in 6.1.165 with commit ce66d6786de45b7ed9cbbdc0988054bf09e58f54
	Issue introduced in 3.16 with commit 8d3d53b3e43363e79ab9a9ecc149b06c1314b25d and fixed in 6.6.128 with commit 88b0fced1bbbfdb356a007592604008ffc93a6a1
	Issue introduced in 3.16 with commit 8d3d53b3e43363e79ab9a9ecc149b06c1314b25d and fixed in 6.12.75 with commit ec4859ac5c933e3315543a61adc1ca4358006a41
	Issue introduced in 3.16 with commit 8d3d53b3e43363e79ab9a9ecc149b06c1314b25d and fixed in 6.18.14 with commit 654780dee9eae419e1648ea58462c4efe54518fa
	Issue introduced in 3.16 with commit 8d3d53b3e43363e79ab9a9ecc149b06c1314b25d and fixed in 6.19.4 with commit d99f69ddc70fd9f4b8148add62209a1a8eb5c615
	Issue introduced in 3.16 with commit 8d3d53b3e43363e79ab9a9ecc149b06c1314b25d and fixed in 7.0 with commit 6d1dc8014334c7fb25719999bca84d811e60a559

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-45890

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/net/xen-netback/xenbus.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/2993e0f904c45f8af12917344bb1cac7ccd05a60
	https://git.kernel.org/stable/c/787bfa423228c4b02ba3368128f625d579085353
	https://git.kernel.org/stable/c/ce66d6786de45b7ed9cbbdc0988054bf09e58f54
	https://git.kernel.org/stable/c/88b0fced1bbbfdb356a007592604008ffc93a6a1
	https://git.kernel.org/stable/c/ec4859ac5c933e3315543a61adc1ca4358006a41
	https://git.kernel.org/stable/c/654780dee9eae419e1648ea58462c4efe54518fa
	https://git.kernel.org/stable/c/d99f69ddc70fd9f4b8148add62209a1a8eb5c615
	https://git.kernel.org/stable/c/6d1dc8014334c7fb25719999bca84d811e60a559