CVE-2019-12312
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.
What to do
Fixed builds are available from Alpine, Debian, Red Hat: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | libreswan | Not affected vulnerable_code_not_present | ||
| Debian 13 | libreswan | Fixed | 3.27-5 | DEBIAN-CVE-2019-12312 |
| Debian 12 | libreswan | Fixed | 3.27-5 | DEBIAN-CVE-2019-12312 |
| Red Hat Enterprise Linux 8 | libreswan | Fixed | 0:3.29-6.el8 | RHSA-2019:3391 |
| Red Hat Enterprise Linux 7 | libreswan | Not affected | ||
| Red Hat Enterprise Linux 6 | libreswan | Not affected | ||
| Red Hat Enterprise Linux 6 | openswan | Not affected | ||
| Red Hat Enterprise Linux 6 | openswan-doc | Not affected | ||
| Red Hat Enterprise Linux 5 | openswan | Not affected | ||
| Alpine Linux 3.24 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.23 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.22 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.21 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.20 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.19 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.18 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.17 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.16 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.15 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.14 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.13 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.12 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
| Alpine Linux 3.11 | libreswan | Fixed | 3.28-r0 | ALPINE-CVE-2019-12312 |
References
- http://www.iwantacve.cn/index.php/archives/218/
- https://github.com/libreswan/libreswan/issues/246
- https://github.com/libreswan/libreswan/compare/9b1394e...3897683
- https://libreswan.org/security/CVE-2019-12312/CVE-2019-12312.txt
- https://libreswan.org/security/CVE-2019-12312/libreswan-3.27-CVE-2019-12312.patch
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.