Skip to content
OpenAdvisories
Medium · 6.5 CVE-2024-2357 EUVD-2024-27310GHSA-77h7-8788-mfv3

IKEv2 misconfiguration can cause libreswan to abort and restart

Published Mar 11, 2024 · Updated Feb 13, 2025 · Assigned by libreswan

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 13 libreswan 4.14-1 —
Debian 12 libreswan No fix yet —
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libreswan 4.12-3.amzn2023.0.1 ALAS2023-2024-587

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libreswan 4.15-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
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

References