CVE-2019-12312: Null Pointer Dereference
In Libreswan 3.27 an assertion failure can lead to a pluto IKE daemon restart. An attacker can trigger a NULL pointer dereference by initiating an IKEv2 IKESAINIT exchange, followed by a bogus INFORMATIONAL exchange instead of the normallly expected IKEAUTH exchange. This affects sendv2Nspiresponsefromstate() in programs/pluto/ikev2send.c that will then trigger a NULL pointer dereference leading to a restart of libreswan.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2019-12312?
CVE-2019-12312 is a vulnerability in Libreswan 3.27 that can lead to a pluto IKE daemon restart.
How does CVE-2019-12312 occur?
CVE-2019-12312 occurs when an attacker initiates an IKEv2 IKE_SA_INIT exchange, followed by a bogus INFORMATIONAL exchange instead of the normally expected IKE_AUTH exchange.
What is the severity of CVE-2019-12312?
The severity of CVE-2019-12312 is 7.5 (High).
How can an attacker exploit CVE-2019-12312?
An attacker can exploit CVE-2019-12312 by triggering a NULL pointer dereference through the specific sequence of IKEv2 exchanges.
Is there a fix for CVE-2019-12312?
Yes, upgrading to Libreswan version 3.28 or later fixes CVE-2019-12312.