Vulnerability · Published Mar 6, 2023 · Assigned by redhat
CVE-2022-45142
High 7.5
In plain English
A high-severity security flaw in Samba. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | heimdal | 7.8.0-r2 | ALPINE-CVE-2022-45142 |
| Alpine:v3.21 | heimdal | 7.8.0-r2 | ALPINE-CVE-2022-45142 |
| Alpine:v3.22 | heimdal | 7.8.0-r2 | ALPINE-CVE-2022-45142 |
| Alpine:v3.23 | heimdal | 7.8.0-r2 | ALPINE-CVE-2022-45142 |
| Alpine:v3.24 | heimdal | 7.8.0-r2 | ALPINE-CVE-2022-45142 |
| Debian:12 | heimdal | 7.8.git20221117.28daf24+dfsg-1.1 | DEBIAN-CVE-2022-45142 |
| Debian:13 | heimdal | 7.8.git20221117.28daf24+dfsg-1.1 | DEBIAN-CVE-2022-45142 |
| Debian:14 | heimdal | 7.8.git20221117.28daf24+dfsg-1.1 | DEBIAN-CVE-2022-45142 |
| Ubuntu:22.04:LTS | heimdal | no fix listed | UBUNTU-CVE-2022-45142 |
| Ubuntu:24.04:LTS | heimdal | no fix listed | UBUNTU-CVE-2022-45142 |
| Ubuntu:25.10 | heimdal | no fix listed | UBUNTU-CVE-2022-45142 |
| Ubuntu:26.04:LTS | heimdal | no fix listed | UBUNTU-CVE-2022-45142 |
| Ubuntu:26.10 | heimdal | no fix listed | UBUNTU-CVE-2022-45142 |
Affected products (as reported)
Weakness: CWE-354 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N