new file mode 100644
@@ -0,0 +1,63 @@
+From ffae74ef46894cb0a15ccb0dbd75422dc5c42e83 Mon Sep 17 00:00:00 2001
+From: swlars <swlarsen@es.net>
+Date: Tue, 4 Aug 2026 19:38:16 +0000
+Subject: [PATCH] For UDP, check that blksize and dgram_size are greater than 0
+ to avoid a loop.
+
+Reported by Ravindu Lakmina Munaweera (Github: @Ravi-lk)
+
+(CVE-2026-102253)
+
+CVE: CVE-2026-102253
+Upstream-Status: Backport [https://github.com/esnet/iperf/commit/a25378f8cbbaa7b3db5674ca3dcc19658ae65da3]
+
+Backport Changes:
+- The unchanged upstream cherry-pick conflicts in get_parameters():
+ iperf3 3.21 lacks the validation block introduced by prerequisite
+ 494dd377eca4689672becdf06a85158557db1586:
+ https://github.com/esnet/iperf/commit/494dd377eca4689672becdf06a85158557db1586
+ Fold only its UDP block-size validation, with the CVE correction,
+ after cJSON_Delete(j). Keep the upstream added lines unchanged.
+ Omit the unrelated JSON validation, TCP checks and GSO recalculation
+ from the prerequisite. No files from the CVE fix are omitted.
+
+Signed-off-by: Devansh Patel <devanshp@cisco.com>
+---
+ src/iperf_api.c | 7 +++++++
+ src/iperf_udp.c | 5 +++++
+ 2 files changed, 12 insertions(+)
+
+diff --git a/src/iperf_api.c b/src/iperf_api.c
+index fb4273f..c5a922c 100644
+--- a/src/iperf_api.c
++++ b/src/iperf_api.c
+@@ -2662,6 +2662,13 @@ get_parameters(struct iperf_test *test)
+ cJSON_AddNumberToObject(test->json_start, "target_bitrate", test->settings->rate);
+ cJSON_Delete(j);
+
++ // Check that UDP blksize > Min && < Max
++ if (test->protocol->id == Pudp &&
++ (test->settings->blksize < MIN_UDP_BLOCKSIZE || test->settings->blksize > MAX_UDP_BLOCKSIZE)) {
++ i_errno = IEUDPBLOCKSIZE;
++ return -1;
++ }
++
+ /* Ensure that the client does not request to run longer than the server's configured max */
+ if ((test->max_server_duration > 0) && (((test->duration + test->omit) > test->max_server_duration) || (test->duration == 0))) {
+ i_errno = IEMAXSERVERTESTDURATIONEXCEEDED;
+diff --git a/src/iperf_udp.c b/src/iperf_udp.c
+index 393836c..eae3850 100644
+--- a/src/iperf_udp.c
++++ b/src/iperf_udp.c
+@@ -104,6 +104,11 @@ iperf_udp_recv(struct iperf_stream *sp)
+ if (r <= 0)
+ return r;
+
++ // Check dgram_sz is greater than 0
++ if (dgram_sz <= 0){
++ return -1;
++ }
++
+ /* Only count bytes received while we're in the correct state. */
+ if (test->state == TEST_RUNNING) {
+
@@ -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-102253.patch \
"
SRCREV = "d39cf41526626b4e5a130f115d931cd6cbdffc19"