heimdal — security advisory
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.
- Products
- heimdal
- Affected versions
- Not specified
- Fixed versions
- 7.8.git20221117.28daf24+dfsg-1.1
- CVEs
- CVE-2022-45142
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 15:32 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2022-45142
heimdal
Fixed versions: 7.8.git20221117.28daf24+dfsg-1.1
heimdal
Fixed versions: 7.8.git20221117.28daf24+dfsg-1.1
heimdal
Fixed versions: 7.8.git20221117.28daf24+dfsg-1.1
Complete source record
{
"id": "58f18bcff1f3a06f211269c3e44b1dc52e4c28fae43ccc5c22d55d0916f1d587",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-45142",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2022-45142",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2022-45142",
"products": [
{
"name": {
"value": "heimdal",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.8.git20221117.28daf24+dfsg-1.1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "heimdal",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.8.git20221117.28daf24+dfsg-1.1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "heimdal",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "7.8.git20221117.28daf24+dfsg-1.1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2022-45142",
"aliases": [
"DEBIAN-CVE-2022-45142"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "7.8.git20221117.28daf24+dfsg-1.1"
}
]
}
],
"package": {
"name": "heimdal",
"purl": "pkg:deb/debian/heimdal?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-45142.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "7.8.git20221117.28daf24+dfsg-1.1"
}
]
}
],
"package": {
"name": "heimdal",
"purl": "pkg:deb/debian/heimdal?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-45142.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "7.8.git20221117.28daf24+dfsg-1.1"
}
]
}
],
"package": {
"name": "heimdal",
"purl": "pkg:deb/debian/heimdal?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-45142.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T08:03:06.600053101Z",
"provider": "osv",
"upstream": [
"CVE-2022-45142"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-45142"
]
},
"related_cves": [
{
"value": "CVE-2022-45142",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 325189,
"published_at": "2023-03-06T23:15:11.233+00:00"
}