Back

HIGH

samba: fix introduced a logic inversion

Published Mar 6, 2023

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.

Affected products

Remediation

Red Hat 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.

Metrics

Weaknesses (1)

References (6)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner redhat
Published Mar 6, 2023
Updated Mar 6, 2025
Reserved Nov 10, 2022
CISA Vulnrichment
Updated Mar 6, 2025
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Important
Public date Feb 8, 2023