<div><div style="font-size:inherit" dir="auto">Hi,</div><div style="font-size:inherit" dir="auto"><br style="font-size:inherit">Thank you for fixing and backporting the issue.<br style="font-size:inherit">I wanted to ask whether Bugzilla #1773 (timing-safe digest comparison in crypto/uadk) is planned to receive a CVE identifier or security advisory. Since this is a timing side-channel in cryptographic authentication verification, I was wondering whether it would be tracked as a CVE.</div><div style="font-size:inherit" dir="auto"><br style="font-size:inherit">Thanks, </div><div style="font-size:inherit" dir="auto"><br></div><div style="font-size:inherit" dir="auto">Siraj Luthfi Ananda</div><br></div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, 30 Jul 2026 at 16.19 Kevin Traynor <<a href="mailto:ktraynor@redhat.com">ktraynor@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hi,<br>
<br>
FYI, your patch has been queued to stable release 25.11.3<br>
<br>
Note it hasn't been pushed to <a href="http://dpdk.org/browse/dpdk-stable" rel="noreferrer" target="_blank">http://dpdk.org/browse/dpdk-stable</a> yet.<br>
It will be pushed if I get no objections before 08/04/26. So please<br>
shout if anyone has objections.<br>
<br>
Also note that after the patch there's a diff of the upstream commit vs the<br>
patch applied to the branch. This will indicate if there was any rebasing<br>
needed to apply to the stable branch. If there were code changes for rebasing<br>
(ie: not only metadata diffs), please double check that the rebase was<br>
correctly done.<br>
<br>
Queued patches are on a temporary branch at:<br>
<a href="https://github.com/kevintraynor/dpdk-stable" rel="noreferrer" target="_blank">https://github.com/kevintraynor/dpdk-stable</a><br>
<br>
This queued commit can be viewed at:<br>
<a href="https://github.com/kevintraynor/dpdk-stable/commit/1248b5128c68aeac35878cdd41ae11396f3d4a4d" rel="noreferrer" target="_blank">https://github.com/kevintraynor/dpdk-stable/commit/1248b5128c68aeac35878cdd41ae11396f3d4a4d</a><br>
<br>
Thanks.<br>
<br>
Kevin<br>
<br>
---<br>
>From 1248b5128c68aeac35878cdd41ae11396f3d4a4d Mon Sep 17 00:00:00 2001<br>
From: Stephen Hemminger <<a href="mailto:stephen@networkplumber.org" target="_blank">stephen@networkplumber.org</a>><br>
Date: Mon, 29 Jun 2026 11:59:25 -0700<br>
Subject: [PATCH] crypto/uadk: use timing-safe digest comparison<br>
MIME-Version: 1.0<br>
Content-Type: text/plain; charset=UTF-8<br>
Content-Transfer-Encoding: 8bit<br>
<br>
[ upstream commit 8051903e5727a85897fd83f19a591bb3b743c5d4 ]<br>
<br>
Digest verification used memcmp() to compare the computed and<br>
expected MAC. memcmp() returns as soon as the first differing byte<br>
is found, so its run time depends on how many leading bytes match.<br>
An attacker submitting forged digests can use that timing signal to<br>
recover the correct value one byte at a time.<br>
<br>
Use rte_memeq_timingsafe(), whose run time depends only on the<br>
length, for the verify comparison.<br>
<br>
Bugzilla ID: 1773<br>
Fixes: aba5b230ca04 ("crypto/uadk: use async mode")<br>
<br>
Reported-by: Siraj Luthfi Ananda <<a href="mailto:sirajluthfi@gmail.com" target="_blank">sirajluthfi@gmail.com</a>><br>
Signed-off-by: Stephen Hemminger <<a href="mailto:stephen@networkplumber.org" target="_blank">stephen@networkplumber.org</a>><br>
Acked-by: Morten Brørup <<a href="mailto:mb@smartsharesystems.com" target="_blank">mb@smartsharesystems.com</a>><br>
---<br>
 .mailmap                              | 1 +<br>
 drivers/crypto/uadk/uadk_crypto_pmd.c | 4 ++--<br>
 2 files changed, 3 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/.mailmap b/.mailmap<br>
index bc54e58586..b84214567d 100644<br>
--- a/.mailmap<br>
+++ b/.mailmap<br>
@@ -1546,4 +1546,5 @@ Simon Kuenzer <<a href="mailto:simon.kuenzer@neclab.eu" target="_blank">simon.kuenzer@neclab.eu</a>><br>
 Sinan Kaya <<a href="mailto:okaya@kernel.org" target="_blank">okaya@kernel.org</a>><br>
 Siobhan Butler <<a href="mailto:siobhan.a.butler@intel.com" target="_blank">siobhan.a.butler@intel.com</a>><br>
+Siraj Luthfi Ananda <<a href="mailto:sirajluthfi@gmail.com" target="_blank">sirajluthfi@gmail.com</a>><br>
 Sirshak Das <<a href="mailto:sirshak.das@arm.com" target="_blank">sirshak.das@arm.com</a>><br>
 Sivaprasad Tummala <<a href="mailto:sivaprasad.tummala@amd.com" target="_blank">sivaprasad.tummala@amd.com</a>> <<a href="mailto:sivaprasad.tummala@intel.com" target="_blank">sivaprasad.tummala@intel.com</a>><br>
diff --git a/drivers/crypto/uadk/uadk_crypto_pmd.c b/drivers/crypto/uadk/uadk_crypto_pmd.c<br>
index 3c4e83e56f..221ad546da 100644<br>
--- a/drivers/crypto/uadk/uadk_crypto_pmd.c<br>
+++ b/drivers/crypto/uadk/uadk_crypto_pmd.c<br>
@@ -1112,6 +1112,6 @@ uadk_crypto_dequeue_burst(void *queue_pair, struct rte_crypto_op **ops,<br>
                        uint8_t *dst = qp->temp_digest[i % BURST_MAX];<br>
<br>
-                       if (memcmp(dst, op->sym->auth.digest.data,<br>
-                                  sess->auth.digest_length) != 0)<br>
+                       if (!rte_memeq_timingsafe(dst, op->sym->auth.digest.data,<br>
+                                                 sess->auth.digest_length))<br>
                                op->status = RTE_CRYPTO_OP_STATUS_AUTH_FAILED;<br>
                }<br>
-- <br>
2.55.0<br>
<br>
---<br>
  Diff of the applied patch vs upstream commit (please double-check if non-empty:<br>
---<br>
--- -   2026-07-30 10:16:03.233113859 +0100<br>
+++ 0061-crypto-uadk-use-timing-safe-digest-comparison.patch    2026-07-30 10:16:01.491971496 +0100<br>
@@ -1 +1 @@<br>
-From 8051903e5727a85897fd83f19a591bb3b743c5d4 Mon Sep 17 00:00:00 2001<br>
+From 1248b5128c68aeac35878cdd41ae11396f3d4a4d Mon Sep 17 00:00:00 2001<br>
@@ -8,0 +9,2 @@<br>
+[ upstream commit 8051903e5727a85897fd83f19a591bb3b743c5d4 ]<br>
+<br>
@@ -20 +21,0 @@<br>
-Cc: <a href="mailto:stable@dpdk.org" target="_blank">stable@dpdk.org</a><br>
@@ -31 +32 @@<br>
-index 0e57de0afe..e85a38c560 100644<br>
+index bc54e58586..b84214567d 100644<br>
@@ -34 +35 @@<br>
-@@ -1565,4 +1565,5 @@ Simon Kuenzer <<a href="mailto:simon.kuenzer@neclab.eu" target="_blank">simon.kuenzer@neclab.eu</a>><br>
+@@ -1546,4 +1546,5 @@ Simon Kuenzer <<a href="mailto:simon.kuenzer@neclab.eu" target="_blank">simon.kuenzer@neclab.eu</a>><br>
<br>
</blockquote></div></div>