CVE-2019-12312
publishedlibreswan: null-pointer dereference by sending two IKEv2 packets
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | edge | libreswan | Fixed | 3.28-r0 | Package fix record |
| Red Hat Enterprise Linux | RHEL-8 | libreswanaarch64 | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
| Alpine Linux | v3.11 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Alpine Linux | v3.12 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Alpine Linux | v3.13 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Alpine Linux | v3.14 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Alpine Linux | v3.15 | libreswan | Fixed | 3.28-r0 | Package fix record |
Show 21 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.16 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Alpine Linux | v3.17 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Alpine Linux | v3.18 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Alpine Linux | v3.19 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Alpine Linux | v3.20 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Alpine Linux | v3.21 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Alpine Linux | v3.22 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Alpine Linux | v3.23 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Alpine Linux | v3.24 | libreswan | Fixed | 3.28-r0 | Package fix record |
| Red Hat Enterprise Linux | RHEL-8 | libreswanppc64le | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
| Red Hat Enterprise Linux | RHEL-8 | libreswans390x | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
| Red Hat Enterprise Linux | RHEL-8 | libreswansrc | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
| Red Hat Enterprise Linux | RHEL-8 | libreswanx86_64 | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
| Red Hat Enterprise Linux | RHEL-8 | libreswan-debuginfoaarch64 | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
| Red Hat Enterprise Linux | RHEL-8 | libreswan-debuginfoppc64le | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
| Red Hat Enterprise Linux | RHEL-8 | libreswan-debuginfos390x | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
| Red Hat Enterprise Linux | RHEL-8 | libreswan-debuginfox86_64 | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
| Red Hat Enterprise Linux | RHEL-8 | libreswan-debugsourceaarch64 | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
| Red Hat Enterprise Linux | RHEL-8 | libreswan-debugsourceppc64le | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
| Red Hat Enterprise Linux | RHEL-8 | libreswan-debugsources390x | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
| Red Hat Enterprise Linux | RHEL-8 | libreswan-debugsourcex86_64 | Advisory build | 3.29-6.el8 | RHSA-2019:3391 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
5- http://www.iwantacve.cn/index.php/archives/218/
- https://github.com/libreswan/libreswan/compare/9b1394e...3897683
- https://github.com/libreswan/libreswan/issues/246
- 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
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a055c47b89a329e1c6ebfa06ded4c1b0bfb363d33620027ed373bca7bec232a2
- Ingested
- 23 Sep 2026, 07:45:46 UTC
- Source record
- Official CVE record