Description
The Libreswan Project was notified of an issue causing libreswan to restart under some IKEv2 retransmit scenarios when a connection is configured to use PreSharedKeys (authby=secret) and the connection cannot find a matching configured secret. When such a connection is automatically added on startup using the auto= keyword, it can cause repeated crashes leading to a Denial of Service.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| The Libreswan Project (www.libreswan.org) | libreswan | 4.2 – ≤ 4.12 | 3.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.14-1 | — |
| Debian 12 | libreswan | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | libreswan | No fix yet | — |
| Ubuntu 22.04 LTS | libreswan | No fix yet | — |
| 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-1.el9_3.1 | RHSA-2024:2565, RHSA-2024:2033 |
| RHEL 8 | libreswan | 4.12-2.el8_9.2 | RHSA-2024:1998 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9.2 EUS | libreswan | 4.9-5.el9_2.1 | RHSA-2024:2085 |
| RHEL 9.0 E4S | libreswan | 4.6-3.el9_0.3 | RHSA-2024:10594 |
| RHEL 8.8 EUS | libreswan | 4.9-3.el8_8.1 | RHSA-2024:2081 |
| RHEL 8.6 EUS | libreswan | 4.5-1.el8_6.2 | RHSA-2024:2082 |
| 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-1.el9_3.1.alma.1 | ALSA-2024:2565, ALSA-2024:2033 |
| AlmaLinux 8 | libreswan | 4.12-2.el8_9.2.alma.1 | ALSA-2024:1998 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | libreswan | 4.12-2.el9_4 | RLSA-2024:2565 |
| Rocky Linux 8 | libreswan | 4.12-2.el8_9.2 | RLSA-2024:1998 |
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.1 | ALAS2023-2024-587 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | libreswan | 4.15-1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | libreswan | 4.12-1.0.1.el9_3.1 | ELSA-2024-2565, ELSA-2024-2033 |
| Oracle Linux 8 | libreswan | 4.12-2.0.1.el8_9.2 | ELSA-2024-1998 |
Advisories 20
- ALSA-2024:2565 Moderate: libreswan security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2024:2033 Moderate: libreswan security and bug fix update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2024:1998 Moderate: libreswan security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2024-0950 Red Hat Enterprise Linux (Libreswan): Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Oct 27, 2026
- RHSA-2024:2565 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Aug 26, 2026
- RHSA-2024:2082 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Aug 26, 2026
- RHSA-2024:2085 Red Hat Security Advisory: libreswan security and bug fix update Red Hat Security Advisories (RHSA) · Aug 26, 2026
- RHSA-2024:2033 Red Hat Security Advisory: libreswan security and bug fix update Red Hat Security Advisories (RHSA) · Aug 26, 2026
- RHSA-2024:2081 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Aug 26, 2026
- RHSA-2024:10594 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Aug 26, 2026
- RHSA-2024:1998 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Mar 18, 2026
- RLSA-2024:2565 Moderate: libreswan security update Rocky Linux Security Advisories · Feb 5, 2026
- RLSA-2024:1998 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
- ELSA-2024-2565 Moderate: libreswan security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · May 7, 2024
- ELSA-2024-2033 Moderate: libreswan security and bug fix update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Apr 24, 2024
- ELSA-2024-1998 Moderate: libreswan security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Apr 23, 2024
- ALAS2023-2024-587 Moderate: libreswan security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Apr 15, 2024
References
- CVE-2024-2357 vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EJZJYFHKBIJ4ZK5GAWWFFR3AKJS6O5JX/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HEM46ALKF7NG6CAUKZ7KQERVOHWQIQKY/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TVQ7MZY6LFFGRWAJNTKKN2VSEFS2VPAR/