CVE-2022-32746
published 2022-08-25CVE-2022-32746: 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…
PriorityP428medium5.4CVSS 3.1
AVNACLPRLUINSUCNILAL
EPSS
1.06%
61.2th percentile
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.
Affected
15 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | samba | < samba 2:4.16.4+dfsg-1 (bookworm) | samba 2:4.16.4+dfsg-1 (bookworm) |
| msrc | azl3_libldb_2.7.2-1_on_azure_linux_3.0 | — | — |
| msrc | azl3_samba_4.18.3-1_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| samba | samba | — | — |
| samba | samba | >= 0 < 2:4.13.13+dfsg-1~deb11u5 | 2:4.13.13+dfsg-1~deb11u5 |
| samba | samba | >= 0 < 2:4.16.4+dfsg-1 | 2:4.16.4+dfsg-1 |
| samba | samba | >= 0 < 2:4.16.4+dfsg-1 | 2:4.16.4+dfsg-1 |
| samba | samba | >= 0 < 2:4.16.4+dfsg-1 | 2:4.16.4+dfsg-1 |
| samba | samba | >= 0 < 2:4.13.17~dfsg-0ubuntu1.20.04.1 | 2:4.13.17~dfsg-0ubuntu1.20.04.1 |
| samba | samba | >= 0 < 2:4.15.9+dfsg-0ubuntu0.2 | 2:4.15.9+dfsg-0ubuntu0.2 |
| samba | samba | >= 4.15.0 < 4.15.9 | 4.15.9 |
| samba | samba | >= 4.16.0 < 4.16.4 | 4.16.4 |
| samba | samba | >= 4.3.0 < 4.14.14 | 4.14.14 |
CVSS provenance
nvdv3.15.4MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
osv6.5MEDIUM
vendor_ubuntu6.5MEDIUM
vendor_debian5.4MEDIUM
vendor_msrc5.4MEDIUM
vendor_redhat5.4MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
VulDB
Samba up to 4.14.13/4.15.8/4.16.3 AD DC Database Audit Logging use after free (EUVD-2022-35812 / Nessus ID 211259)
vuldb·2026-06-02·CVSS 5.4
CVE-2022-32746 [MEDIUM] Samba up to 4.14.13/4.15.8/4.16.3 AD DC Database Audit Logging use after free (EUVD-2022-35812 / Nessus ID 211259)
A vulnerability, which was classified as critical, was found in Samba up to 4.14.13/4.15.8/4.16.3. Impacted is an unknown function of the component AD DC Database Audit Logging. Such manipulation leads to use after free.
This vulnerability is listed as CVE-2022-32746. The attack may be performed from remote. There is no available exploit.
You should upgrade the affected component.
GHSA
GHSA-hv8p-prvv-v646: A flaw was found in the Samba AD LDAP server
ghsa_unreviewed·2022-08-26
CVE-2022-32746 [MEDIUM] CWE-416 GHSA-hv8p-prvv-v646: A flaw was found in the Samba AD LDAP server
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.
OSV
CVE-2022-32746: A flaw was found in the Samba AD LDAP server
osv·2022-08-25·CVSS 5.4
CVE-2022-32746 [MEDIUM] CVE-2022-32746: A flaw was found in the Samba AD LDAP server
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.
OSV
samba vulnerabilities
osv·2022-08-01·CVSS 6.5
CVE-2021-3670 [MEDIUM] samba vulnerabilities
samba vulnerabilities
It was discovered that Samba did not handle MaxQueryDuration when being
used in AD DC configurations, contrary to expectations. This issue only
affected Ubuntu 20.04 LTS. (CVE-2021-3670)
Luke Howard discovered that Samba incorrectly handled certain restrictions
associated with changing passwords. A remote attacker being requested to
change passwords could possibly use this issue to escalate privileges.
(CVE-2022-2031)
Luca Moro discovered that Samba incorrectly handled certain SMB1
communications. A remote attacker could possibly use this issue to obtain
sensitive memory contents. (CVE-2022-32742)
Joseph Sutton discovered that Samba incorrectly handled certain password
change requests. A remote attacker could use this issue to change passwords
of other users, resu
Microsoft
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 issu
vendor_msrc·2022-08-09·CVSS 5.4
CVE-2022-32746 [MEDIUM] CWE-416 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 issu
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog po
Ubuntu
Samba vulnerabilities
vendor_ubuntu·2022-08-01·CVSS 6.5
CVE-2022-32744 [MEDIUM] Samba vulnerabilities
Title: Samba vulnerabilities
Summary: Several security issues were fixed in Samba.
It was discovered that Samba did not handle MaxQueryDuration when being
used in AD DC configurations, contrary to expectations. This issue only
affected Ubuntu 20.04 LTS. (CVE-2021-3670)
Luke Howard discovered that Samba incorrectly handled certain restrictions
associated with changing passwords. A remote attacker being requested to
change passwords could possibly use this issue to escalate privileges.
(CVE-2022-2031)
Luca Moro discovered that Samba incorrectly handled certain SMB1
communications. A remote attacker could possibly use this issue to obtain
sensitive memory contents. (CVE-2022-32742)
Joseph Sutton discovered that Samba incorrectly handled certain password
change requests. A remote attacker
Red Hat
samba: AD users can induce a use-after-free in the server process with an LDAP add or modify request
vendor_redhat·2022-07-27·CVSS 5.4
CVE-2022-32746 [MEDIUM] CWE-416 samba: AD users can induce a use-after-free in the server process with an LDAP add or modify request
samba: AD users can induce a use-after-free in the server process with an LDAP add or modify request
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.
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,
Debian
CVE-2022-32746: samba - A flaw was found in the Samba AD LDAP server. The AD DC database audit logging m...
vendor_debian·2022·CVSS 5.4
CVE-2022-32746 [MEDIUM] CVE-2022-32746: samba - A flaw was found in the Samba AD LDAP server. The AD DC database audit logging m...
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.
Scope: local
bookworm: resolved (fixed in 2:4.16.4+dfsg-1)
bullseye: resolved (fixed in 2:4.13.13+dfsg-1~deb11u5)
forky: resolved (fixed in 2:4.16.4+dfsg-1)
sid: resolved (fixed in 2:4.16.4+dfsg-1)
trixie: resolved (fixed in 2:4.16.4+dfsg-1)
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2022-08-25
Published