Input validation error in libreswan - CVE-2023-30570

 

Input validation error in libreswan - CVE-2023-30570

Published: May 4, 2023


Vulnerability identifier: #VU75709
CSH Severity: Medium
CVSS v4: 8.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-30570
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to incorrect handling of unsupported algorithms (such as DH2) when processing IKEv1 Aggressive Mode packets in libreswan pluto daemon. A remote attacker can send a specially crafted IKEv1 Aggressive Mode packet to the daemon and crash it.

Successful exploitation of the vulnerability requires that the libreswan pluto daemon is configured explicitly with "aggressive=yes" (or "aggrmode=yes") and accepts IKEv1 packets.


Affected software

libreswan
Oracle Linux
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
openEuler
Fedora
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
libreswan (Red Hat package)
libreswan
libreswan-debugsource
libreswan-help
libreswan-debuginfo
Red Hat OpenShift Container Platform

How to mitigate CVE-2023-30570

Install updates from vendor's website.

libreswan - update to 4.11
libreswan (Red Hat package) - addressed in versions 3.29-7.el8_1.2, 3.29-7.el8_2.2, 4.3-6.el8_4.1, 4.5-1.el8_6.1, 4.5-1.el8_7.1, 4.6-3.el9_0.1, 4.6-3.el9_1.1, 4.9-4.el9_2
libreswan - addressed in versions 4.6-3.0.1, 4.9-3
libreswan - update to 4.11-1
libreswan-debugsource - update to 4.11-1
libreswan-help - update to 4.11-1
libreswan-debuginfo - update to 4.11-1
libreswan - addressed in versions 4.11-1.fc36, 4.11-1.fc37, 4.11-1.fc38
Red Hat OpenShift Container Platform - update to 4.13.0

External References

Related Security Bulletins