Bug 2461605 (CVE-2026-41676)

Summary: CVE-2026-41676 rust-openssl: rust-openssl: Memory overflow allows arbitrary code execution or denial of service
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: akostadi, amasferr, anpicker, anthomas, bdettelb, brasmith, bsmejkal, cochase, crizzo, csutherl, dbosanac, derez, dmayorov, doconnor, dranck, dschmidt, dsoumis, eborisov, ehelms, erezende, eshamard, ggainey, gotiwari, gtanzill, hasun, jachapma, jbuscemi, jcantril, jclere, jfula, jgrulich, jhorak, jkoehler, jlanda, jlledo, jmitchel, jowilson, jreimann, juwatts, jvasik, kaycoth, kshier, lball, lphiri, mdessi, mhulan, mreynolds, mrizzi, mvyas, ngough, nmoumoul, nyancey, ometelka, osousa, pantinor, pcattana, pcreech, pjindal, plodge, progier, ptisnovs, rblanco, rchan, rhel-process-autobot, rjohnson, rmaucher, rojacob, simaishi, smallamp, smcdonal, snegrini, spichugi, stcannon, syedriko, szappis, tbordaz, teagle, tmalecek, tpopela, tsedmik, vashirov, vchlup, veshanka, watson-tool-maintainers, xdharmai, yguenane
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in rust-openssl, a library that provides cryptographic functionalities by binding to OpenSSL. When interacting with OpenSSL 1.1.x, the `Deriver::derive` function does not correctly manage buffer sizes during key derivation operations. This oversight can lead to a memory overflow, where data is written beyond the allocated buffer. An attacker could exploit this to cause a denial of service or potentially execute unauthorized code.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2461805, 2461806    
Bug Blocks:    

Description OSIDB Bzimport 2026-04-24 18:01:48 UTC
rust-openssl provides OpenSSL bindings for the Rust programming language.  From 0.9.27 to before 0.10.78, Deriver::derive (and PkeyCtxRef::derive) sets len = buf.len() and passes it as the in/out length to EVP_PKEY_derive, relying on OpenSSL to honor it. On OpenSSL 1.1.x, X25519, X448, DH and HKDF-extract ignore the incoming *keylen, unconditionally writing the full shared secret (32/56/prime-size bytes). A caller passing a short slice gets a heap/stack overflow from safe code. OpenSSL 3.x providers do check, so this only impacts older OpenSSL. This vulnerability is fixed in 0.10.78.