Fixes: #1790
Fixes: GNUTLS-SA-2026-02-09-1
Fixes: CVE-2026-1584
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
* Version 3.8.12 (unreleased)
+** libgnutls: Fix NULL pointer dereference in PSK binder verification
+ A TLS 1.3 resumption attempt with an invalid PSK binder value in ClientHello
+ could lead to a denial of service attack via crashing the server.
+ The updated code guards against the problematic dereference.
+ Reported by Jaehun Lee.
+ [Fixes: GNUTLS-SA-2026-02-09-1, CVSS: high] [CVE-2026-1584]
+
** libgnutls: Fix multiple unexploitable overflows
Reported by Tim Rühsen (#1783, #1786).
* even for SHA384 PSKs, so we need to retry with SHA256
* to calculate the correct binder value for those.
*/
- if (pskcred->binder_algo == NULL && mac == GNUTLS_MAC_SHA384) {
+ if (pskcred && pskcred->binder_algo == NULL &&
+ mac == GNUTLS_MAC_SHA384) {
mac = GNUTLS_MAC_SHA256;
_gnutls_free_key_datum(&key);
goto retry_binder;