The Libreswan Project libreswan
x509 NULL pointer dereference on empty PKCS#7 payload
The Libreswan pluto daemon dereferences a NULL pointer when a CERT payload is received with an empty PKCS#7 payload, causing the daemon to crash and restart. The NSS function SEC_PKCS7GetCertificateList() was used to check whether the content was empty, but this check did not trigger if the non-empty content of the PKCS#7 wrapped payload was an empty list. Continued triggering of this vulnerability can lead to a denial of service. Remote code execution is not possible. Authentication is not required to trigger this vulnerability.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3.24, <= 5.4.1
Fixed in 5.4.2
Mitigation
Upgrade to libreswan 5.4.2 or later. Patches are available at https://libreswan.org/security/CVE-2026-110339/
Workaround
There is no workaround. Apply the patch or upgrade to version 5.4.2 or later.
References
- Vendor advisory libreswan.org/security/CVE-2026-110339/CVE-2026-1…
- Patch libreswan.org/security/CVE-2026-110339
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.