Blame SOURCES/bind-9.16-CVE-2022-38177.patch

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