Bug 2268952 (CVE-2024-2357)

Summary: CVE-2024-2357 libreswan: Missing PreSharedKey for connection can cause crash
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libreswan 4.13, libreswan 5.0 Doc Type: ---
Doc Text:
A flaw was found in Libreswan. This issue causes 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 automatically added on startup using the auto= keyword, it can cause repeated crashes, leading to a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2269563    
Bug Blocks: 2268953    

Description Avinash Hanwate 2024-03-11 05:44:19 UTC
When an IKEv2 state would fail to find its own PreSharedKey (secret) to create the AUTH payload in the IKE_AUTH Exchange, it would omit sending a packet, but would not delete the state. When this state is referenced later, it would cause an assertion failure and crash and restart the pluto daemon.

https://libreswan.org/security/CVE-2024-2357
https://github.com/libreswan/libreswan/commit/cb9e1047d33fde695d63a95854c2bc2470a476c8.patch

Comment 3 Dhananjay Arunesh 2024-03-14 16:24:28 UTC
Created libreswan tracking bugs for this issue:

Affects: fedora-all [bug 2269563]

Comment 5 errata-xmlrpc 2024-04-24 06:48:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2033 https://access.redhat.com/errata/RHSA-2024:2033

Comment 6 errata-xmlrpc 2024-04-29 01:56:41 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Extended Update Support

Via RHSA-2024:2081 https://access.redhat.com/errata/RHSA-2024:2081

Comment 7 errata-xmlrpc 2024-04-29 02:16:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:2085 https://access.redhat.com/errata/RHSA-2024:2085

Comment 8 errata-xmlrpc 2024-04-29 02:27:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

Via RHSA-2024:2082 https://access.redhat.com/errata/RHSA-2024:2082

Comment 9 errata-xmlrpc 2024-04-30 14:40:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:2565 https://access.redhat.com/errata/RHSA-2024:2565