CVEfocus › CVE database › CVE-2026-77207

CVE-2026-77207Null Pointer Dereference in PKCS#7 bundle with no certificates

CVSS 7.5 HighEPSS 0.5% (higher than 32% of CVEs)Published 2026-10-13Updated 2026-10-16Assigner: libreswan

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.

CWE-252CWE-476

What to do

Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

14Fixed
2Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Debian 13libreswanFix pendingDEBIAN-CVE-2026-77207
Debian 12libreswanFix pendingDEBIAN-CVE-2026-77207
Red Hat Enterprise Linux 10libreswanFixed0:5.4.1-1.el10_3RHSA-2026:89923
Red Hat Enterprise Linux 10libreswan-minimalFixed0:5.4.1-1.el10_3RHSA-2026:89923
Red Hat Enterprise Linux 9libreswanFixed0:4.15-11.el9_9RHSA-2026:98046
Red Hat Enterprise Linux 8libreswanFixed0:4.12-2.el8_10.7RHSA-2026:90492
Red Hat Enterprise Linux 7libreswanNot affected
Red Hat Enterprise Linux 6libreswanNot affected
AlmaLinux 10libreswanFixed5.4.1-1.el10_3ALSA-2026:89923
AlmaLinux 10libreswan-minimalFixed5.4.1-1.el10_3ALSA-2026:89923
AlmaLinux 9libreswanFixed4.15-11.el9_8ALSA-2026:97878
AlmaLinux 8libreswanFixed4.12-2.el8_10.7ALSA-2026:90492
Rocky Linux 10libreswanFixed0:5.4.1-1.el10_3RLSA-2026:89923
Rocky Linux 10libreswan-minimalFixed0:5.4.1-1.el10_3RLSA-2026:98088
Rocky Linux 9libreswanFixed0:4.15-11.el9_8RLSA-2026:97878
Rocky Linux 8libreswanFixed0:4.12-2.el8_10.7RLSA-2026:90492
Alpine Linux 3.24libreswanFixed5.3.3-r0ALPINE-CVE-2026-77207
Alpine Linux 3.23libreswanFixed5.3.3-r0ALPINE-CVE-2026-77207

What the vendor says

As published in the CVE record by libreswan, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to libreswan 5.3.3 or 5.4.1 or later. Patches are available at https://libreswan.org/security/CVE-2026-77207/

Workaround: Apply the available patch or upgrade to a supported version. No configuration-based workaround is available.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.