CVE Database›Document archive›CVE-2022-45142

CVE-2022-45142

samba: fix introduced a logic inversion

Loading…

Severity

Important

Red Hat Product Security

—

CVSS

Review impact separately from score.

Published · February 8, 2023

Updated · November 21, 2025

Description

The fix for CVE-2022-3437 included changing memcmp to be constant time and a workaround for a compiler bug by adding "!= 0" comparisons to the result of memcmp. When these patches were backported to the heimdal-7.7.1 and heimdal-7.8.0 branches (and possibly other branches) a logic inversion sneaked in causing the validation of message integrity codes in gssapi/arcfour to be inverted.

Statement

Samba in RHEL is not compiled to use the Heimdal Kerberos library.

Versions of Samba shipped in Red Hat Enterprise Linux are compiled to use the system MIT Kerberos using the "--with-system-mitkrb5" argument, and these installations are not impacted, as the vulnerable code is not compiled into Samba.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CWE-354 · Improper Validation of Integrity Check Value