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

3e768d
From 132ef295b8407f91e6922f4dfc4f30f1790b61c5 Mon Sep 17 00:00:00 2001
3e768d
From: Petr Mensik <pemensik@redhat.com>
3e768d
Date: Tue, 20 Sep 2022 11:22:47 +0200
3e768d
Subject: [PATCH 4/4] Fix CVE-2022-38178
3e768d
3e768d
5962.	[security]	Fix memory leak in EdDSA verify processing.
3e768d
			(CVE-2022-38178) [GL #3487]
3e768d
---
3e768d
 lib/dns/openssleddsa_link.c | 4 ++--
3e768d
 1 file changed, 2 insertions(+), 2 deletions(-)
3e768d
3e768d
diff --git a/lib/dns/openssleddsa_link.c b/lib/dns/openssleddsa_link.c
3e768d
index 6a6a74d..3157011 100644
3e768d
--- a/lib/dns/openssleddsa_link.c
3e768d
+++ b/lib/dns/openssleddsa_link.c
3e768d
@@ -234,11 +234,11 @@ openssleddsa_verify(dst_context_t *dctx, const isc_region_t *sig) {
3e768d
 	}
3e768d
 #endif /* if HAVE_OPENSSL_ED448 */
3e768d
 	if (siglen == 0) {
3e768d
-		return (ISC_R_NOTIMPLEMENTED);
3e768d
+		DST_RET(ISC_R_NOTIMPLEMENTED);
3e768d
 	}
3e768d
 
3e768d
 	if (sig->length != siglen) {
3e768d
-		return (DST_R_VERIFYFAILURE);
3e768d
+		DST_RET(DST_R_VERIFYFAILURE);
3e768d
 	}
3e768d
 
3e768d
 	isc_buffer_usedregion(buf, &tbsreg);
3e768d
-- 
3e768d
2.37.3
3e768d