CVE-2023-2295 Denial of service in libreswan

High 7.5 Published Updated

A remote attacker can crash the libreswan pluto daemon by sending crafted IKEv1 packets, causing a denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-2295?

CVE-2023-2295 is a high-severity denial of service vulnerability in Redhat Enterprise Linux, published on 17 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability was found in the libreswan library. This security issue occurs when an IKEv1 Aggressive Mode packet is received with only unacceptable crypto algorithms, and the response packet is not sent with a zero responder SPI. When a subsequent packet is received where the sender reuses the libreswan responder SPI as its own initiator SPI, the pluto daemon state machine crashes. No remote code execution is possible. This CVE exists because of a CVE-2023-30570 security regression for libreswan package in Red Hat Enterprise Linux 8.8 and Red Hat Enterprise Linux 9.2.

Weakness: CWE-400

Which versions are affected by CVE-2023-2295?

It affects 5 products.

Linux distribution packages (7)
libreswan Red Hat:enterprise_linux:8::appstreamAll versions0:4.9-3.el8_8
libreswan-debuginfo Red Hat:enterprise_linux:8::appstreamAll versions0:4.9-3.el8_8
libreswan-debugsource Red Hat:enterprise_linux:8::appstreamAll versions0:4.9-3.el8_8
libreswan Red Hat:enterprise_linux:9::appstreamAll versions0:4.9-4.el9_2
libreswan-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:4.9-4.el9_2
libreswan-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:4.9-4.el9_2
libreswan Rocky Linux:8All versions0:4.9-3.el8_8

Products include Libreswan Libreswan, Redhat Enterprise Linux, Redhat Enterprise Linux Eus, Redhat Enterprise Linux Server Aus, Redhat Enterprise Linux Server Tus.

How do I fix CVE-2023-2295?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-2295 being exploited?

There is no known exploitation of CVE-2023-2295 in the wild and no public exploit code.

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as GHSA-gcrh-c42h-m2vw, RHSA-2023:3107, RHSA-2023:3148, RLSA-2023:3107, UBUNTU-CVE-2023-2295.

Is CVE-2023-2295 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free