Description
The Libreswan Project was notified of an issue causing libreswan to restart when using IKEv1 without specifying an esp= line. When the peer requests AES-GMAC, libreswan's default proposal handler causes an assertion failure and crashes and restarts. IKEv2 connections are not affected.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| The Libreswan Project (www.libreswan.org) | libreswan | 3.22 – ≤ 4.14 | 5.0 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 13 | libreswan | 4.15-1 | — |
| Debian 12 | libreswan | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libreswan | No fix yet | — |
| Ubuntu 26.04 LTS | libreswan | No fix yet | — |
| Ubuntu 25.10 | libreswan | No fix yet | — |
| Ubuntu 24.04 LTS | libreswan | No fix yet | — |
| Ubuntu 22.04 LTS | libreswan | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libreswan | No fix yet | — |
| Ubuntu 18.04 LTS | libreswan | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | libreswan | 4.12-2.el9_4.1 | RHSA-2024:4050 |
| RHEL 8 | libreswan | 4.12-2.el8_10.4 | RHSA-2024:4376 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9.2 EUS | libreswan | 4.9-5.el9_2.2 | RHSA-2024:4431 |
| RHEL 9.0 E4S | libreswan | 4.6-3.el9_0.2 | RHSA-2024:4377 |
| RHEL 8.8 EUS | libreswan | 4.9-3.el8_8.2 | RHSA-2024:4200 |
| RHEL 8.6 TUS | libreswan | 4.5-1.el8_6.3 | RHSA-2024:4417 |
| RHEL 8.6 E4S | libreswan | 4.5-1.el8_6.3 | RHSA-2024:4417 |
| RHEL 8.6 AUS | libreswan | 4.5-1.el8_6.3 | RHSA-2024:4417 |
| Red Hat OpenShift 4 | libreswan | 4.6-3.el9_0.3 | RHBA-2024:11565, RHBA-2024:11525, RHBA-2024:11505 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | libreswan | 4.12-2.el9_4.1 | ALSA-2024:4050 |
| AlmaLinux 8 | libreswan | 4.12-2.el8_10.4 | ALSA-2024:4376 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | libreswan | 4.12-2.el9_4.1 | RLSA-2024:4050 |
| Rocky Linux 8 | libreswan | 4.12-2.el8_10.4 | RLSA-2024:4376 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | libreswan | 4.15-r0 | — |
| Alpine v3.23 | libreswan | 4.15-r0 | — |
| Alpine v3.22 | libreswan | 4.15-r0 | — |
| Alpine v3.21 | libreswan | 4.15-r0 | — |
| Alpine v3.20 | libreswan | 4.15-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | libreswan | 4.12-3.amzn2023.0.2 | ALAS2023-2024-621 |
| Amazon Linux 2 | libreswan | 3.25-4.8.amzn2.0.3 | ALAS2-2024-2596 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | libreswan | 4.15-1 | — |
| Azure Linux 2 (CBL-Mariner) | libreswan | 4.14-2 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | libreswan | 4.12-2.0.1.el9_4.1 | ELSA-2024-4050 |
| Oracle Linux 8 | libreswan | 4.12-2.0.1.el8_10.4 | ELSA-2024-4376 |
Advisories 19
- ALSA-2024:4050 Moderate: libreswan security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2024:4376 Moderate: libreswan security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2024-1434 Red Hat Enterprise Linux (pki and Libreswan): Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 27, 2026
- RHSA-2024:4417 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Aug 26, 2026
- RHSA-2024:4431 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Aug 26, 2026
- RHSA-2024:4377 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Aug 26, 2026
- RHSA-2024:4376 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Aug 26, 2026
- RHSA-2024:4200 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Aug 26, 2026
- RHSA-2024:4050 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Aug 26, 2026
- RLSA-2024:4050 Moderate: libreswan security update Rocky Linux Security Advisories · Feb 4, 2026
- RHBA-2024:11505 Red Hat Bug Fix Advisory: OpenShift Container Platform 4.16.28 packages and security update Red Hat Security Advisories (RHSA) · Jan 29, 2026
- RHBA-2024:11565 Red Hat Bug Fix Advisory: OpenShift Container Platform 4.15.42 packages update Red Hat Security Advisories (RHSA) · Jan 29, 2026
- RHBA-2024:11525 Red Hat Bug Fix Advisory: OpenShift Container Platform 4.17.10 packages and security update Red Hat Security Advisories (RHSA) · Jan 29, 2026
- RLSA-2024:4376 Moderate: libreswan security update Rocky Linux Security Advisories · Oct 9, 2025
- WID-SEC-2025-0794 Juniper Junos Space: Mehrere Schwachstellen BSI CERT-Bund (WID) · Sep 4, 2025
- ALAS2-2024-2596 Moderate: libreswan security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 22, 2024
- ELSA-2024-4376 Moderate: libreswan security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jul 8, 2024
- ELSA-2024-4050 Moderate: libreswan security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Jun 24, 2024
- ALAS2023-2024-621 Moderate: libreswan security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · May 28, 2024
References
- CVE-2024-3652 vendor-advisory
- http://www.openwall.com/lists/oss-security/2024/04/18/2