patch 'ethdev: prevent overflow in indirect flow action conversion' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:04:22 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/475c856bdd74ef6bb176ae2cfde5048b71ee4ef8
Thanks.
Kevin
---
>From 475c856bdd74ef6bb176ae2cfde5048b71ee4ef8 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 a5f3e2bce0..9342663141 100644
--- a/lib/ethdev/rte_flow.c
+++ b/lib/ethdev/rte_flow.c
@@ -988,5 +988,5 @@ rte_flow_conv_actions(struct rte_flow_action *dst,
* of duplicating the pointer memory.
*/
- if (size)
+ if (size >= (i + 1) * sizeof(*dst))
dst[i].conf = src->conf;
} else if (src->conf) {
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:48.690161087 +0000
+++ 0336-ethdev-prevent-overflow-in-indirect-flow-action-conv.patch 2026-12-03 12:52:39.253940109 +0000
@@ -1 +1 @@
-From 6fa8203453a53f274e50848b05149c0d09c24169 Mon Sep 17 00:00:00 2001
+From 475c856bdd74ef6bb176ae2cfde5048b71ee4ef8 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 a5f3e2bce0..9342663141 100644
@@ -28 +29 @@
-@@ -1055,5 +1055,5 @@ rte_flow_conv_actions(struct rte_flow_action *dst,
+@@ -988,5 +988,5 @@ rte_flow_conv_actions(struct rte_flow_action *dst,
More information about the stable
mailing list