CVE-2019-12312

Name
CVE-2019-12312
Description
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 IKE_SA_INIT exchange, followed by a bogus INFORMATIONAL exchange instead of the normallly expected IKE_AUTH exchange. This affects send_v2N_spi_response_from_state() in programs/pluto/ikev2_send.c that will then trigger a NULL pointer dereference leading to a restart of libreswan.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
Third Party Advisory https://github.com/libreswan/libreswan/issues/246
Patch https://github.com/libreswan/libreswan/compare/9b1394e...3897683
Exploit http://www.iwantacve.cn/index.php/archives/218/
CONFIRM https://libreswan.org/security/CVE-2019-12312/libreswan-3.27-CVE-2019-12312.patch
CONFIRM https://libreswan.org/security/CVE-2019-12312/CVE-2019-12312.txt

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:libreswan:libreswan:*:*:*:*:*:*:*:* libreswan >= None < 3.28

Vulnerable and fixed packages

Source package Branch Version Maintainer Status