CVE Vulnerabilities

CVE-2022-32746

Use After Free

Published: Aug 25, 2022 | Modified: Nov 21, 2024
CVSS 3.x
5.4
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
CVSS 2.x
RedHat/V2
RedHat/V3
5.4 MODERATE
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory “belongs” to the code that operates on the new pointer.

Affected Software

NameVendorStart VersionEnd Version
SambaSamba4.3.0 (including)4.14.14 (excluding)
SambaSamba4.15.0 (including)4.15.9 (excluding)
SambaSamba4.16.0 (including)4.16.4 (excluding)
Red Hat Enterprise Linux 8RedHatlibldb-0:2.5.2-2.el8*
Red Hat Enterprise Linux 9RedHatlibldb-0:2.5.2-1.el9*
LdbUbuntubionic*
LdbUbuntuesm-infra/bionic*
LdbUbuntuesm-infra/focal*
LdbUbuntufocal*
LdbUbuntuimpish*
LdbUbuntujammy*
LdbUbuntutrusty/esm*
SambaUbuntubionic*
SambaUbuntudevel*
SambaUbuntuesm-infra/bionic*
SambaUbuntuesm-infra/focal*
SambaUbuntufocal*
SambaUbuntuimpish*
SambaUbuntujammy*
SambaUbuntukinetic*
SambaUbuntulunar*
SambaUbuntumantic*
SambaUbuntunoble*
SambaUbuntuoracular*
SambaUbuntuplucky*
SambaUbuntuquesting*
SambaUbuntutrusty/esm*

Potential Mitigations

References