Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 13 | libreswan | 4.6-1 | — |
| Debian 12 | libreswan | 4.6-1 | — |
| Debian 11 | libreswan | 4.3-1+deb11u1 | DSA-5048-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | libreswan | No fix yet | — |
| Ubuntu 20.04 LTS | libreswan | No fix yet | — |
| Ubuntu 18.04 LTS | libreswan | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | libreswan | 4.4-4.el8_5 | RHSA-2022:0199 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8.4 EUS | libreswan | 4.3-6.el8_4 | RHSA-2022:0239 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | libreswan | 4.4-4.el8_5 | ALSA-2022:0199 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | libreswan | 4.4-4.el8_5 | RLSA-2022:0199 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | libreswan | 4.6-r0 | — |
| Alpine v3.23 | libreswan | 4.6-r0 | — |
| Alpine v3.22 | libreswan | 4.6-r0 | — |
| Alpine v3.21 | libreswan | 4.6-r0 | — |
| Alpine v3.20 | libreswan | 4.6-r0 | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | libreswan | 4.6-r0 | — |
| Alpine v3.18 | libreswan | 4.6-r0 | — |
| Alpine v3.17 | libreswan | 4.6-r0 | — |
| Alpine v3.16 | libreswan | 4.6-r0 | — |
| Alpine v3.15 | libreswan | 4.6-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | libreswan | 4.4-4.0.1.el8_5 | ELSA-2022-0199 |
Advisories 6
- ALSA-2022:0199 Important: libreswan security update AlmaLinux Security Advisories · Oct 29, 2026
- DSA-5048-1 libreswan - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2022:0199 Important: libreswan security update Rocky Linux Security Advisories · Feb 4, 2026
- RHSA-2022:0239 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- RHSA-2022:0199 Red Hat Security Advisory: libreswan security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- ELSA-2022-0199 Important: libreswan security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jan 20, 2022
References
- https://libreswan.org/security/CVE-2022-23094
- https://github.com/libreswan/libreswan/issues/585
- DSA-5048 vendor-advisory
- FEDORA-2022-a4bca77f88 vendor-advisory
- FEDORA-2022-42e0892147 vendor-advisory