patch 'vhost: fix double-fetch vulnerability in control queue' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:01:35 CET 2026


Hi,

FYI, your patch has been queued to stable release 25.11.5

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/26. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/a897c453b23d4330b4fa467e850c42af244a06d0

Thanks.

Kevin

---
>From a897c453b23d4330b4fa467e850c42af244a06d0 Mon Sep 17 00:00:00 2001
From: Maxime Coquelin <maxime.coquelin at redhat.com>
Date: Fri, 11 Sep 2026 14:42:42 +0200
Subject: [PATCH] vhost: fix double-fetch vulnerability in control queue

[ upstream commit 496a28b507d56b592477452074e1c7fa73dbcf6b ]

Add bounds checking to prevent heap buffer overflow in
virtio_net_ctrl_pop(). The descriptor length is read twice from
guest-controlled shared memory - once to calculate allocation size
and once during memcpy. A malicious guest could modify the length
between reads to overflow the allocated buffer.

Track cumulative bytes copied and verify against allocated size
before each memcpy to ensure writes stay within bounds.

CVE-2026-86562
Bugzilla ID: 2003
Bugzilla ID: 2021

Reported-by: Ivar Al-Safawi <hemo40047 at gmail.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Acked-by: Kevin Traynor <ktraynor at redhat.com>
---
 .mailmap | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.mailmap b/.mailmap
index 8c36fae87f..676f7357ab 100644
--- a/.mailmap
+++ b/.mailmap
@@ -675,4 +675,5 @@ Ivan Ilchenko <ivan.ilchenko at oktetlabs.ru>
 Ivan Malov <ivan.malov at arknetworks.am> <ivan.malov at oktetlabs.ru>
 Ivan Nardi <nardi.ivan at gmail.com>
+Ivar Al-Safawi <hemo40047 at gmail.com>
 J.J. Martzki <mars14850 at gmail.com>
 Jacek Bułatek <jacekx.bulatek at intel.com>
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:44.051942796 +0000
+++ 0169-vhost-fix-double-fetch-vulnerability-in-control-queu.patch	2026-12-03 12:52:39.144911822 +0000
@@ -1 +1 @@
-From 496a28b507d56b592477452074e1c7fa73dbcf6b Mon Sep 17 00:00:00 2001
+From a897c453b23d4330b4fa467e850c42af244a06d0 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 496a28b507d56b592477452074e1c7fa73dbcf6b ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -24,3 +25,2 @@
- .mailmap                    | 1 +
- lib/vhost/virtio_net_ctrl.c | 8 ++++++++
- 2 files changed, 9 insertions(+)
+ .mailmap | 1 +
+ 1 file changed, 1 insertion(+)
@@ -29 +29 @@
-index 438b421e56..fe83ed1c56 100644
+index 8c36fae87f..676f7357ab 100644
@@ -32 +32 @@
-@@ -680,4 +680,5 @@ Ivan Ilchenko <ivan.ilchenko at oktetlabs.ru>
+@@ -675,4 +675,5 @@ Ivan Ilchenko <ivan.ilchenko at oktetlabs.ru>
@@ -38,24 +37,0 @@
-diff --git a/lib/vhost/virtio_net_ctrl.c b/lib/vhost/virtio_net_ctrl.c
-index b059fe1f02..1e5034457c 100644
---- a/lib/vhost/virtio_net_ctrl.c
-+++ b/lib/vhost/virtio_net_ctrl.c
-@@ -139,4 +139,6 @@ virtio_net_ctrl_pop(struct virtio_net *dev, struct vhost_virtqueue *cvq,
- 	ctrl_req = (uint8_t *)ctrl_elem->ctrl_req;
- 
-+	uint64_t copied = 0;
-+
- 	if (cvq->desc[desc_idx].flags & VRING_DESC_F_INDIRECT) {
- 		desc_len = cvq->desc[desc_idx].len;
-@@ -176,6 +178,12 @@ virtio_net_ctrl_pop(struct virtio_net *dev, struct vhost_virtqueue *cvq,
- 		}
- 
-+		if (copied + desc_len > data_len) {
-+			VHOST_CONFIG_LOG(dev->ifname, ERR, "Descriptor length overflow detected");
-+			goto free_err;
-+		}
-+
- 		memcpy(ctrl_req, (void *)(uintptr_t)desc_addr, desc_len);
- 		ctrl_req += desc_len;
-+		copied += desc_len;
- 
- 		if (!(descs[desc_idx].flags & VRING_DESC_F_NEXT))



More information about the stable mailing list