Projects
home:rottame:vhosts-ng
openssl-1_1
openssl-CVE-2026-63072.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openssl-CVE-2026-63072.patch of Package openssl-1_1
commit bfa46dc3638d57197deb27a2c368a14e8a7ea7c7 Author: Daniel Kubec <kubec@openssl.foundation> Date: Sun Aug 2 00:23:39 2026 +0000 Fix heap buffer overflow (8-byte OOB write) in AES-WRAP-PAD unwrap On its integrity-failure paths that primitive writes and cleanses up to inlen bytes of the output buffer. Size the buffer for that worst case so a failed unwrap cannot write past the allocation. Fixes CVE-2026-63072 Index: openssl-1.1.1w/crypto/cms/cms_kari.c =================================================================== --- openssl-1.1.1w.orig/crypto/cms/cms_kari.c +++ openssl-1.1.1w/crypto/cms/cms_kari.c @@ -193,6 +193,7 @@ static int cms_kek_cipher(unsigned char int rv = 0; unsigned char *out = NULL; int outlen; + size_t outsize; keklen = EVP_CIPHER_CTX_key_length(kari->ctx); if (keklen > EVP_MAX_KEY_LENGTH) return 0; @@ -205,7 +206,13 @@ static int cms_kek_cipher(unsigned char /* obtain output length of ciphered key */ if (!EVP_CipherUpdate(kari->ctx, NULL, &outlen, in, inlen)) goto err; - out = OPENSSL_malloc(outlen); + /* + * On its integrity-failure paths that primitive writes and cleanses up to + * inlen bytes of the output buffer. Size the buffer for that worst case so + * a failed unwrap cannot write past the allocation. + */ + outsize = (size_t)outlen < inlen ? inlen : (size_t)outlen; + out = OPENSSL_malloc(outsize); if (out == NULL) goto err; if (!EVP_CipherUpdate(kari->ctx, out, &outlen, in, inlen))
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
.