cve.bz

CVE-2026-77207 the libreswan project libreswan: Unchecked Return Value

7.5 highEPSS 0.5%

High (7.5) in the libreswan project libreswan. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.5% (unchanged from 0.5% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-252 Unchecked Return Value
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-77207 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-77207?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-77207?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-77207 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • the libreswan project:libreswan

Versions

From the CNA's record in the CVE List.

ProductAffected
The Libreswan Project libreswanfrom 4.7 through 5.3.2
The Libreswan Project libreswanfrom 5.4 through 5.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13libreswanno fix listedDEBIAN-CVE-2026-77207
Red Hatenterprise_linux:8::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.12-2.el8_10.7RHSA-2026:90492
Red Hatenterprise_linux:9::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.15-11.el9_8RHSA-2026:89748
Red Hatenterprise_linux:9::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.15-11.el9_9RHSA-2026:97878
Red Hatenterprise_linux:9::fastdatapathlibreswan, libreswan-debuginfo, libreswan-debugsource0:5.3.3-3.el9fdpRHSA-2026:98046
Red Hatenterprise_linux:10.2libreswan, libreswan-minimal, libreswan-debugsource and 1 more0:5.3.3-1.el10_2RHSA-2026:89923
Red Hatenterprise_linux:10.3libreswan, libreswan-minimal, libreswan-debugsource and 1 more0:5.4.1-1.el10_3RHSA-2026:98088
AlmaLinux8libreswan4.12-2.el8_10.7ALSA-2026:90492
AlmaLinux9libreswan4.15-11.el9_8ALSA-2026:89748
AlmaLinux9libreswan4.15-11.el9_9ALSA-2026:97878
AlmaLinux10libreswan, libreswan-minimal5.3.3-1.el10_2ALSA-2026:89923
AlmaLinux10libreswan, libreswan-minimal5.4.1-1.el10_3ALSA-2026:98088
Rocky Linux8libreswan0:4.12-2.el8_10.7RLSA-2026:90492
Rocky Linux9libreswan0:4.15-11.el9_8RLSA-2026:89748 RLSA-2026:97878
Rocky Linux10libreswan0:5.3.3-1.el10_2RLSA-2026:89923
Rocky Linux10libreswan, libreswan-minimal, libreswan-debugsource and 1 more0:5.4.1-1.el10_3RLSA-2026:98088
Alpinev3.23, v3.24libreswan5.3.3-r0ALPINE-CVE-2026-77207
Azure Linux3libreswan4.15-4AZL-108033

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as Moderate impact for Red Hat because exploitation requires Libreswan to be deployed, configured, and running as an IKEv2 endpoint, which is not the default configuration of a general-purpose Red Hat Enterprise Linux installation. A remote, unauthenticated attacker can send a crafted IKEv2 packet to crash the Libreswan daemon, potentially disrupting VPN connectivity. Although, systemd supervision typically restarts the crashed process automatically, reducing the persistence of service interruptions, repeated exploitation can cause continued denial of service.

Red Hat's mitigation

Red Hat is not aware of a practical temporary workaround that fully mitigates this issue or meets Red Hat Product Security's standards for usability, deployment, applicability, or stability. Customers are advised to apply the relevant security updates when/if they become available.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libreswan-0:5.3.3-1.el10_2Fixed 2026-10-26RHSA-2026:89923
Red Hat Enterprise Linux 8libreswan-0:4.12-2.el8_10.7Fixed 2026-10-26RHSA-2026:90492
Red Hat Enterprise Linux 9libreswan-0:4.15-11.el9_8Fixed 2026-10-26RHSA-2026:89748
Red Hat Enterprise Linux 9libreswan-0:4.15-11.el9_9Fixed 2026-11-10RHSA-2026:97878
Red Hat OpenShift Container Platform 4.22openshift/ose-rhel-coreos-9:4.22.9.8.202611032353-0Fixed 2026-11-06RHSA-2026:95346
Red Hat OpenShift Container Platform 5.0openshift/ose-rhel-coreos-9:5.0.10.2.202611022203-0Fixed 2026-11-09RHSA-2026:94537
Fast Datapath for RHEL 9libreswanAffected
Red Hat Enterprise Linux 6libreswanNot affected
Red Hat Enterprise Linux 7libreswanNot affected
Red Hat OpenShift Container Platform 4libreswanAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-77207.

References

Check your stackJSON