mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-12 15:31:03 +00:00
strongswan: patch CVE-2026-78126
Use patch[1] provided by strongSwan[2]
Details:
https://nvd.nist.gov/vuln/detail/cve-2026-78126
[1]https://download.strongswan.org/security/CVE-2026-78126/strongswan-4.4.0-6.0.7_eap_aka_sync_fail.patch
[2]https://www.strongswan.org/blog/2026/09/07/strongswan-vulnerability-(cve-2026-78126).html
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
(cherry picked from commit e228e7711e)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
This commit is contained in:
1 parent
a6397902ba
commit
9b00eaf6ee
2 files changed
+38
No files matched your search
@@ -0,0 +1,37 @@
|
||||
From 13aa926cad7ec7f668249b6513c938b8c2e95af4 Mon Sep 17 00:00:00 2001
|
||||
From: Tobias Brunner <tobias@strongswan.org>
|
||||
Date: Thu, 4 Jun 2026 10:00:02 +0200
|
||||
Subject: [PATCH] eap-aka: Only accept AKA-Synchronization-Failure if expected
|
||||
|
||||
This fixes a NULL-pointer dereference if the client sends such an error
|
||||
before the server issued a challenge and allocated this->rand.
|
||||
|
||||
Fixes: 26e246769224 ("ported EAP-AKA branch into trunk")
|
||||
Fixes: 4735965fc048 ("EAP servers check if the received EAP message was expected")
|
||||
Fixes: CVE-2026-78126
|
||||
|
||||
CVE: CVE-2026-78126
|
||||
Upstream-Status: Backport [https://github.com/strongswan/strongswan/commit/7bedb451346261370256d390a8c155b86e4b455d]
|
||||
|
||||
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
|
||||
---
|
||||
src/libcharon/plugins/eap_aka/eap_aka_server.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/src/libcharon/plugins/eap_aka/eap_aka_server.c b/src/libcharon/plugins/eap_aka/eap_aka_server.c
|
||||
index 0712ccc..95d4b03 100644
|
||||
--- a/src/libcharon/plugins/eap_aka/eap_aka_server.c
|
||||
+++ b/src/libcharon/plugins/eap_aka/eap_aka_server.c
|
||||
@@ -505,6 +505,12 @@ static status_t process_synchronize(private_eap_aka_server_t *this,
|
||||
simaka_attribute_t type;
|
||||
chunk_t data, auts = chunk_empty;
|
||||
|
||||
+ if (this->pending != AKA_CHALLENGE)
|
||||
+ {
|
||||
+ DBG1(DBG_IKE, "received %N, but not expected",
|
||||
+ simaka_subtype_names, AKA_SYNCHRONIZATION_FAILURE);
|
||||
+ return FAILED;
|
||||
+ }
|
||||
if (this->synchronized)
|
||||
{
|
||||
DBG1(DBG_IKE, "received %N, but peer did already resynchronize",
|
||||
@@ -11,6 +11,7 @@ DEPENDS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'tpm2', ' tpm2-tss',
|
||||
SRC_URI = "https://download.strongswan.org/strongswan-${PV}.tar.bz2 \
|
||||
file://CVE-2026-78123.patch \
|
||||
file://CVE-2026-78124.patch \
|
||||
file://CVE-2026-78126.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "e518e34e159514f4c6ba80d1f926cb151e0dd4e3a1d94213171234b8b9ae6f55"
|
||||
|
||||
Reference in new issue
Block a user