The Libreswan Project libreswan
IKEv2 pre-authentication Null Pointer Dereference in EAP code
Libreswan's IKEv2 state machine has a null pointer dereference bug in the EAP handling code for authentication. As a result of inconsistency within the IKEv2 state machine code, this bug can be triggered by any IKEv2 connection, even if EAP is not configured at all. The error is caused by a fall-through where it incorrectly dereferences ike->sa.st_eap which is NULL. A malicious IKE_AUTH packet can trigger this bug, meaning the peer does not need to be authenticated. The bug results in a crash and restart of the pluto daemon. No remote code execution is possible. Continued exploitation can cause a denial of service.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.7, <= 5.3.2
- >= 5.4, <= 5.4
Fixed in 5.3.3, 5.4.1
Mitigation
Upgrade to libreswan 5.3.3 or 5.4.1 or later. Note that EAP was not functional in libreswan 5.3. If you need EAP support, use 5.4.1 or later. Patches are available at https://libreswan.org/security/CVE-2026-77206/
Workaround
Apply the available patch or upgrade to a supported version. No configuration-based workaround is available.
References
- Vendor advisory libreswan.org/security/CVE-2026-77206/CVE-2026-77…
- Patch libreswan.org/security/CVE-2026-77206
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.