Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-72897 Overview
CVE-2026-72897 is an out-of-bounds write vulnerability [CWE-787] in OpenSSL affecting TLS servers that invoke SSL_set_SSL_CTX() to switch a connection's context during a handshake. The flaw allows a remote peer to trigger a small out-of-bounds read and, in specific conditions, a fixed-value out-of-bounds write on the server heap. Exploitation can corrupt heap metadata and abort the process, resulting in denial of service. Only deployments where the replacement SSL_CTX knows about more provider TLS-SIGALG entries than the originating context are affected. Applications that never call SSL_set_SSL_CTX() are not exposed.
Critical Impact
A remote TLS client can send crafted signature algorithm codepoints to trigger heap corruption and crash the OpenSSL-based server, causing service outage.
Affected Products
- OpenSSL library versions using SSL_set_SSL_CTX() with mismatched provider signature algorithm counts
- TLS 1.3 server deployments using SNI callbacks to switch virtual host contexts
- OpenSSL 4.0 deployments where default and FIPS providers advertise different signature algorithms (for example, SM2)
Discovery Timeline
- 2026-09-29 - CVE CVE-2026-72897 published to NVD
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-72897
Vulnerability Analysis
A TLS connection records the number of certificate slots at creation time, computed from the originating SSL_CTX as the built-in certificate types plus one slot per provider TLS-SIGALG entry known to that context. This count sizes an internal per-slot valid_flags array used during signature algorithm negotiation.
When an application calls SSL_set_SSL_CTX() mid-handshake, most commonly from a servername callback to serve a different virtual host, the recorded slot count is not refreshed. If the replacement context recognizes additional provider signature algorithms, the peer can offer an algorithm that resolves to a slot index beyond the array bounds. Each offered algorithm in the excess range causes a four-byte out-of-bounds read; if the read word is zero, a fixed value is written back over it. Repeated offers corrupt adjacent heap metadata and abort the process.
Root Cause
The stale certificate slot count in the SSL_CONNECTION structure is not synchronized with the replacement SSL_CTX when SSL_set_SSL_CTX() is called. Provider signature algorithm slot indices are resolved against the current context, but bounds checks use the original count.
Attack Vector
A remote TLS 1.3 client offers signature algorithm codepoints that the replacement context resolves to indices past the end of the valid_flags array. Prerequisites include two SSL_CTX instances aware of different numbers of provider signature algorithms — typically achieved through separate library contexts, providers loaded between context creations, or providers with differing algorithm advertisements.
// Patch excerpt from ssl/ssl_lib.c
SSL_CTX *SSL_set_SSL_CTX(SSL *ssl, SSL_CTX *ctx)
{
CERT *new_cert;
+ uint32_t *new_valid_flags = NULL;
SSL_CONNECTION *sc = SSL_CONNECTION_FROM_SSL_ONLY(ssl);
/* TODO(QUIC FUTURE): Add support for QUIC */
Source: OpenSSL commit 00646e50
Detection Methods for CVE-2026-72897
Indicators of Compromise
- Unexpected TLS server process crashes or aborts during handshakes involving SNI-based context switching
- Heap corruption error messages logged by glibc or memory allocators on OpenSSL-based servers
- Client sessions offering unusually large or unusual sets of TLS 1.3 signature algorithm codepoints
Detection Strategies
- Audit application code for uses of SSL_set_SSL_CTX() and verify whether source and replacement contexts share the same provider TLS-SIGALG configuration
- Monitor TLS handshake failures from clients presenting broad signature_algorithms extensions
- Instrument OpenSSL builds with AddressSanitizer during testing to surface out-of-bounds accesses in valid_flags handling
Monitoring Recommendations
- Aggregate TLS server crash and restart events into the SIEM and correlate with source client IPs and TLS ClientHello fingerprints
- Track anomalous rates of aborted TLS 1.3 handshakes per virtual host to detect probing attempts
- Alert on repeated segmentation faults or heap corruption signals from OpenSSL-linked services
How to Mitigate CVE-2026-72897
Immediate Actions Required
- Upgrade OpenSSL to the fixed release referenced in the OpenSSL Security Advisory
- Inventory server applications that call SSL_set_SSL_CTX(), including web servers and reverse proxies using SNI callbacks
- Rebuild and restart all services statically linked against vulnerable OpenSSL versions
Patch Information
OpenSSL published fixes across multiple commits that refresh the per-connection valid_flags array when SSL_set_SSL_CTX() executes. See the patch commits: 00646e50, 4135f553, 9c54d209, and e87ed26b. The OpenSSL FIPS module is not affected because the vulnerable code is outside the FIPS boundary.
Workarounds
- Ensure both SSL_CTX instances involved in any SSL_set_SSL_CTX() swap share identical library contexts and loaded providers
- Avoid loading additional providers between the creation of the initial and replacement SSL_CTX objects
- Where feasible, remove servername callbacks that switch to contexts with differing provider signature algorithm sets until patches are applied
# Verify installed OpenSSL version and rebuild dependent services
openssl version -a
ldconfig -p | grep libssl
systemctl restart nginx apache2 haproxy
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

