Vulnerability · Published Oct 13, 2026 · Assigned by libreswan
CVE-2026-77207Null Pointer Dereference in PKCS#7 bundle with no certificates
High 7.5
In plain English
A high-severity null pointer dereference in libreswan from The Libreswan Project. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | libreswan | 5.3.3-1.el10_2 | ALSA-2026:89923 |
| AlmaLinux:8 | libreswan | 4.12-2.el8_10.7 | ALSA-2026:90492 |
| AlmaLinux:9 | libreswan | 4.15-11.el9_8 | ALSA-2026:89748 |
| AlmaLinux:10 | libreswan-minimal | 5.3.3-1.el10_2 | ALSA-2026:89923 |
| Alpine:v3.23 | libreswan | 5.3.3-r0 | ALPINE-CVE-2026-77207 |
| Alpine:v3.24 | libreswan | 5.3.3-r0 | ALPINE-CVE-2026-77207 |
| Debian:12 | libreswan | no fix listed | DEBIAN-CVE-2026-77207 |
| Debian:13 | libreswan | no fix listed | DEBIAN-CVE-2026-77207 |
| Rocky Linux:10 | libreswan | 0:5.3.3-1.el10_2 | RLSA-2026:89923 |
| Rocky Linux:8 | libreswan | 0:4.12-2.el8_10.7 | RLSA-2026:90492 |
| Rocky Linux:9 | libreswan | 0:4.15-11.el9_8 | RLSA-2026:89748 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| The Libreswan Project | libreswan | 4.7 – through 5.3.25.4 – through 5.4 |
Weakness: CWE-476, CWE-252 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- Libreswan Security Advisory CVE-2026-77207 vendor-advisory
- Libreswan CVE-2026-77207 Patches patch