CVE-2026-77207 Null Pointer Dereference in PKCS#7 bundle with no certificates
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- DebianRed Hat
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.
Upgrade path
15 packages: 12 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libreswan(Debian 12) | = 4.10-2; = 4.10-2+deb12u1; = 4.11-1; = 4.12-1 +15 more | No fix listed | No fix yet |
| debian/libreswan(Debian 13) | = 5.2-2.2; = 5.2-2.3; = 5.2-2.4; = 5.2-2.5 +1 more | No fix listed | No fix yet |
| redhat/libreswan(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| alpine/libreswan(Alpine v3.23) | < 5.3.3-r0 | 5.3.3-r0 | Fixed |
| alpine/libreswan(Alpine v3.24) | < 5.3.3-r0 | 5.3.3-r0 | Fixed |
| azure linux libreswan(Azure Linux 3.0) | < 4.15-4 | 4.15-4 | Fixed |
| azure linux libreswan(Azure Linux 4.0) | < 0:5.4.1-4.azl4 | 0:5.4.1-4.azl4 | Fixed |
| redhat/libreswan(Red Hat enterprise_linux 10.2) | < 5.3.3-1.el10_2 | 5.3.3-1.el10_2 | Fixed |
| redhat/libreswan(Red Hat enterprise_linux 10.3) | < 5.4.1-1.el10_3 | 5.4.1-1.el10_3 | Fixed |
| redhat/libreswan(Red Hat enterprise_linux 8) | < 4.12-2.el8_10.7 | 4.12-2.el8_10.7 | Fixed |
| redhat/libreswan(Red Hat enterprise_linux 9) | < 4.15-11.el9_8; < 4.15-11.el9_9 | 4.15-11.el9_8, 4.15-11.el9_9 | Fixed |
| redhat/libreswan(Red Hat enterprise_linux 9 fastdatapath) | < 5.3.3-3.el9fdp | 5.3.3-3.el9fdp | Fixed |
| redhat/openshift/ose-rhel-coreos(Red Hat openshift 4.22 el9) | < 9:4.22.9.8.202611032353-0 | 9:4.22.9.8.202611032353-0 | Fixed |
| redhat/openshift/ose-rhel-coreos(Red Hat openshift 5.0 el9) | < 9:5.0.10.2.202611022203-0 | 9:5.0.10.2.202611022203-0 | Fixed |
| The Libreswan Project libreswan | >= 4.7, <= 5.3.2; >= 5.4, <= 5.4 | after 5.3.2, 5.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| The Libreswan Project libreswan | >= 4.7, <= 5.3.2 | No fix listed |
| The Libreswan Project libreswan | >= 5.4, <= 5.4 | No fix listed |
| redhat/libreswan(Red Hat:enterprise_linux:9::fastdatapath) | < 5.3.3-3.el9fdp | 5.3.3-3.el9fdp |
| redhat/libreswan(Red Hat:enterprise_linux:10.2) | < 5.3.3-1.el10_2 | 5.3.3-1.el10_2 |
| redhat/libreswan(Red Hat:enterprise_linux:10.3) | < 5.4.1-1.el10_3 | 5.4.1-1.el10_3 |
| redhat/libreswan(Red Hat:enterprise_linux:8) | < 4.12-2.el8_10.7 | 4.12-2.el8_10.7 |
| redhat/libreswan(Red Hat:enterprise_linux:9) | < 4.15-11.el9_8 | 4.15-11.el9_8 |
| redhat/libreswan(Red Hat:enterprise_linux:9) | < 4.15-11.el9_9 | 4.15-11.el9_9 |
| redhat/openshift/ose-rhel-coreos(Red Hat:openshift:4.22::el9) | < 9:4.22.9.8.202611032353-0 | 9:4.22.9.8.202611032353-0 |
| redhat/openshift/ose-rhel-coreos(Red Hat:openshift:5.0::el9) | < 9:5.0.10.2.202611022203-0 | 9:5.0.10.2.202611022203-0 |
| redhat/libreswan(Red Hat:openshift:4) | All versions | No fix listed |
| debian/libreswan(Debian:12) | All versions | No fix listed |
| debian/libreswan(Debian:12) | = 4.10-2 | No fix listed |
| debian/libreswan(Debian:12) | = 4.10-2+deb12u1 | No fix listed |
| debian/libreswan(Debian:12) | = 4.11-1 | No fix listed |
| debian/libreswan(Debian:12) | = 4.12-1 | No fix listed |
| debian/libreswan(Debian:12) | = 4.12-2 | No fix listed |
| debian/libreswan(Debian:12) | = 4.12-3 | No fix listed |
| debian/libreswan(Debian:12) | = 4.14-1 | No fix listed |
| debian/libreswan(Debian:12) | = 4.14-1.1 | No fix listed |
| debian/libreswan(Debian:12) | = 4.15-1 | No fix listed |
| debian/libreswan(Debian:12) | = 5.0~rc2-1 | No fix listed |
| debian/libreswan(Debian:12) | = 5.0~rc2-2 | No fix listed |
| debian/libreswan(Debian:12) | = 5.2-1 | No fix listed |
| debian/libreswan(Debian:12) | = 5.2-2 | No fix listed |
Show 14 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libreswan(Debian:12) | = 5.2-2.1 | No fix listed |
| debian/libreswan(Debian:12) | = 5.2-2.2 | No fix listed |
| debian/libreswan(Debian:12) | = 5.2-2.3 | No fix listed |
| debian/libreswan(Debian:12) | = 5.2-2.4 | No fix listed |
| debian/libreswan(Debian:12) | = 5.2-2.5 | No fix listed |
| debian/libreswan(Debian:13) | All versions | No fix listed |
| debian/libreswan(Debian:13) | = 5.2-2.2 | No fix listed |
| debian/libreswan(Debian:13) | = 5.2-2.3 | No fix listed |
| debian/libreswan(Debian:13) | = 5.2-2.4 | No fix listed |
| debian/libreswan(Debian:13) | = 5.2-2.5 | No fix listed |
| alpine/libreswan(Alpine:v3.23) | < 5.3.3-r0 | 5.3.3-r0 |
| alpine/libreswan(Alpine:v3.24) | < 5.3.3-r0 | 5.3.3-r0 |
| azure linux libreswan(Azure Linux:3.0) | < 4.15-4 | 4.15-4 |
| azure linux libreswan(Azure Linux:4.0) | < 0:5.4.1-4.azl4 | 0:5.4.1-4.azl4 |
References
- Libreswan Security Advisory CVE-2026-77207 vendor-advisory
- Libreswan CVE-2026-77207 Patches patch
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:98046 patch vendor-advisory
- RHSA-2026:89923 patch vendor-advisory
- RHSA-2026:98088 patch vendor-advisory
- RHSA-2026:90492 patch vendor-advisory
- RHSA-2026:89748 patch vendor-advisory
- RHSA-2026:97878 patch vendor-advisory
- RHSA-2026:95346 patch vendor-advisory
- RHSA-2026:94537 patch vendor-advisory
- Red Hat Bugzilla 2550258 issue-tracking
- www.cve.org
- nvd.nist.gov
- libreswan.org
- libreswan.org
- Debian Security Tracker CVE-2026-77207 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-100749 third-party-advisory