patch 'vhost: fix inflight descriptor table overflow' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:01:37 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/7871fe194120344a1d51ac4e2c1603da8dcbf917

Thanks.

Kevin

---
>From 7871fe194120344a1d51ac4e2c1603da8dcbf917 Mon Sep 17 00:00:00 2001
From: Maxime Coquelin <maxime.coquelin at redhat.com>
Date: Mon, 14 Sep 2026 13:04:50 +0200
Subject: [PATCH] vhost: fix inflight descriptor table overflow

[ upstream commit 7458ddf82bb42b141fee88c25508ad85b5198ba8 ]

Add bounds checking against inflight table size in split and packed
ring inflight descriptor APIs. The inflight table is sized from
queue_size received in VHOST_USER_SET_INFLIGHT_FD, but the guest can
later resize the virtqueue larger via SET_VRING_NUM. Existing checks
only validated against vq->size, not the inflight table's desc_num.

A malicious guest could desynchronize these sizes and publish avail
entries with head indices valid for the enlarged virtqueue but out
of bounds for the inflight descriptor table, causing heap corruption.

CVE-2026-86565
Bugzilla ID: 2008

Reported-by: Jia Jia <physicalmtea 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 5abd689e00..e362a639ed 100644
--- a/.mailmap
+++ b/.mailmap
@@ -747,4 +747,5 @@ Jesse Brandeburg <jesse.brandeburg at intel.com>
 Jesse Bruni <jesse.bruni at intel.com>
 Jia He <justin.he at arm.com> <jia.he at hxt-semitech.com>
+Jia Jia <physicalmtea at gmail.com>
 Jia Yu <jyu at vmware.com>
 Jian Wang <jianwang at trustnetic.com>
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:44.108761125 +0000
+++ 0171-vhost-fix-inflight-descriptor-table-overflow.patch	2026-12-03 12:52:39.145567514 +0000
@@ -1 +1 @@
-From 7458ddf82bb42b141fee88c25508ad85b5198ba8 Mon Sep 17 00:00:00 2001
+From 7871fe194120344a1d51ac4e2c1603da8dcbf917 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 7458ddf82bb42b141fee88c25508ad85b5198ba8 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -24,3 +25,2 @@
- .mailmap          |  1 +
- lib/vhost/vhost.c | 18 ++++++++++++++++++
- 2 files changed, 19 insertions(+)
+ .mailmap | 1 +
+ 1 file changed, 1 insertion(+)
@@ -29 +29 @@
-index 63282765fd..76b0648361 100644
+index 5abd689e00..e362a639ed 100644
@@ -32 +32 @@
-@@ -753,4 +753,5 @@ Jesse Brandeburg <jesse.brandeburg at intel.com>
+@@ -747,4 +747,5 @@ Jesse Brandeburg <jesse.brandeburg at intel.com>
@@ -38,51 +37,0 @@
-diff --git a/lib/vhost/vhost.c b/lib/vhost/vhost.c
-index 2d694d586e..918e50ed43 100644
---- a/lib/vhost/vhost.c
-+++ b/lib/vhost/vhost.c
-@@ -1150,4 +1150,7 @@ rte_vhost_set_inflight_desc_split(int vid, uint16_t vring_idx,
- 		return -1;
- 
-+	if (unlikely(idx >= vq->inflight_split->desc_num))
-+		return -1;
-+
- 	vq->inflight_split->desc[idx].counter = vq->global_counter++;
- 	vq->inflight_split->desc[idx].inflight = 1;
-@@ -1197,4 +1200,7 @@ rte_vhost_set_inflight_desc_packed(int vid, uint16_t vring_idx,
- 		return -1;
- 
-+	if (unlikely(old_free_head >= inflight_info->desc_num))
-+		return -1;
-+
- 	free_head = old_free_head;
- 
-@@ -1256,4 +1262,7 @@ rte_vhost_clr_inflight_desc_split(int vid, uint16_t vring_idx,
- 		return -1;
- 
-+	if (unlikely(idx >= vq->inflight_split->desc_num))
-+		return -1;
-+
- 	rte_atomic_thread_fence(rte_memory_order_seq_cst);
- 
-@@ -1300,4 +1309,7 @@ rte_vhost_clr_inflight_desc_packed(int vid, uint16_t vring_idx,
- 		return -1;
- 
-+	if (unlikely(head >= inflight_info->desc_num))
-+		return -1;
-+
- 	rte_atomic_thread_fence(rte_memory_order_seq_cst);
- 
-@@ -1384,8 +1396,14 @@ rte_vhost_set_last_inflight_io_packed(int vid, uint16_t vring_idx,
- 		return -1;
- 
-+	if (unlikely(head >= inflight_info->desc_num))
-+		return -1;
-+
- 	last = inflight_info->desc[head].last;
- 	if (unlikely(last >= vq->size))
- 		return -1;
- 
-+	if (unlikely(last >= inflight_info->desc_num))
-+		return -1;
-+
- 	inflight_info->desc[last].next = inflight_info->free_head;
- 	inflight_info->free_head = head;



More information about the stable mailing list