NULL Pointer Dereference Affecting libreswan package, versions <3.27-5


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
2.75% (85th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-LIBRESWAN-347521
  • published24 May 2019
  • disclosed24 May 2019

Introduced: 24 May 2019

CVE-2019-12312  (opens in a new tab)
CWE-476  (opens in a new tab)
CWE-617  (opens in a new tab)

How to fix?

Upgrade Debian:unstable libreswan to version 3.27-5 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libreswan package and not the libreswan package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.