CVE-2024-2357
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| The Libreswan Project (www.libreswan.org) | libreswan | 3.0 <= 4.1 | unaffected |
| The Libreswan Project (www.libreswan.org) | libreswan | 4.2 <= 4.12 | affected |
| The Libreswan Project (www.libreswan.org) | libreswan | 5.0 | unaffected |
Weaknesses
- IKEv2 misconfiguration can cause libreswan to abort and restart
Workarounds
As a workaround, one can place an unguessable long random default secret in /etc/ipsec.secrets, for example using the following command:
- echo -e "# CVE-2024-2357 workaround
- PSK "$(openssl rand -hex 32)"" >> /etc/ipsec.secrets
This will ensure a PSK secret is always found, but it will always be wrong, and thus authentication will still properly fail.
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
CVE Program Container
Additional References
- https://libreswan.org/security/CVE-2024-2357
- 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/
References
- https://libreswan.org/security/CVE-2024-2357
- 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/
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.