Null Pointer Dereference in PKCS#7 bundle with no certificates
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.
CVE-2026-77207
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-77207
libreswan
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://github.com/libreswan/libreswan",
"vendor": "The Libreswan Project",
"product": "libreswan",
"versions": [
{
"status": "affected",
"version": "4.7",
"versionType": "semver",
"lessThanOrEqual": "5.3.2"
},
{
"status": "affected",
"version": "5.4",
"versionType": "semver",
"lessThanOrEqual": "5.4"
},
{
"status": "unaffected",
"version": "5.3.3",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.4.1",
"versionType": "semver"
}
],
"packageName": "libreswan",
"collectionURL": "https://github.com/libreswan/libreswan",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "decode_cert_payloads"
}
]
}
]- Related CVEs
- CVE-2026-77207
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #32663 · Revision 1
- Added to Heist Feed
- Publisher date