Skip to content
OpenAdvisories
High · 7.5 CVE-2026-77207 EUVD-2026-100749GHSA-jf6r-wr9w-j67c

Null Pointer Dereference in PKCS#7 bundle with no certificates

Published Oct 13, 2026 · Updated Oct 16, 2026 · Assigned by libreswan

Description

Libreswan has a null pointer dereference bug in the PKCS#7 handling code for IKE certificate authentication. When libreswan decodes an IKE CERT payload of type CERT_PKCS7_WRAPPED_X509, it guards the PKCS#7 blob with SEC_PKCS7ContainsCertsOrCrls() and then iterates the certificate list with SEC_PKCS7GetCertificateList(). The two NSS APIs disagree on a SignedData that carries a CRL but no certificates: ContainsCertsOrCrls() returns PR_TRUE (there is a CRL), so the guard passes, but GetCertificateList() returns NULL (there are no certificates). This causes libreswan to dereference a null pointer leading to a crash and restart. A malicious IKE_AUTH packet can trigger this bug, meaning the peer does not need to be authenticated. No remote code execution is possible. Continued exploitation can cause a denial of service.

Affected products

VendorProductAffectedFixed
The Libreswan Project libreswan 4.7 – ≤ 5.3.2, 5.4 – ≤ 5.4 5.3.3

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 libreswan No fix yet —
Debian 12 libreswan No fix yet —

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 libreswan +1 5.3.3-1.el10_2 ALSA-2026:89923
AlmaLinux 9 libreswan 4.15-11.el9_8 ALSA-2026:89748
AlmaLinux 8 libreswan 4.12-2.el8_10.7 ALSA-2026:90492

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 libreswan 5.3.3-1.el10_2 RLSA-2026:98088, RLSA-2026:89923
Rocky Linux 10 libreswan-minimal 5.4.1-1.el10_3 RLSA-2026:98088
Rocky Linux 9 libreswan 4.15-11.el9_8 RLSA-2026:97878, RLSA-2026:89748
Rocky Linux 8 libreswan 4.12-2.el8_10.7 RLSA-2026:90492
ReleasePackageFixed inAdvisory
Alpine v3.24 libreswan 5.3.3-r0 —
Alpine v3.23 libreswan 5.3.3-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libreswan 4.12-3.amzn2023.0.4 ALAS2023-2026-3253
Amazon Linux 2 libreswan 3.25-4.8.amzn2.0.4 ALAS2-2026-4021

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libreswan 4.15-4 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 libreswan +1 5.3.3-1.0.1.el10_2 ELSA-2026-89923
Oracle Linux 9 libreswan 4.15-11.0.1.el9_8 ELSA-2026-89748
Oracle Linux 8 libreswan 4.12-2.0.1.el8_10.7 ELSA-2026-90492

Advisories 14

References