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

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