{"id":"CVE-2026-77207","title":"Libreswan has a null pointer dereference bug in the PKCS#7 handling code for IKE certificate authentication","summary":"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_PKCS7ContainsCert…","severity":"high","cvss":7.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-252","CWE-476"],"published":"2026-10-13","updated":"2026-10-13","sourceUpdated":"2026-10-13T22:18:26.040","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-77207","references":[{"url":"https://libreswan.org/security/CVE-2026-77207/","label":"d42dc95b-23f1-4e06-9076-20753a0fb0df"},{"url":"https://libreswan.org/security/CVE-2026-77207/CVE-2026-77207.txt","label":"d42dc95b-23f1-4e06-9076-20753a0fb0df"}],"tags":["nvd"],"ingestedAt":"2026-10-13T23:03:54.749Z","slug":"CVE-2026-77207","body":"## Overview\n\nLibreswan 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}