Description
When initializing an RSA public key from DER or PEM bytes throws an error, the EVP_PKEY* is double-freed: first in the catch block, then in the deinit. This can lead to a crash on future memory allocations. This double-free manifests when BoringSSL cannot decode the public key from the bytes provided. This vulnerability is addressed in swift-crypto version 4.5.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apple | swift-crypto | < 4.5.1 | 4.5.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.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | nodejs24 +6 | 24.18.0-0.5.hum1 | RHSA-2026:45784 |
| Red Hat Hardened Images 1 | nodejs24-npm | 11.16.0-1.24.18.0.0.5.hum1 | RHSA-2026:45784 |
| Red Hat Hardened Images 1 | swift-lang +1 | 6.3.3-0.1.1.hum1 | RHSA-2026:45785 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | swiftlang +1 | 6.3-1.amzn2023.0.2 | ALAS2023-2026-2073 |
Advisories 3
- RHSA-2026:45785 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2026:45784 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- ALAS2023-2026-2073 Important: swiftlang security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Aug 31, 2026