Projects
home:rottame:vhosts-ng
openssl-1_1
openssl-CVE-2026-75806.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openssl-CVE-2026-75806.patch of Package openssl-1_1
From 4be2529fff258af835ccc68ba508e2c64633852b Mon Sep 17 00:00:00 2001 From: Daniel Kubec <kubec@openssl.foundation> Date: Thu, 3 Sep 2026 14:28:23 +0200 Subject: [PATCH] TLS: Reject undersized TLS 1.2 AEAD records before AEAD processing In tls1_cipher() the receive path invoked EVP_CTRL_AEAD_TLS1_AAD before checking that the record was long enough to contain the mandatory explicit IV and authentication tag. A record shorter than that overhead made the provider reject the impossible length, and the error path raised SSL_AD_INTERNAL_ERROR. Validate the record length against the explicit IV and tag length before AEAD processing and return failure without raising an alert, leaving the caller to react correctly: TLS reports bad_record_mac and DTLS silently discards the record. Co-Authored-By: Mounir IDRASSI <mounir.idrassi@amcrypto.jp> Fixes CVE-2026-75806 --- ssl/record/methods/tls1_meth.c | 8 ++ Index: openssl-1.1.1w/ssl/record/ssl3_record.c =================================================================== --- openssl-1.1.1w.orig/ssl/record/ssl3_record.c +++ openssl-1.1.1w/ssl/record/ssl3_record.c @@ -1034,6 +1034,29 @@ int tls1_enc(SSL *s, SSL3_RECORD *recs, & EVP_CIPH_FLAG_AEAD_CIPHER) { unsigned char *seq; + if (!sending) { + size_t eivlen = 0, taglen = 0; + int mode = EVP_CIPHER_mode(enc); + + if (mode == EVP_CIPH_GCM_MODE) { + eivlen = EVP_GCM_TLS_EXPLICIT_IV_LEN; + taglen = EVP_GCM_TLS_TAG_LEN; + } else if (mode == EVP_CIPH_CCM_MODE) { + eivlen = EVP_CCM_TLS_EXPLICIT_IV_LEN; + taglen = EVP_CCM_TLS_TAG_LEN; + } else { + taglen = EVP_CHACHAPOLY_TLS_TAG_LEN; + } + + /* + * Publicly invalid: the record is shorter than the mandatory + * AEAD overhead. Leave alert handling to the caller so TLS + * reports bad_record_mac and DTLS silently discards the record. + */ + if (reclen[ctr] < eivlen + taglen) + return 0; + } + seq = sending ? RECORD_LAYER_get_write_sequence(&s->rlayer) : RECORD_LAYER_get_read_sequence(&s->rlayer);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.