summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorVijay Anusuri <vanusuri@mvista.com>2026-04-02 17:28:57 +0530
committerAnuj Mittal <anuj.mittal@oss.qualcomm.com>2026-04-03 15:00:48 +0530
commit1ad0d777d1de1769e5995eb806f7ae5c15d0be54 (patch)
treefa0e5cecbbfb33f9952d01e942da27b149617c12 /meta-networking
parent4feb9130b0c3450293f45d4fc424e4e74eefafa3 (diff)
downloadmeta-openembedded-1ad0d777d1de1769e5995eb806f7ae5c15d0be54.tar.gz
strongswan: Fix CVE-2026-25075
Pick patch according to [1] [1] https://download.strongswan.org/security/CVE-2026-25075/ [2] https://www.strongswan.org/blog/2026/03/23/strongswan-vulnerability-(cve-2026-25075).html Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-support/strongswan/strongswan/CVE-2026-25075.patch50
-rw-r--r--meta-networking/recipes-support/strongswan/strongswan_5.9.14.bb1
2 files changed, 51 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/strongswan/strongswan/CVE-2026-25075.patch b/meta-networking/recipes-support/strongswan/strongswan/CVE-2026-25075.patch
new file mode 100644
index 0000000000..46ce5d5ad2
--- /dev/null
+++ b/meta-networking/recipes-support/strongswan/strongswan/CVE-2026-25075.patch
@@ -0,0 +1,50 @@
1From d4b3c39776f06948d875614a0eddea9561159f2a Mon Sep 17 00:00:00 2001
2From: Tobias Brunner <tobias@strongswan.org>
3Date: Thu, 5 Mar 2026 12:43:12 +0100
4Subject: [PATCH] eap-ttls: Prevent crash if AVP length header field is invalid
5
6The length field in the AVP header includes the 8 bytes of the header
7itself. Not checking for that and later subtracting it causes an
8integer underflow that usually triggers a crash when accessing a
9NULL pointer that resulted from the failing chunk_alloc() call because
10of the high value.
11
12The attempted allocations for invalid lengths (0-7) are 0xfffffff8,
130xfffffffc, or 0x100000000 (0 on 32-bit hosts), so this doesn't result
14in a buffer overflow even if the allocation succeeds.
15
16Fixes: 79f2102cb442 ("implemented server side support for EAP-TTLS")
17Fixes: CVE-2026-25075
18
19Upstream-Status: Backport [https://download.strongswan.org/security/CVE-2026-25075/strongswan-4.5.0-6.0.4_eap_ttls_avp_len.patch]
20CVE: CVE-2026-25075
21Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
22---
23 src/libcharon/plugins/eap_ttls/eap_ttls_avp.c | 4 ++--
24 1 file changed, 2 insertions(+), 2 deletions(-)
25
26diff --git a/src/libcharon/plugins/eap_ttls/eap_ttls_avp.c b/src/libcharon/plugins/eap_ttls/eap_ttls_avp.c
27index 06389f7ca73e..2983bd021ded 100644
28--- a/src/libcharon/plugins/eap_ttls/eap_ttls_avp.c
29+++ b/src/libcharon/plugins/eap_ttls/eap_ttls_avp.c
30@@ -119,7 +119,7 @@ METHOD(eap_ttls_avp_t, process, status_t,
31 chunk_free(&this->input);
32 this->inpos = 0;
33
34- if (!success)
35+ if (!success || avp_len < AVP_HEADER_LEN)
36 {
37 DBG1(DBG_IKE, "received invalid AVP header");
38 return FAILED;
39@@ -130,7 +130,7 @@ METHOD(eap_ttls_avp_t, process, status_t,
40 return FAILED;
41 }
42 this->process_header = FALSE;
43- this->data_len = avp_len - 8;
44+ this->data_len = avp_len - AVP_HEADER_LEN;
45 this->input = chunk_alloc(this->data_len + (4 - avp_len) % 4);
46 }
47
48--
492.43.0
50
diff --git a/meta-networking/recipes-support/strongswan/strongswan_5.9.14.bb b/meta-networking/recipes-support/strongswan/strongswan_5.9.14.bb
index 4592381a36..820a1ad9e8 100644
--- a/meta-networking/recipes-support/strongswan/strongswan_5.9.14.bb
+++ b/meta-networking/recipes-support/strongswan/strongswan_5.9.14.bb
@@ -10,6 +10,7 @@ DEPENDS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', ' tpm2-tss',
10 10
11SRC_URI = "https://download.strongswan.org/strongswan-${PV}.tar.bz2 \ 11SRC_URI = "https://download.strongswan.org/strongswan-${PV}.tar.bz2 \
12 file://CVE-2025-62291.patch \ 12 file://CVE-2025-62291.patch \
13 file://CVE-2026-25075.patch \
13 " 14 "
14 15
15SRC_URI[sha256sum] = "728027ddda4cb34c67c4cec97d3ddb8c274edfbabdaeecf7e74693b54fc33678" 16SRC_URI[sha256sum] = "728027ddda4cb34c67c4cec97d3ddb8c274edfbabdaeecf7e74693b54fc33678"