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

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

Name Vendor Start Version End Version
Samba Samba 4.3.0 (including) 4.14.14 (excluding)
Samba Samba 4.15.0 (including) 4.15.9 (excluding)
Samba Samba 4.16.0 (including) 4.16.4 (excluding)
Red Hat Enterprise Linux 8 RedHat libldb-0:2.5.2-2.el8 *
Red Hat Enterprise Linux 9 RedHat libldb-0:2.5.2-1.el9 *
Ldb Ubuntu bionic *
Ldb Ubuntu esm-infra/bionic *
Ldb Ubuntu esm-infra/focal *
Ldb Ubuntu focal *
Ldb Ubuntu impish *
Ldb Ubuntu jammy *
Ldb Ubuntu trusty/esm *
Samba Ubuntu bionic *
Samba Ubuntu devel *
Samba Ubuntu esm-infra/bionic *
Samba Ubuntu esm-infra/focal *
Samba Ubuntu focal *
Samba Ubuntu impish *
Samba Ubuntu jammy *
Samba Ubuntu kinetic *
Samba Ubuntu lunar *
Samba Ubuntu mantic *
Samba Ubuntu noble *
Samba Ubuntu oracular *
Samba Ubuntu plucky *
Samba Ubuntu trusty/esm *

Potential Mitigations

References