1. CVE archive
  2. 2022
  3. CVE-2022-45142

CVE-2022-45142

7.5 High severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N 7.5 – High

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

VendorProductVersionPlatform
heimdal project heimdal 7.7.1 –
heimdal project heimdal 7.8.0 –
All 13 Heimdal Project Heimdal vulnerabilities

Vulnerability type

CWE-354 Improper Validation of Integrity Check Value

The product does not validate or incorrectly validates the integrity check values or checksums of a message.

Impact on systems

ScopeImpact
Integrity, Other Modify Application Data, Other
Integrity checks usually use a secret key that helps authenticate the data origin. Skipping integrity checking generally opens up the possibility that new data from an invalid source can be injected.
Integrity, Other Other
Data that is parsed and used may be corrupted.
Non-Repudiation, Other Hide Activities, Other
Without a checksum check, it is impossible to determine if any changes have been made to the data after it was sent.

How to prevent it

Implementation The protocol specification describes the algorithm used for calculating the checksum. It is then a matter of implementing the calculation and verifying that the calculated checksum and the received checksum match.

All 203 CWE-354 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org