Vulnerability Name:

CVE-2019-12312 (CCN-161562)

Assigned:2019-05-12
Published:2019-05-12
Updated:2020-08-24
Summary: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.
CVSS v3 Severity:7.5 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
6.5 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
5.3 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L)
4.6 Medium (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Low
4.3 Medium (REDHAT CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L)
3.8 Low (REDHAT Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Low
CVSS v2 Severity:5.0 Medium (CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:N/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Partial
5.0 Medium (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:N/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Partial
Vulnerability Type:CWE-476
CWE-617
Vulnerability Consequences:Denial of Service
References:Source: MITRE
Type: CNA
CVE-2019-12312

Source: CCN
Type: IBM Security Bulletin 961690 (Netezza Host Management)
Multiple vulnerabilities in Open Source Libreswan affect IBM Netezza Host Management

Source: MISC
Type: Exploit, Third Party Advisory
http://www.iwantacve.cn/index.php/archives/218/

Source: XF
Type: UNKNOWN
libreswan-cve201912312-dos(161562)

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/libreswan/libreswan/compare/9b1394e...3897683

Source: CCN
Type: libreswan GIT Repository
NULL pointer dereference and pluto daemon restart in Libreswan 3.27 #246

Source: MISC
Type: Third Party Advisory
https://github.com/libreswan/libreswan/issues/246

Source: CONFIRM
Type: UNKNOWN
https://libreswan.org/security/CVE-2019-12312/CVE-2019-12312.txt

Source: CONFIRM
Type: UNKNOWN
https://libreswan.org/security/CVE-2019-12312/libreswan-3.27-CVE-2019-12312.patch

Vulnerable Configuration:Configuration 1:
  • cpe:/a:libreswan:libreswan:*:*:*:*:*:*:*:* (Version < 3.28)

  • Configuration RedHat 1:
  • cpe:/a:redhat:enterprise_linux:8:*:*:*:*:*:*:*

  • Configuration RedHat 2:
  • cpe:/a:redhat:enterprise_linux:8::appstream:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:libreswan:libreswan:3.27:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:com.redhat.rhsa:def:20193391
    P
    RHSA-2019:3391: libreswan security and bug fix update (Low)
    2019-11-05
    oval:com.ubuntu.cosmic:def:2019123120000000
    V
    CVE-2019-12312 on Ubuntu 18.10 (cosmic) - medium.
    2019-05-24
    oval:com.ubuntu.bionic:def:2019123120000000
    V
    CVE-2019-12312 on Ubuntu 18.04 LTS (bionic) - medium.
    2019-05-24
    oval:com.ubuntu.disco:def:2019123120000000
    V
    CVE-2019-12312 on Ubuntu 19.04 (disco) - medium.
    2019-05-24
    BACK
    libreswan libreswan *
    libreswan libreswan 3.27