Null pointer dereference in Libreswan PKCS#7 bundle handling
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 4 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-476.
Summary
Libreswan versions from 4.7 through 5.3.2 and from 5.4 through 5.4 are affected. A PKCS#7 bundle that contains a CRL but no certificates makes IKE certificate handling dereference a null pointer (CWE-476). A malicious IKE_AUTH packet can trigger a crash and restart without the peer being authenticated, causing denial of service, and remote code execution is not possible.
Written with Claude Haiku 5.5 from the sources below · 2026-11-07
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| The Libreswan Project | libreswan | 4.7 – 5.3.2; 5.4 – 5.4 | 5.3.3, 5.4.1 | Patch available | CNA |
- libreswan VendorThe Libreswan Project Affected 4.7 – 5.3.2; 5.4 – 5.4 Fixed in 5.3.3, 5.4.1 Patch available CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:libreswan:libreswan:*:*:*:*:*:*:*:* | — | — | The Libreswan Project |
- cpe:2.3:a:libreswan:libreswan:*:*:*:*:*:*:*:* Versions — — ·The Libreswan Project
Remediation
Upgrade Libreswan to 5.3.3 or 5.4.1. Red Hat fixes this in RHSA-2026:89748 for RHEL AppStream 9, RHSA-2026:89923 for RHEL AppStream 10, RHSA-2026:90492 for RHEL AppStream 8 and RHSA-2026:95346 for OpenShift Container Platform 4.22. Red Hat lists Fast Datapath for RHEL 9, OpenShift Container Platform 4 and OpenShift Container Platform 5 as affected with no fix available.
Written with Claude Haiku 5.5 from the sources below · 2026-11-07
- Fix · CNA libreswan (The Libreswan Project) Fixed in 5.3.3, 5.4.1
Red Hat 4 advisories
- RHSA-2026:95346 Released 2026-11-06 · Red Hat rating CriticalOpenShift Container Platform 4.22.22 bug fix and security update
- Red Hat OpenShift Container Platform 4.22 rhcos-aarch64-4.22.9.8.202611032353-0, rhcos-ppc64le-4.22.9.8.202611032353-0, rhcos-s390x-4.22.9.8.202611032353-0 +1
- RHSA-2026:90492 Released 2026-10-26 · Red Hat rating Importantlibreswan security update
- Red Hat Enterprise Linux AppStream (v. 8) libreswan-4.12-2.el8_10.7
- RHSA-2026:89923 Released 2026-10-26 · Red Hat rating Importantlibreswan security update
- Red Hat Enterprise Linux AppStream (v. 10) libreswan-5.3.3-1.el10_2, libreswan-minimal-5.3.3-1.el10_2
Show 1 more Red Hat advisories
- RHSA-2026:89748 Released 2026-10-26 · Red Hat rating Importantlibreswan security update
- Red Hat Enterprise Linux AppStream (v. 9) libreswan-4.15-11.el9_8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Fast Datapath for RHEL 9 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet |
| Red Hat OpenShift Container Platform 5 | Affected | No fix yet |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2026:89923 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2026:90492 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2026:89748 |
| Red Hat OpenShift Container Platform 4.22 | Fixed | RHSA-2026:95346 |
Not affected: 2 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Timeline
- 2026-10-13 Threatist record created from CVE-2026-77207
- 2026-10-14 Alias added: GHSA-jf6r-wr9w-j67c
- 2026-10-14 Priority changed: MEDIUM → LOW
- 2026-10-16 CISA SSVC decision points changed
- 2026-10-26 Fix available: RHSA-2026:89748 · Red Hat
- 2026-10-26 Fix available: Red Hat Enterprise Linux AppStream (v. 9) · Red Hat
- 2026-10-26 Fix available: RHSA-2026:89923 · Red Hat
- 2026-10-26 Fix available: Red Hat Enterprise Linux AppStream (v. 10) · Red Hat
- 2026-10-27 Fix available: Red Hat Enterprise Linux AppStream (v. 8) · Red Hat
- 2026-10-29 Fix available: RHSA-2026:90492 · Red Hat
- 2026-10-30 Affected versions changed · Red Hat
- 2026-11-07 Fix available: RHSA-2026:95346 · Red Hat
- 2026-11-07 Fix available: Red Hat OpenShift Container Platform 4.22 · Red Hat
References
More The Libreswan Project vulnerabilities
- TI-2023-09114 Libreswan 4.9 allows remote attackers to cause a denial of service (assert failure and… CVSS 3.1MEDIUM 6.5
- TI-2013-05949 Race condition in the libreswan.spec files for Red Hat Enterprise Linux (RHEL) and Fedora… CVSS 2.0HIGH 9.3
- TI-2023-02152 Uncontrolled resource consumption in libreswan CVSS 3.1HIGH 7.5
- TI-2026-37395 IKEv2 Denial of Service via RSA-SHA1 (PKCS#1 RSASSA-PKCS1-v1_5) authentication payload CVSS 3.1HIGH 8.1
- TI-2026-37394 IKEv1 Denial of Service via RSA-SHA1 (PKCS#1 Version 1.5 Encrypted) authentication payload CVSS 3.1HIGH 8.1
- TI-2023-14401 pluto in Libreswan before 4.11 allows a denial of service (responder SPI mishandling and… CVSS 3.1HIGH 7.5
Sources
- CVE-2026-77207 · CVE Program
- CVE-2026-77207 · NVD
- FIRST EPSS
- GHSA-jf6r-wr9w-j67c · GitHub Advisory Database · CC BY 4.0
- CVE-2026-77207 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences