cve.bz

CVE-2024-3652 libreswan libreswan: Improper Resource Shutdown or Release

6.5 mediumEPSS 0.8%

Medium (6.5) in libreswan libreswan. EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
The Libreswan Project was notified of an issue causing libreswan to restart when using IKEv1 without specifying an esp= line. When the peer requests AES-GMAC, libreswan's default proposal handler causes an assertion failure and crashes and restarts. IKEv2 connections are not affected.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 58th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-04-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-404 Improper Resource Shutdown or Release
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-3652 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-3652?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-3652?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-3652 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
The Libreswan Project (www.libreswan.org) libreswanfrom 3.22 through 4.14

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libreswanno fix listedDEBIAN-CVE-2024-3652
Debian13libreswan4.15-1DEBIAN-CVE-2024-3652
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morelibreswanno fix listedUBUNTU-CVE-2024-3652
Red Hatenterprise_linux:8::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.12-2.el8_10.4RHSA-2024:4376
Red Hatenterprise_linux:9::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.12-2.el9_4.1RHSA-2024:4050
Red Hatopenshift:4.15::el9libreswan, libreswan-debuginfo, libreswan-debugsource0:4.6-3.el9_0.3RHBA-2024:11565
Red Hatopenshift:4.16::el9libreswan, libreswan-debuginfo, libreswan-debugsource0:4.6-3.el9_0.3RHBA-2024:11505
Red Hatopenshift:4.17::el9libreswan, libreswan-debuginfo, libreswan-debugsource0:4.6-3.el9_0.3RHBA-2024:11525
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.5-1.el8_6.3RHSA-2024:4417
Red Hatrhel_e4s:9.0::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.6-3.el9_0.2RHSA-2024:4377
Red Hatrhel_eus:8.8::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.9-3.el8_8.2RHSA-2024:4200
Red Hatrhel_eus:9.2::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.9-5.el9_2.2RHSA-2024:4431
AlmaLinux8libreswan4.12-2.el8_10.4ALSA-2024:4376
AlmaLinux9libreswan4.12-2.el9_4.1ALSA-2024:4050
Rocky Linux8libreswan0:4.12-2.el8_10.4RLSA-2024:4376
Rocky Linux9libreswan0:4.12-2.el9_4.1RLSA-2024:4050
Alpinev3.20, v3.21, v3.22 and 2 morelibreswan4.15-r0ALPINE-CVE-2024-3652
Azure Linux2libreswan4.14-2AZL-39927
Azure Linux3libreswan4.15-1AZL-39919

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The CVE-2024-3652 vulnerability in Libreswan is classified as a moderate severity issue due to its limited scope and impact. While the vulnerability can lead to Denial of Service (DoS) by causing the Libreswan service to crash and restart, it does not allow for Remote Code Execution or expose sensitive data. Additionally, the exploitation of this vulnerability requires specific conditions to be met: an IKEv1 connection loaded without an esp= line and the peer to have authenticated itself. Furthermore, IKEv2 connections are not vulnerable to this issue.

Red Hat's mitigation

An esp= line using a common IKEv1 algorithm list can be added to all IKEv1 based connections. An example of such an esp= line could be:

~~~

esp=aes-sha2_512,aes-sha1,aes-sha2_256,aes-md5,3des-sha1,3des-md5

~~~

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libreswan-0:4.12-2.el8_10.4Fixed 2024-07-08RHSA-2024:4376
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportlibreswan-0:4.5-1.el8_6.3Fixed 2024-07-09RHSA-2024:4417
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicelibreswan-0:4.5-1.el8_6.3Fixed 2024-07-09RHSA-2024:4417
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionslibreswan-0:4.5-1.el8_6.3Fixed 2024-07-09RHSA-2024:4417
Red Hat Enterprise Linux 8.8 Extended Update Supportlibreswan-0:4.9-3.el8_8.2Fixed 2024-07-01RHSA-2024:4200
Red Hat Enterprise Linux 9libreswan-0:4.12-2.el9_4.1Fixed 2024-06-23RHSA-2024:4050
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionslibreswan-0:4.6-3.el9_0.2Fixed 2024-07-08RHSA-2024:4377
Red Hat Enterprise Linux 9.2 Extended Update Supportlibreswan-0:4.9-5.el9_2.2Fixed 2024-07-09RHSA-2024:4431
Red Hat OpenShift Container Platform 4.15libreswan-0:4.6-3.el9_0.3Fixed 2025-01-02RHBA-2024:11565
Red Hat OpenShift Container Platform 4.16libreswan-0:4.6-3.el9_0.3Fixed 2025-01-02RHBA-2024:11505
Red Hat OpenShift Container Platform 4.17libreswan-0:4.6-3.el9_0.3Fixed 2025-01-02RHBA-2024:11525
Red Hat Enterprise Linux 10libreswanAffected
Red Hat Enterprise Linux 6libreswanNot affected
Red Hat Enterprise Linux 7libreswanOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-3652.

Attack patterns (CAPEC)

  • CAPEC-125 Flooding Likelihood: High · Severity: Medium
  • CAPEC-130 Excessive Allocation Likelihood: Medium · Severity: Medium
  • CAPEC-131 Resource Leak Exposure Likelihood: Medium · Severity: Medium
  • CAPEC-494 TCP Fragmentation
  • CAPEC-495 UDP Fragmentation
  • CAPEC-496 ICMP Fragmentation
  • CAPEC-666 BlueSmacking Likelihood: Medium · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON