diff --git a/meta-networking/recipes-protocols/freediameter/files/CVE-2026-139986.patch b/meta-networking/recipes-protocols/freediameter/files/CVE-2026-139986.patch
new file mode 100644
index 0000000000..e772b8aee8
--- /dev/null
+++ b/meta-networking/recipes-protocols/freediameter/files/CVE-2026-139986.patch
@@ -0,0 +1,41 @@
+From 05d4842b5e5038f816bef3aceecd98bda9f002a6 Mon Sep 17 00:00:00 2001
+From: Sebastien Decugis <sebastien.decugis@st.com>
+Date: Sun, 29 Nov 2026 16:05:25 +0100
+Subject: [PATCH] app_diameap: honor the EAP Length field of received responses
+
+Limit a received EAP Response to the length declared in its EAP header
+(RFC 3748, section 4.1), so that any octets beyond it are ignored and
+EAP method plugins never see a packet whose actual size differs from
+its declared one. Packets shorter than declared are still discarded.
+
+Extend the DiamEAP exchange test with a response carrying trailing
+octets.
+
+Reported-by: Deus Rex research team, Cyrex
+Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
+
+CVE: CVE-2026-139986
+Upstream-Status: Backport [https://github.com/freeDiameter/freeDiameter/commit/04cb69730fce0d9a58956ee798543a8127287e71]
+
+Dropped changes to doc and tests during backport.
+
+Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
+---
+ extensions/app_diameap/diameap_server.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/extensions/app_diameap/diameap_server.c b/extensions/app_diameap/diameap_server.c
+index 329d6a2..bfa9775 100644
+--- a/extensions/app_diameap/diameap_server.c
++++ b/extensions/app_diameap/diameap_server.c
+@@ -377,6 +377,10 @@ static int diameap_parse_eap_resp(struct eap_state_machine * eap_sm,
+ 		return 0;
+ 	}
+ 
++	/* RFC 3748: ignore octets outside the EAP Length field. */
++	eappacket->length = length;
++	eappacket->ulength = length;
++
+ 	eap_code code;
+ 	CHECK_FCT(diameap_eap_get_code(eappacket,&code));
+ 	if (code == EAP_REQUEST || code == EAP_SUCCESS || code == EAP_FAILURE)
diff --git a/meta-networking/recipes-protocols/freediameter/freediameter_1.6.0.bb b/meta-networking/recipes-protocols/freediameter/freediameter_1.6.0.bb
index 4d4d8f32ef..37c8c6ac55 100644
--- a/meta-networking/recipes-protocols/freediameter/freediameter_1.6.0.bb
+++ b/meta-networking/recipes-protocols/freediameter/freediameter_1.6.0.bb
@@ -24,6 +24,7 @@ SRC_URI = "git://github.com/freeDiameter/freeDiameter;protocol=https;branch=mast
     file://install_test.patch \
     file://0001-tests-use-EXTENSIONS_DIR.patch \
     file://0001-bison-flex-Add-flags-for-carrying-user-specified-par.patch \
+    file://CVE-2026-139986.patch \
     "
 
 LICENSE = "BSD-3-Clause"
