new file mode 100644
@@ -0,0 +1,33 @@
+From d08588aceee48fa45832cae5e32616abb33cb0fc Mon Sep 17 00:00:00 2001
+From: swlars <swlarsen@es.net>
+Date: Fri, 10 Jul 2026 18:01:19 +0000
+Subject: [PATCH] Fix for possible heap buffer overflow in iperf_auth.c.
+
+Thanks to Claude and Ada Logics -- found by Anthropic using agents to
+study the security of open-source projects, with Ada Logics validating and
+reporting -- for finding the issue and reporting it along with the fix.
+(ANT-2026-FXH14FHV, CVE-2026-101276)
+
+CVE: CVE-2026-101276
+
+Upstream-Status: Backport [https://github.com/esnet/iperf/commit/9bea2d9a49d54870e2405c209fa60bf134a8a1a1]
+
+Signed-off-by: Ghanshyam Banait <Ghanshyam.BanaitSanjay@windriver.com>
+---
+ src/iperf_auth.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/iperf_auth.c b/src/iperf_auth.c
+index 84083a12e..51d1a1b6e 100644
+--- a/src/iperf_auth.c
++++ b/src/iperf_auth.c
+@@ -339,7 +339,8 @@ int decrypt_rsa_message(const unsigned char *encryptedtext, const int encryptedt
+ output_buffer_len = RSA_size(rsa);
+ #endif
+ if (encryptedtext_len > output_buffer_len) {
+- fprintf(stderr, "Encrypted text of size %d truncated to %d; likely invalid input.\n", encryptedtext_len, output_buffer_len);
++ fprintf(stderr, "Encrypted text of size %d exceeds RSA modulus %d; rejecting.\n", encryptedtext_len, output_buffer_len);
++ goto errreturn; /* or: return 0; — never read more than output_buffer_len bytes */
+ }
+ rsa_buffer = OPENSSL_malloc(output_buffer_len);
+ // Note: +1 for NULL
@@ -15,6 +15,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=f2eb355b6d3b9d63b6b7a861cdc62440"
SRC_URI = "git://github.com/esnet/iperf.git;branch=master;protocol=https;tag=${PV} \
file://0002-Remove-pg-from-profile_CFLAGS.patch \
file://0001-configure.ac-check-for-CPP-prog.patch \
+ file://CVE-2026-101276.patch \
"
SRCREV = "d39cf41526626b4e5a130f115d931cd6cbdffc19"
iperf3 3.21 (esnet/iperf) contains a remote, unauthenticated heap use-after-free: the server's per-test watchdog server_timer_proc() frees streams without cancelling/joining their worker threads,so a blocked worker dereferences a freed iperf_stream; fixed in 3.22. Backport the patch to fix CVE-2026-101276 https://github.com/esnet/iperf/commit/9bea2d9a49d54870e2405c209fa60bf134a8a1a1 Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-101276 Signed-off-by: Ghanshyam Banait <Ghanshyam.BanaitSanjay@windriver.com> --- .../iperf3/iperf3/CVE-2026-101276.patch | 33 +++++++++++++++++++ .../recipes-benchmark/iperf3/iperf3_3.21.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta-oe/recipes-benchmark/iperf3/iperf3/CVE-2026-101276.patch