CVE-2026-110339 in Libreswan
Summary
by MITRE • 11/17/2026
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.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/17/2026
The Libreswan pluto daemon, which serves as the core IKEv1 and IKEv2 implementation for Linux-based IPsec environments, contains a critical memory management flaw related to certificate handling during authentication exchanges. Specifically, when processing incoming CERT payloads that encapsulate PKCS#7 data structures, the application fails to correctly validate the internal structure of these certificates before attempting to dereference pointers within them. This vulnerability arises from an incorrect assumption regarding how the Network Security Services (NSS) library function SEC_PKCS7GetCertificateList() behaves in edge cases involving empty or malformed certificate lists embedded within non-empty PKCS#7 containers. The logic intended to detect empty content fails because it checks for the presence of data rather than verifying that the resulting list of certificates is populated, leading to a scenario where the application proceeds with an invalid pointer reference.
From a technical perspective, this flaw constitutes a classic NULL pointer dereference vulnerability, categorized under CWE-476 in the Common Weakness Enumeration standard. The root cause lies in insufficient input validation and error handling within the certificate parsing routine of the pluto daemon. When a remote peer sends a crafted CERT payload containing an empty PKCS#7 list wrapped inside what appears to be valid non-empty content, the NSS function returns NULL or an invalid state that is not properly checked by Libreswan before use. Consequently, subsequent operations attempt to access memory addresses at zero or other null values, triggering a segmentation fault and causing immediate termination of the pluto process. This behavior indicates a failure in defensive programming practices where return codes from cryptographic libraries are assumed to indicate success without rigorous verification of data integrity.
The operational impact of this vulnerability is primarily focused on service availability rather than confidentiality or integrity. Because the crash results in the restart of the IPsec daemon, ongoing secure tunnels may be disrupted, and new connection attempts will fail until the service recovers automatically. This creates a significant denial-of-service condition for any network relying on Libreswan for site-to-site VPNs or remote access solutions. An attacker can exploit this flaw by sending specially crafted IKE packets containing the malformed CERT payload without needing to authenticate first. The lack of authentication requirements makes this vulnerability particularly dangerous in untrusted networks, as it allows any host with network connectivity to disrupt critical infrastructure services simply by initiating an exchange that triggers the parsing logic.
In terms of threat modeling and attack classification, this vulnerability aligns with MITRE ATT&CK technique T1499 Endpoint Denial of Service, specifically under sub-techniques involving resource exhaustion or service disruption through application crashes. While remote code execution is not possible due to the nature of a NULL pointer dereference which typically results in an abrupt process termination rather than arbitrary memory write capabilities, the ability to crash a security-critical daemon without authentication represents a severe risk vector for network stability. The vulnerability highlights the importance of robust input validation layers when integrating third-party cryptographic libraries like NSS into complex protocol implementations such as IKE/IPsec.
Mitigation strategies should prioritize immediate patching if vendor updates are available that address this specific NULL pointer dereference in CERT payload handling. In environments where patches cannot be applied immediately, network-level controls can help mitigate the risk by restricting access to IPsec ports (UDP 500 and UDP 4500) using firewalls or intrusion prevention systems configured to drop malformed IKE packets. Additionally, implementing strict certificate validation policies that reject unexpected or empty certificate chains at the gateway level before they reach the vulnerable parsing logic can provide a layer of defense. Organizations should also monitor system logs for frequent restarts of the pluto daemon as an indicator of potential exploitation attempts and ensure that high-availability configurations are in place to minimize downtime during such incidents.