CVE-2022-32746 json
A flaw was found in the Samba AD LDAP server.
published 2022-08-25 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-35812
- cvss
- 5.4
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- samba samba 4.14.14, 4.15.9, 4.16.4
- samba Debian 14, Debian 13, Debian 12 2:4.16.4+dfsg-1
debian advisories DEBIAN-CVE-2022-32746
- ldb Ubuntu 20.04 LTS 2:2.2.3-0ubuntu0.20.04.3
- ldb Ubuntu 22.04 LTS 2:2.4.4-0ubuntu0.1
- samba Ubuntu 20.04 LTS 2:4.13.17~dfsg-0ubuntu1.20.04.1
- samba Ubuntu 22.04 LTS 2:4.15.9+dfsg-0ubuntu0.2
ubuntu advisories UBUNTU-CVE-2022-32746
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libldb RHEL 9 2.5.2-1.el9
- ldb-tools RHEL 9 2.5.2-1.el9
- python3-ldb RHEL 9 2.5.2-1.el9
- libldb RHEL 8 2.5.2-2.el8
- ldb-tools RHEL 8 2.5.2-2.el8
- python3-ldb RHEL 8 2.5.2-2.el8
- python-ldb-devel-common RHEL 8 2.5.2-2.el8
red hat advisories RHSA-2022:8318RHSA-2022:7730
- samba SLE Module for Basesystem 15 SP4, SLE Micro 5.4, SLE Micro 5.3 +3 more 4.15.13+git.636.53d93c5b9d6-150400.3.23.1
- ldb SLE Module for Basesystem 15 SP4, SLE Micro 5.4, SLE Micro 5.3 +2 more 2.4.4-150400.4.11.1
- samba SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Real Time 15 SP3 +7 more 4.15.13+git.636.53d93c5b9d6-150300.3.52.1
- ldb SLES for SAP 15 SP3, SLES 15 SP3-LTSS, SLE Real Time 15 SP3 +7 more 2.4.4-150300.3.23.1
- samba SLE Module for Basesystem 15 SP4, SLE Micro 5.3, SLE High Availability Extension 15 SP4 +2 more 4.15.13+git.591.ab36624310c-150400.3.19.1
- samba SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 +1 more 4.15.13+git.482.1ac2c665c7-3.74.1
- samba SLE Module for Python 2 15 SP3, SLE Module for Basesystem 15 SP3, SLE Micro 5.2 +4 more 4.15.12+git.535.7750e5c95ef-150300.3.43.1
- samba SLE Module for Basesystem 15 SP4, SLE High Availability Extension 15 SP4, openSUSE Leap 15.4 4.15.8+git.500.d5910280cc7-150400.3.11.1
suse advisories SUSE-SU-2023:1689-1SUSE-SU-2023:1687-1SUSE-SU-2023:0160-1SUSE-SU-2023:0081-1SUSE-SU-2022:4395-1SUSE-SU-2022:2659-1
- ldb openSUSE Tumbleweed 2.5.2-1.1
- samba openSUSE Tumbleweed 4.16.4+git.297.1497eb221ed-1.1
opensuse advisories openSUSE-SU-2024:12241-1openSUSE-SU-2024:12243-1
- libldb AlmaLinux 9 2.5.2-1.el9
- ldb-tools AlmaLinux 9 2.5.2-1.el9
- python3-ldb AlmaLinux 9 2.5.2-1.el9
- libldb AlmaLinux 8 2.5.2-2.el8
- ldb-tools AlmaLinux 8 2.5.2-2.el8
- python3-ldb AlmaLinux 8 2.5.2-2.el8
- python-ldb-devel-common AlmaLinux 8 2.5.2-2.el8
almalinux advisories ALSA-2022:8318ALSA-2022:7730
- libldb Rocky Linux 9 2.5.2-1.el9
- libldb Rocky Linux 8 2.5.2-2.el8
rocky linux advisories RLSA-2022:8318RLSA-2022:7730
- samba Alpine 3.14 4.14.14-r0
- samba Alpine 3.16, Alpine 3.15 4.15.12-r0
- samba Alpine 3.24, Alpine 3.23, Alpine 3.22 +5 more 4.15.9-r0
alpine advisories ALPINE-CVE-2022-32746
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- samba Azure Linux 3.0 4.18.3-1
- libldb Azure Linux 3.0 2.7.2-1
azure linux advisories AZL-37015AZL-45138
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- samba Arch Linux 4.16.4-1
arch linux advisories AVG-2782
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-32746 updated cvss 5.4
samba: AD users can induce a use-after-free in the server process with an LDAP add or modify request
-
Red Hat Enterprise Linux 6 pyldb, libldb, ldb-tools Red Hat Enterprise Linux 7 pyldb, libldb, ldb-tools Red Hat Storage 3 pyldb, libldb, ldb-toolsaffected: workaround, no fix planned “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.”
-
Red Hat CodeReady Linux Builder (v. 8) python-ldb-devel-common 2.5.2-2.el8fixed: vendor fix “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.” RHSA-2022:7730
-
Red Hat CodeReady Linux Builder (v. 9) libldb-devel 2.5.2-1.el9, libldb-debuginfo 2.5.2-1.el9, libldb-debugsource 2.5.2-1.el9, ldb-tools-debuginfo 2.5.2-1.el9, python3-ldb-debuginfo 2.5.2-1.el9fixed: vendor fix “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.” RHSA-2022:8318
-
Red Hat Enterprise Linux BaseOS (v. 8) libldb 2.5.2-2.el8, ldb-tools 2.5.2-2.el8, python3-ldb 2.5.2-2.el8fixed: vendor fix “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.” RHSA-2022:7730
-
Red Hat Enterprise Linux BaseOS (v. 9) libldb 2.5.2-1.el9, ldb-tools 2.5.2-1.el9, python3-ldb 2.5.2-1.el9fixed: vendor fix “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.” RHSA-2022:8318
-
Red Hat Enterprise Linux 6 samba, samba4, samba4-dc, samba-swat, samba4-libs, samba4-pidl, +17 more Red Hat Enterprise Linux 7 ctdb, samba, samba-dc, ctdb-tests, samba-libs, samba-pidl, +18 more Red Hat Enterprise Linux 8 ctdb, samba, libnetapi, ctdb-tests, samba-libs, samba-pidl, +24 more Red Hat Enterprise Linux 9 ctdb, samba, libldb, ldb-tools, libnetapi, samba-libs, +27 more Red Hat Storage 3 ctdb, samba, samba-dc, ctdb-tests, samba-libs, samba-pidl, +21 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.32% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L |
Affected products
- n/a samba
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
samba.org
/samba/security/CVE-2022-32746.html
patch, vendor-advisory
-
security.gentoo.org
/glsa/202309-06
vendor-advisory
Sources
- CVE List CVE-2022-32746
- NVD CVE-2022-32746
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.