CVE Database›CVE-2022-3437

CVE-2022-3437

samba: heap buffer overflow in GSSAPI unwrap_des() and unwrap_des3() routines of Heimdal

Loading…

Severity

Moderate

Red Hat Product Security

5.9

CVSS 3.1

Review impact separately from score.

Published · October 25, 2022

Updated · February 26, 2026

Description

A heap-based buffer overflow vulnerability was found in Samba within the GSSAPI unwrap_des() and unwrap_des3() routines of Heimdal. The DES and Triple-DES decryption routines in the Heimdal GSSAPI library allow a length-limited write buffer overflow on malloc() allocated memory when presented with a maliciously small packet. This flaw allows a remote user to send specially crafted malicious data to the application, possibly resulting in a denial of service (DoS) attack.

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.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.9
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L

CWE-787 · Out-of-bounds Write