Skip to content
OpenAdvisories
High · 8.1 CVE-2026-50722 EUVD-2026-41440GHSA-h4cv-5vw8-2p6m

IKEv2 Denial of Service via RSA-SHA1 (PKCS#1 RSASSA-PKCS1-v1_5) authentication payload

Published Jul 2, 2026 · Updated Jul 7, 2026 · Assigned by libreswan

Description

Libreswan, via the function RSA_authenticate_hash_signature_pkcs1_1_5_rsa(), did not correctly verify the DER encoding of the ASN.1 digest when the IKEv2 AUTH payload was encoded using RSASSA-PKCS1-v1_5 (RFC 8017). A remote attacker can use a variation on the Bleichenbacher attack to forge the AUTH payload when small public exponents are used (e.g., e=3), leading to impersonation. Additionally, a remote attacker, by encoding a shorter than expected hash in the AUTH payload, could trigger an assertion leading to denial-of-service. The daemon aborts and restarts; continued exploitation causes sustained denial of service. Remote code execution is not possible. X.509 certificate verifications of the remote IKE peer are not affected.

Affected products

VendorProductAffectedFixed
The Libreswan Project libreswan ≤ 5.3 5.3.1

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 No fix yet —
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 10 libreswan +1 5.3.2-1.el10_2 RHSA-2026:46398
RHEL 9 libreswan 4.15-10.el9_8 RHSA-2026:46986, RHSA-2026:46397
RHEL 8 libreswan 4.12-2.el8_10.6 RHSA-2026:46396
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS libreswan 5.2-1.el10_0.5 RHSA-2026:55449
RHEL 9.6 EUS libreswan 4.15-8.el9_6.1 RHSA-2026:57741
RHEL 9.4 E4S libreswan 4.12-3.el9_4.2 RHSA-2026:61258
RHEL 9.2 E4S libreswan 4.9-5.el9_2.5 RHSA-2026:61779
RHEL 8.8 TUS libreswan 4.9-3.el8_8.3 RHSA-2026:72287
RHEL 8.8 E4S libreswan 4.9-3.el8_8.3 RHSA-2026:72287
RHEL 8.6 EUS Long Life libreswan 4.5-1.el8_6.6 RHSA-2026:82154
RHEL 8.6 AUS libreswan 4.5-1.el8_6.6 RHSA-2026:82154
RHEL 8.4 EUS Long Life libreswan 4.3-6.el8_4.2 RHSA-2026:84887
RHEL 8.4 AUS libreswan 4.3-6.el8_4.2 RHSA-2026:84887

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 libreswan +1 5.3.2-1.el10_2 ALSA-2026:46398
AlmaLinux 9 libreswan 4.15-10.el9_8 ALSA-2026:46397
AlmaLinux 8 libreswan 4.12-2.el8_10.6 ALSA-2026:46396

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 libreswan 5.3.2-1.el10_2 RLSA-2026:46398
Rocky Linux 9 libreswan 4.15-10.el9_8 RLSA-2026:46397
Rocky Linux 8 libreswan 4.12-2.el8_10.6 RLSA-2026:46396
ReleasePackageFixed inAdvisory
Alpine v3.24 libreswan 5.3.2-r0 —
Alpine v3.23 libreswan 5.3.3-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 libreswan 4.12-3.amzn2023.0.3 ALAS2023-2026-2039

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libreswan 4.15-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 libreswan +1 5.3.2-1.el10_2 ELSA-2026-46398
Oracle Linux 9 libreswan 4.15-10.0.1.el9_8 ELSA-2026-46397
Oracle Linux 8 libreswan 4.12-2.0.1.el8_10.6 ELSA-2026-46396

Advisories 23

References