patch 'ethdev: prevent overflow in indirect flow action conversion' has been queued to stable release 24.11.9

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Nov 5 17:43:08 CET 2026


Hi,

FYI, your patch has been queued to stable release 24.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/07/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/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/7a642341b80b44889197c8e3a5e47bd46269240f

Thanks.

Luca Boccassi

---
>From 7a642341b80b44889197c8e3a5e47bd46269240f Mon Sep 17 00:00:00 2001
From: Anatoly Burakov <anatoly.burakov at intel.com>
Date: Tue, 27 Oct 2026 09:50:11 +0000
Subject: [PATCH] ethdev: prevent overflow in indirect flow action conversion

[ upstream commit 6fa8203453a53f274e50848b05149c0d09c24169 ]

The second pass of rte_flow_conv_actions() copies indirect action
handles whenever the destination size is nonzero, even if the buffer
does not cover the corresponding action entry. This writes beyond
the caller's buffer when an indirect action follows the last entry
that fits. The same applies to deprecated SHARED actions now that
their handles are preserved in the same branch.

Require the destination size to cover the full action entry before
writing its handle.

Fixes: fb131e295ea8 ("ethdev: fix indirect action conversion")

Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
 lib/ethdev/rte_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ethdev/rte_flow.c b/lib/ethdev/rte_flow.c
index eee76558625..2bcb1d98ea1 100644
--- a/lib/ethdev/rte_flow.c
+++ b/lib/ethdev/rte_flow.c
@@ -975,7 +975,7 @@ rte_flow_conv_actions(struct rte_flow_action *dst,
 			 * handler. Copy the action handle directly instead
 			 * of duplicating the pointer memory.
 			 */
-			if (size)
+			if (size >= (i + 1) * sizeof(*dst))
 				dst[i].conf = src->conf;
 		} else if (src->conf) {
 			off = RTE_ALIGN_CEIL(off, sizeof(double));
-- 
2.47.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-11-05 16:42:48.782571004 +0000
+++ 0101-ethdev-prevent-overflow-in-indirect-flow-action-conv.patch	2026-11-05 16:42:45.041064373 +0000
@@ -1 +1 @@
-From 6fa8203453a53f274e50848b05149c0d09c24169 Mon Sep 17 00:00:00 2001
+From 7a642341b80b44889197c8e3a5e47bd46269240f Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 6fa8203453a53f274e50848b05149c0d09c24169 ]
+
@@ -17 +18,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index e29bcefab0..cee0acbd56 100644
+index eee76558625..2bcb1d98ea1 100644
@@ -28 +29 @@
-@@ -1054,7 +1054,7 @@ rte_flow_conv_actions(struct rte_flow_action *dst,
+@@ -975,7 +975,7 @@ rte_flow_conv_actions(struct rte_flow_action *dst,


More information about the stable mailing list