NULL pointer dereference in libreswan - CVE-2019-12312

 

NULL pointer dereference in libreswan - CVE-2019-12312

Published: May 12, 2020


Vulnerability identifier: #VU27711
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-12312
CWE-ID: CWE-476
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a NULL pointer dereference issue within the send_v2N_spi_response_from_state() function in programs/pluto/ikev2_send.c. A remote attacker can cause an assertion failure by initiating an IKEv2 IKE_SA_INIT exchange, followed by a bogus INFORMATIONAL exchange instead of the expected IKE_AUTH exchange and cause the pluto IKE daemon to restart.


Affected software

libreswan
libreswan (Alpine package)

How to mitigate CVE-2019-12312

Install update from vendor's website.

libreswan - update to 3.28
libreswan (Alpine package) - update to 3.29-r0

External References

Related Security Bulletins