cve.bz

CVE-2022-23094 NULL Pointer Dereference

7.5 highExploit referenceEPSS 2.6%

High (7.5). EPSS 2.6% estimated probability of exploitation activity in the next 30 days.

On this page
Libreswan 4.2 through 4.5 allows remote attackers to cause a denial of service (NULL pointer dereference and daemon crash) via a crafted IKEv1 packet because pluto/ikev1.c wrongly expects that a state object exists. This is fixed in 4.6.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.6% (unchanged from 2.6% a week ago; 2.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-23094 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-23094?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-23094?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-2022-23094 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 NVD's CPE matches.

ProductAffected
libreswan:libreswanfrom 4.2 before 4.6
fedoraproject:fedora34
fedoraproject:fedora35
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libreswan4.3-1+deb11u1DSA-5048-1
Debian12, 13libreswan4.6-1DEBIAN-CVE-2022-23094
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTSlibreswanno fix listedUBUNTU-CVE-2022-23094
Red Hatenterprise_linux:8::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.4-4.el8_5RHSA-2022:0199
Red Hatrhel_eus:8.4::appstreamlibreswan, libreswan-debuginfo, libreswan-debugsource0:4.3-6.el8_4RHSA-2022:0239
AlmaLinux8libreswan4.4-4.el8_5ALSA-2022:0199
Rocky Linux8libreswan0:4.4-4.el8_5RLSA-2022:0199
Alpinev3.15, v3.16, v3.17 and 7 morelibreswan4.6-r0ALPINE-CVE-2022-23094

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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

If all configured connections are using IKEv2, the IKEv1 subsystem can be disabled by adding the option ikev1-policy=drop to the "config setup" section of ipsec.conf. Alternatively, libreswan can be compiled with USE_IKEv1=false.

If all remote peers are on static IP addresses, a firewall rule blocking UDP port 500 and 4500 can be installed to prevent attackers from sending packets to the pluto IKE daemon.

If peers appear on dynamic IP addresses and IKEv1 connections must be supported, then no workarounds are known, and libreswan must be updated or patched.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libreswan-0:4.4-4.el8_5Fixed 2022-01-19RHSA-2022:0199
Red Hat Enterprise Linux 8.4 Extended Update Supportlibreswan-0:4.3-6.el8_4Fixed 2022-01-24RHSA-2022:0239
Red Hat Enterprise Linux 6libreswanNot affected
Red Hat Enterprise Linux 7libreswanNot affected
Red Hat Enterprise Linux 9libreswanNot affected

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-2022-23094.

References

Check your stackJSON