Description
Issue summary: An application that parses a maliciously crafted DER CRL,
certificate or CSR from a buffer larger than 4 GiB may trigger a heap buffer
overflow when OpenSSL re-encodes the item's cached encoding.
Impact summary: An attacker who supplies a crafted CRL, certificate or CSR to
an application that parses untrusted DER from a buffer larger than 4 GiB
causes a heap out-of-bounds write of attacker-controlled data, crashing the
process: Denial of Service.
CWE: CWE-787: Out-of-bounds Write
Description: ASN1_item_i2d() encodes an item in two passes, sizing the buffer
first and writing it second. For an item with a cached DER encoding,
ossl_asn1_enc_restore() reports that length through an int while copying the
full long. A cached encoding longer than INT_MAX is reported truncated, so the
caller allocates a small buffer and the second pass copies the whole span into
it.
The cache is kept for the signed parts of CRLs, certificates and CSRs. Parsing
a CRL reaches it: d2i_X509_CRL() fingerprints the CRL and re-encodes that
part, and a CRL inside PKCS#7 or CMS triggers it when the container is parsed.
Certificates reach it at the first X509_verify() or extension-cache
fingerprint, CSRs at X509_REQ_verify(). The attacker must supply a DER object
whose signed part spans more than 2^32 bytes from a buffer of at least 4 GiB,
on a platform with a 64-bit long. TLS, the HTTP CRL fetch, the BIO, PEM,
decoder and store readers cap input below 4 GiB.
The oversized copy runs off the end of the heap mapping and the process dies.
Nothing is read out of bounds or returned to the attacker, and the fixed
overrun size leaves no partial overwrite to steer.
FIPS impact: no
The affected code is outside the FIPS module boundary.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OpenSSL | OpenSSL | 4.1.0 – < 4.1.1, 4.0.0 – < 4.0.4 | 4.1.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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | openssl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | edk2 +2 | No fix yet | — |
| Ubuntu 26.04 LTS | edk2 +1 | No fix yet | — |
| Ubuntu 24.04 LTS | edk2 | No fix yet | — |
| Ubuntu 22.04 LTS | edk2 | No fix yet | — |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro FIPS 20.04 LTS | openssl | No fix yet | — |
| Ubuntu Pro FIPS 18.04 LTS | openssl | No fix yet | — |
| Ubuntu Pro FIPS 16.04 LTS | openssl | No fix yet | — |
| Ubuntu Pro FIPS-updates 24.04 LTS | openssl-fips | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | openssl +1 | No fix yet | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | openssl | No fix yet | — |
| Ubuntu Pro FIPS-updates 18.04 LTS | openssl | No fix yet | — |
| Ubuntu Pro FIPS-updates 16.04 LTS | openssl | No fix yet | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | openssl +1 | No fix yet | — |
| Ubuntu Pro 22.04 LTS | nodejs | No fix yet | — |
| Ubuntu Pro 20.04 LTS | edk2 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | edk2 +2 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | edk2 +1 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | openssl +6 | 1:3.5.9-0.6.hum1 | RHSA-2026:104383 |
| Red Hat Hardened Images 1 | openssl3 +3 | 1:3.5.9-1.5.hum1 | RHSA-2026:103808 |
Advisories 3
- RHSA-2026:104383 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Dec 4, 2026
- RHSA-2026:103808 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Dec 4, 2026
- WID-SEC-2026-4937 OpenSSL: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 3, 2026
References
- OpenSSL Advisory vendor-advisory
- 4.1.1 git commit patch
- 4.0.4 git commit patch