Vulnerability · Published Mar 11, 2024 · Assigned by libreswan
CVE-2024-2357IKEv2 misconfiguration can cause libreswan to abort and restart
Medium 6.5
In plain English
A medium-severity security flaw in libreswan from The Libreswan Project (www.libreswan.org). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libreswan | 4.12-2.el8_9.2.alma.1 | ALSA-2024:1998 |
| AlmaLinux:9 | libreswan | 4.12-1.el9_3.1.alma.1 | ALSA-2024:2033 |
| AlmaLinux:9 | libreswan | 4.12-2.el9_4.alma.1 | ALSA-2024:2565 |
| Alpine:v3.20 | libreswan | 4.15-r0 | ALPINE-CVE-2024-2357 |
| Alpine:v3.21 | libreswan | 4.15-r0 | ALPINE-CVE-2024-2357 |
| Alpine:v3.22 | libreswan | 4.15-r0 | ALPINE-CVE-2024-2357 |
| Alpine:v3.23 | libreswan | 4.15-r0 | ALPINE-CVE-2024-2357 |
| Alpine:v3.24 | libreswan | 4.15-r0 | ALPINE-CVE-2024-2357 |
| Debian:12 | libreswan | no fix listed | DEBIAN-CVE-2024-2357 |
| Debian:13 | libreswan | 4.14-1 | DEBIAN-CVE-2024-2357 |
| Rocky Linux:8 | libreswan | 0:4.12-2.el8_9.2 | RLSA-2024:1998 |
| Rocky Linux:9 | libreswan | 0:4.12-2.el9_4 | RLSA-2024:2565 |
| Ubuntu:22.04:LTS | libreswan | no fix listed | UBUNTU-CVE-2024-2357 |
| Ubuntu:24.04:LTS | libreswan | no fix listed | UBUNTU-CVE-2024-2357 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| The Libreswan Project (www.libreswan.org) | libreswan | 4.2 – through 4.12 |
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/