88d8b6
From 0095b8a6b09173ab5eb48611dc0233d2a6337dc1 Mon Sep 17 00:00:00 2001
88d8b6
From: Petr Mensik <pemensik@redhat.com>
88d8b6
Date: Tue, 20 Sep 2022 11:21:45 +0200
88d8b6
Subject: [PATCH] Fix CVE-2022-38177
88d8b6
88d8b6
5961.	[security]	Fix memory leak in ECDSA verify processing.
88d8b6
			(CVE-2022-38177) [GL #3487]
88d8b6
---
88d8b6
 lib/dns/opensslecdsa_link.c | 2 +-
88d8b6
 1 file changed, 1 insertion(+), 1 deletion(-)
88d8b6
88d8b6
diff --git a/lib/dns/opensslecdsa_link.c b/lib/dns/opensslecdsa_link.c
88d8b6
index 83b5b51..7576e04 100644
88d8b6
--- a/lib/dns/opensslecdsa_link.c
88d8b6
+++ b/lib/dns/opensslecdsa_link.c
88d8b6
@@ -224,7 +224,7 @@ opensslecdsa_verify(dst_context_t *dctx, const isc_region_t *sig) {
88d8b6
 		siglen = DNS_SIG_ECDSA384SIZE;
88d8b6
 
88d8b6
 	if (sig->length != siglen)
88d8b6
-		return (DST_R_VERIFYFAILURE);
88d8b6
+		DST_RET(DST_R_VERIFYFAILURE);
88d8b6
 
88d8b6
 	if (!EVP_DigestFinal_ex(evp_md_ctx, digest, &dgstlen))
88d8b6
 		DST_RET (dst__openssl_toresult3(dctx->category,
88d8b6
-- 
88d8b6
2.37.3
88d8b6