patch 'common/cpt: use timing-safe digest comparison' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:01:19 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/192dcff61da3dbb58f0c1c0f90658976a2c37d69

Thanks.

Kevin

---
>From 192dcff61da3dbb58f0c1c0f90658976a2c37d69 Mon Sep 17 00:00:00 2001
From: Rupesh Chiluka <rchiluka at marvell.com>
Date: Mon, 17 Aug 2026 10:59:30 +0530
Subject: [PATCH] common/cpt: use timing-safe digest comparison

[ upstream commit fed2792d44b9425d2132b440805b8d5d7a1f906e ]

compl_auth_verify() compared the generated and received MAC with
memcmp(), which returns early on the first differing byte and leaks
the number of matching leading bytes through timing.

Use rte_memeq_timingsafe() for the verify comparison.

Bugzilla ID: 1773
Fixes: 89f1a8d6a057 ("crypto/octeontx: add burst dequeue")

Signed-off-by: Rupesh Chiluka <rchiluka at marvell.com>
---
 drivers/common/cpt/cpt_ucode.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/common/cpt/cpt_ucode.h b/drivers/common/cpt/cpt_ucode.h
index 636f93604e..a6ecbaf429 100644
--- a/drivers/common/cpt/cpt_ucode.h
+++ b/drivers/common/cpt/cpt_ucode.h
@@ -3355,8 +3355,8 @@ compl_auth_verify(struct rte_crypto_op *op,
 	}
 
-	if (memcmp(mac, gen_mac, mac_len))
-		op->status = RTE_CRYPTO_OP_STATUS_AUTH_FAILED;
-	else
+	if (rte_memeq_timingsafe(mac, gen_mac, mac_len))
 		op->status = RTE_CRYPTO_OP_STATUS_SUCCESS;
+	else
+		op->status = RTE_CRYPTO_OP_STATUS_AUTH_FAILED;
 }
 
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:43.617660421 +0000
+++ 0153-common-cpt-use-timing-safe-digest-comparison.patch	2026-12-03 12:52:39.139110863 +0000
@@ -1 +1 @@
-From fed2792d44b9425d2132b440805b8d5d7a1f906e Mon Sep 17 00:00:00 2001
+From 192dcff61da3dbb58f0c1c0f90658976a2c37d69 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit fed2792d44b9425d2132b440805b8d5d7a1f906e ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org



More information about the stable mailing list