CVE catalog

CVE-2026-77207

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 P

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.46% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibreswansid5.2-2.5vulnerable
Debianlibreswanforky5.2-2.5vulnerable
Debianlibreswantrixie5.2-2.2vulnerable
Debianlibreswanbookworm4.10-2+deb12u1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibreswansourcesid(unfixed)not yet assignedNot reported[1150899]
Debianlibreswansourceforky(unfixed)not yet assignedNot reported[1150899]
Debianlibreswansourcetrixie(unfixed)not yet assignedNot reported[1150899]
Debianlibreswansourcebookworm(unfixed)not yet assignedNot reported[1150899]

[Debian bug #1150899]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libreswan]Affected
    Details (2)
    • 4.10-2+deb12u1 · amd64 · bookworm

      Affected

      nvd · libreswan · debian · bookworm; nvd · libreswan · debian · 12

    • 4.10-2+deb12u1 · arm64 · bookworm

      Affected

      nvd · libreswan · debian · bookworm; nvd · libreswan · debian · 12

[Debian 13 (Trixie)]

  • [libreswan]Affected
    Details (2)
    • 5.2-2.2 · amd64 · trixie

      Affected

      nvd · libreswan · debian · 13

    • 5.2-2.2 · arm64 · trixie

      Affected

      nvd · libreswan · debian · 13

Observed:

References