mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-10-15 18:27:12 +00:00
strongswan: patch CVE-2026-78130
Use patch[1] provided by strongSwan[2] Details: https://nvd.nist.gov/vuln/detail/cve-2026-78130 [1]https://download.strongswan.org/security/CVE-2026-78130/strongswan-5.1.3-6.0.7_x509_ac_issuer_null.patch [2]https://www.strongswan.org/blog/2026/09/07/strongswan-vulnerability-(cve-2026-78130).html Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
This commit is contained in:
1 parent
41cb8cca46
commit
d831ff4ac9
2 files changed
+50
No files matched your search
@@ -0,0 +1,49 @@
|
||||
From 254d971bbe7479fe5fffc34cd1dd1e349a48e7aa Mon Sep 17 00:00:00 2001
|
||||
From: Tobias Brunner <tobias@strongswan.org>
|
||||
Date: Fri, 19 Jun 2026 11:57:48 +0200
|
||||
Subject: [PATCH] x509: Avoid NULL-pointer dereference if issuerName is missing
|
||||
in attribute certificate
|
||||
|
||||
If neither authoritiyKeyIdentifier nor issuerName are encoded in an
|
||||
attribute certificate, the validation in `acert_validator.c:verify()`
|
||||
will cause a NULL-pointer dereference via `issued_by()` (the lookup
|
||||
with NULL identity will enumerate all trusted certificates).
|
||||
|
||||
Fixes: 26930a8c3e42 ("certificate factory can load certs from file")
|
||||
Fixes: CVE-2026-78130
|
||||
|
||||
CVE: CVE-2026-78130
|
||||
Upstream-Status: Backport [https://github.com/strongswan/strongswan/commit/bee6ce27761e1f38958be36ebe6688ef963c3d22]
|
||||
|
||||
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
|
||||
---
|
||||
src/libstrongswan/plugins/x509/x509_ac.c | 9 +++++++--
|
||||
1 file changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/libstrongswan/plugins/x509/x509_ac.c b/src/libstrongswan/plugins/x509/x509_ac.c
|
||||
index 68b7cf9..11a847e 100644
|
||||
--- a/src/libstrongswan/plugins/x509/x509_ac.c
|
||||
+++ b/src/libstrongswan/plugins/x509/x509_ac.c
|
||||
@@ -898,7 +898,11 @@ METHOD(certificate_t, has_issuer, id_match_t,
|
||||
{
|
||||
return ID_MATCH_PERFECT;
|
||||
}
|
||||
- return this->issuerName->matches(this->issuerName, issuer);
|
||||
+ if (this->issuerName)
|
||||
+ {
|
||||
+ return this->issuerName->matches(this->issuerName, issuer);
|
||||
+ }
|
||||
+ return ID_MATCH_NONE;
|
||||
}
|
||||
|
||||
METHOD(certificate_t, issued_by, bool,
|
||||
@@ -935,7 +939,8 @@ METHOD(certificate_t, issued_by, bool,
|
||||
}
|
||||
else
|
||||
{
|
||||
- if (!this->issuerName->equals(this->issuerName,
|
||||
+ if (!this->issuerName ||
|
||||
+ !this->issuerName->equals(this->issuerName,
|
||||
issuer->get_subject(issuer)))
|
||||
{
|
||||
return FALSE;
|
||||
@@ -17,6 +17,7 @@ SRC_URI = "https://download.strongswan.org/strongswan-${PV}.tar.bz2 \
|
||||
file://CVE-2026-78129.patch \
|
||||
file://CVE-2026-78133.patch \
|
||||
file://CVE-2026-78131.patch \
|
||||
file://CVE-2026-78130.patch \
|
||||
"
|
||||
|
||||
SRC_URI[sha256sum] = "07df7cedae56a7f3bb07e66d21a1f9f87e961db70e99184e11d3819413e4f87c"
|
||||
|
||||
Reference in new issue
Block a user