patch 'mempool/dpaa: fix use-after-free during pool cleanup' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 14:03:53 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/941db96dc67e179a5fa8df9888c8556e783ac3df
Thanks.
Kevin
---
>From 941db96dc67e179a5fa8df9888c8556e783ac3df Mon Sep 17 00:00:00 2001
From: Hemant Agrawal <hemant.agrawal at nxp.com>
Date: Fri, 16 Oct 2026 16:49:40 +0530
Subject: [PATCH] mempool/dpaa: fix use-after-free during pool cleanup
[ upstream commit 67cbab0ab30e259665373d0cc1682aa0ecd836cd ]
dpaa_mbuf_free_pool() freed the pool private data and then wrote to it:
rte_free(mp->pool_data);
bp_info->bp = NULL;
bp_info is DPAA_MEMPOOL_TO_POOL_INFO(mp), which is mp->pool_data, so
both refer to the same allocation. Clearing bp_info->bp after the
rte_free() writes into freed memory.
Clear the field before releasing the allocation, and free bp_info
directly rather than the alias.
Fixes: 376fb49ecfca ("net/dpaa: prevent multiple mempool config")
Signed-off-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
drivers/mempool/dpaa/dpaa_mempool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mempool/dpaa/dpaa_mempool.c b/drivers/mempool/dpaa/dpaa_mempool.c
index 2f9395b3f4..6250226c4e 100644
--- a/drivers/mempool/dpaa/dpaa_mempool.c
+++ b/drivers/mempool/dpaa/dpaa_mempool.c
@@ -158,6 +158,6 @@ dpaa_mbuf_free_pool(struct rte_mempool *mp)
DPAA_MEMPOOL_INFO("BMAN pool freed for bpid =%d",
bp_info->bpid);
- rte_free(mp->pool_data);
bp_info->bp = NULL;
+ rte_free(bp_info);
mp->pool_data = NULL;
}
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:47.904903237 +0000
+++ 0307-mempool-dpaa-fix-use-after-free-during-pool-cleanup.patch 2026-12-03 12:52:39.243293594 +0000
@@ -1 +1 @@
-From 67cbab0ab30e259665373d0cc1682aa0ecd836cd Mon Sep 17 00:00:00 2001
+From 941db96dc67e179a5fa8df9888c8556e783ac3df Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 67cbab0ab30e259665373d0cc1682aa0ecd836cd ]
+
@@ -19 +20,0 @@
-Cc: stable at dpdk.org
@@ -27 +28 @@
-index 2f8555a026..94aea5e77c 100644
+index 2f9395b3f4..6250226c4e 100644
@@ -30 +31 @@
-@@ -144,6 +144,6 @@ dpaa_mbuf_free_pool(struct rte_mempool *mp)
+@@ -158,6 +158,6 @@ dpaa_mbuf_free_pool(struct rte_mempool *mp)
More information about the stable
mailing list