CVE-2022-32746
samba: AD users can induce a use-after-free in the server process with an LDAP add or modify request
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · July 27, 2022
Updated · November 22, 2025
Description
A flaw was found in the Samba AD LDAP server. The AD DC database audit logging module can access LDAP message values freed by a preceding database module, resulting in a use-after-free issue. This issue is only possible when modifying certain privileged attributes, such as userAccountControl.
Statement
Although versions of Samba shipped with Red Hat Enterprise Linux do not support Samba in AD mode, the affected code is shipped in RHEL with the libldb package.
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
Disabling the AD DC database audit logging prevents the use-after-free from occurring, as that is the only component that will access the original message.
CVSS / CWE
CVSS 3.1 · 5.4CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
CWE-416 · Use After Free