Skip to content
OpenAdvisories
Unscored CVE-2023-38710 EUVD-2023-42485GHSA-4967-9mw7-522q

An issue was discovered in Libreswan before 4.12. When an IKEv2 Child SA REKEY packet contains an invalid IPsec protocol ID number of 0 or …

Published Aug 25, 2023 · Updated Nov 26, 2024 · Assigned by mitre

Description

An issue was discovered in Libreswan before 4.12. When an IKEv2 Child SA REKEY packet contains an invalid IPsec protocol ID number of 0 or 1, an error notify INVALID_SPI is sent back. The notify payload's protocol ID is copied from the incoming packet, but the code that verifies outgoing packets fails an assertion that the protocol ID must be ESP (2) or AH(3) and causes the pluto daemon to crash and restart. NOTE: the earliest affected version is 3.20.

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.

ReleasePackageFixed inAdvisory
Debian 13 libreswan 4.12-1 —
Debian 12 libreswan No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libreswan No fix yet —
Ubuntu 26.04 LTS libreswan No fix yet —
Ubuntu 25.10 libreswan No fix yet —
Ubuntu 24.04 LTS libreswan No fix yet —
Ubuntu 22.04 LTS libreswan No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libreswan No fix yet —
Ubuntu 18.04 LTS libreswan No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 libreswan 4.12-1.el9 RHSA-2023:6549
RHEL 8 libreswan 4.12-2.el8 RHSA-2023:7052
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.2 EUS libreswan 4.9-5.el9_2.4 RHSA-2025:0309
RHEL 9.0 E4S libreswan 4.6-3.el9_0.3 RHSA-2024:10594
Red Hat OpenShift 4 libreswan 4.6-3.el9_0.3 RHBA-2024:11565, RHBA-2024:11525, RHBA-2024:11505

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 libreswan 4.12-1.el9 ALSA-2023:6549
AlmaLinux 8 libreswan 4.12-2.el8 ALSA-2023:7052

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libreswan 4.12-2.el8_10.3 RLSA-2023:7052
ReleasePackageFixed inAdvisory
Alpine v3.24 libreswan 4.12-r0 —
Alpine v3.23 libreswan 4.12-r0 —
Alpine v3.22 libreswan 4.12-r0 —
Alpine v3.21 libreswan 4.12-r0 —
Alpine v3.20 libreswan 4.12-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 libreswan 4.12-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libreswan 4.7-6 —
Azure Linux 2 (CBL-Mariner) libreswan 4.7-5 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 libreswan 4.12-1.0.1.el9 ELSA-2023-6549
Oracle Linux 8 libreswan 4.12-2.0.1.el8 ELSA-2023-7052

Advisories 13

References