SECURITY UPDATE: NULL pointer dereference in CMS EnvelopedData processing
when a KeyAgreeRecipientInfo message omits the optional parameters field of
KeyEncryptionAlgorithmIdentifier. Both dhcmssetsharedinfo() and
ecdhcmssetsharedinfo() dereference alg->parameter without a NULL check,
allowing a remote attacker to crash applications that process untrusted CMS
data (e.g. S/MIME decryption), causing Denial of Service before any
authentication or cryptographic operations occur.
debian/patches/CVE-2026-28389.patch: use X509ALGORget0() to safely
extract algorithm OID and parameter type/value in dhcmssetsharedinfo()
in crypto/dh/dhameth.c and ecdhcmssetsharedinfo() in
crypto/ec/ecameth.c instead of dereferencing alg->parameter directly