CBL-Mariner/SPECS/heimdal/CVE-2022-45142.patch

22 строки
726 B
Diff

diff --color --color -ruN a/lib/gssapi/krb5/arcfour.c b/lib/gssapi/krb5/arcfour.c
--- a/lib/gssapi/krb5/arcfour.c 2023-03-15 00:23:03.051530897 +0000
+++ b/lib/gssapi/krb5/arcfour.c 2023-03-15 00:23:46.771143241 +0000
@@ -365,7 +365,7 @@
return GSS_S_FAILURE;
}
- cmp = (ct_memcmp(cksum_data, p + 8, 8) == 0);
+ cmp = (ct_memcmp(cksum_data, p + 8, 8) != 0);
if (cmp) {
*minor_status = 0;
return GSS_S_BAD_MIC;
@@ -730,7 +730,7 @@
return GSS_S_FAILURE;
}
- cmp = (ct_memcmp(cksum_data, p0 + 16, 8) == 0); /* SGN_CKSUM */
+ cmp = (ct_memcmp(cksum_data, p0 + 16, 8) != 0); /* SGN_CKSUM */
if (cmp) {
_gsskrb5_release_buffer(minor_status, output_message_buffer);
*minor_status = 0;