cve.bz

CVE-2022-32746 samba samba: Use After Free

5.4 mediumEPSS 1.4%Fix available

Medium (5.4) in samba samba. EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:L
EPSS
1.4% (unchanged from 1.4% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-32746 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-32746?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-32746?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-32746 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
samba:sambafrom 4.3.0 before 4.14.14
samba:sambafrom 4.15.0 before 4.15.9
samba:sambafrom 4.16.0 before 4.16.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11samba2:4.13.13+dfsg-1~deb11u5DSA-5205-1
Debian12, 13, 14samba2:4.16.4+dfsg-1DEBIAN-CVE-2022-32746
Ubuntu16.04:LTS, 18.04:LTSldbno fix listedUBUNTU-CVE-2022-32746
Ubuntu20.04:LTSldb2:2.2.3-0ubuntu0.20.04.3UBUNTU-CVE-2022-32746
Ubuntu20.04:LTSsamba2:4.13.17~dfsg-0ubuntu1.20.04.1UBUNTU-CVE-2022-32746 USN-5542-1
Ubuntu22.04:LTSldb2:2.4.4-0ubuntu0.1UBUNTU-CVE-2022-32746
Ubuntu22.04:LTSsamba2:4.15.9+dfsg-0ubuntu0.2UBUNTU-CVE-2022-32746 USN-5542-1
UbuntuPro:14.04:LTSldb, sambano fix listedUBUNTU-CVE-2022-32746
UbuntuPro:16.04:LTS, Pro:18.04:LTSsambano fix listedUBUNTU-CVE-2022-32746
Red Hatenterprise_linux:8::baseoslibldb, ldb-tools, python3-ldb and 5 more0:2.5.2-2.el8RHSA-2022:7730
Red Hatenterprise_linux:8::crblibldb-debuginfo, python3-ldb-devel, libldb-debugsource and 3 more0:2.5.2-2.el8RHSA-2022:7730
Red Hatenterprise_linux:9::baseoslibldb, ldb-tools, python3-ldb and 4 more0:2.5.2-1.el9RHSA-2022:8318
Red Hatenterprise_linux:9::crblibldb-devel, libldb-debuginfo, libldb-debugsource and 2 more0:2.5.2-1.el9RHSA-2022:8318
SUSEEnterprise Storage 7.1, Linux Enterprise High Availability Extension 15 SP3, Linux Enterprise High Performance Computing 15 SP3-ESPOS and 7 moresamba4.15.13+git.636.53d93c5b9d6-150300.3.52.1SUSE-SU-2023:1687-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Availability Extension 15 SP3, Linux Enterprise Micro 5.2 and 2 moresamba4.15.12+git.535.7750e5c95ef-150300.3.43.1SUSE-SU-2022:4395-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Availability Extension 15 SP3, Linux Enterprise Micro 5.2 and 2 moresamba4.15.8+git.500.d5910280cc7-150300.3.37.1SUSE-SU-2022:2586-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 7 moreldb2.4.4-150300.3.23.1SUSE-SU-2023:1687-1
SUSEEnterprise Storage 7.1, Linux Enterprise Micro 5.1, Linux Enterprise Micro 5.2 and 1 moreldb2.4.3-150300.3.20.1SUSE-SU-2022:2586-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 1 moresamba4.15.13+git.482.1ac2c665c7-3.74.1SUSE-SU-2023:0081-1
SUSELinux Enterprise High Availability Extension 12 SP5, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5 and 1 moresamba4.15.8+git.462.e73f4310487-3.68.1SUSE-SU-2022:2582-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Micro 5.3, Linux Enterprise Micro 5.4 and 1 moresamba4.15.13+git.636.53d93c5b9d6-150400.3.23.1SUSE-SU-2023:1689-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Micro 5.3, Linux Enterprise Module for Basesystem 15 SP4samba4.15.13+git.591.ab36624310c-150400.3.19.1SUSE-SU-2023:0160-1
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Module for Basesystem 15 SP4samba4.15.8+git.500.d5910280cc7-150400.3.11.1SUSE-SU-2022:2659-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Module for Basesystem 15 SP4ldb2.4.4-150400.4.11.1SUSE-SU-2023:1689-1
SUSELinux Enterprise Module for Basesystem 15 SP4ldb2.4.3-150400.4.8.1SUSE-SU-2022:2659-1
openSUSELeap 15.3ldb2.4.3-150300.3.20.1SUSE-SU-2022:2586-1
openSUSELeap 15.3samba4.15.8+git.500.d5910280cc7-150300.3.37.1SUSE-SU-2022:2586-1
openSUSELeap 15.3, Leap Micro 5.2samba4.15.12+git.535.7750e5c95ef-150300.3.43.1SUSE-SU-2022:4395-1
openSUSELeap 15.4ldb2.4.3-150400.4.8.1SUSE-SU-2022:2659-1
openSUSELeap 15.4samba4.15.8+git.500.d5910280cc7-150400.3.11.1SUSE-SU-2022:2659-1
openSUSELeap 15.4, Leap Micro 5.3ldb2.4.4-150400.4.11.1SUSE-SU-2023:1689-1
openSUSELeap 15.4, Leap Micro 5.3samba4.15.13+git.591.ab36624310c-150400.3.19.1SUSE-SU-2023:0160-1
openSUSELeap 15.4, Leap Micro 5.3samba4.15.13+git.636.53d93c5b9d6-150400.3.23.1SUSE-SU-2023:1689-1
openSUSELeap Micro 5.2ldb2.4.3-150300.3.20.1SUSE-SU-2022:2586-2
openSUSELeap Micro 5.2samba4.15.8+git.500.d5910280cc7-150300.3.37.1SUSE-SU-2022:2586-2
openSUSETumbleweedldb2.5.2-1.1openSUSE-SU-2024:12241-1
openSUSETumbleweedsamba4.16.4+git.297.1497eb221ed-1.1openSUSE-SU-2024:12243-1
AlmaLinux8libldb, ldb-tools, python3-ldb and 3 more2.5.2-2.el8ALSA-2022:7730
AlmaLinux9libldb, ldb-tools, python3-ldb and 1 more2.5.2-1.el9ALSA-2022:8318
Rocky Linux8libldb0:2.5.2-2.el8RLSA-2022:7730
Rocky Linux9libldb0:2.5.2-1.el9RLSA-2022:8318
Alpinev3.14samba4.14.14-r0ALPINE-CVE-2022-32746
Alpinev3.15, v3.16samba4.15.12-r0ALPINE-CVE-2022-32746
Alpinev3.17, v3.18, v3.19 and 5 moresamba4.15.9-r0ALPINE-CVE-2022-32746
Azure Linux2sambano fix listedAZL-10707
Azure Linux3libldb2.7.2-1AZL-45138
Azure Linux3samba4.18.3-1AZL-37015

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's 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.

Red Hat's 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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8libldb-0:2.5.2-2.el8Fixed 2022-11-08RHSA-2022:7730
Red Hat Enterprise Linux 9libldb-0:2.5.2-1.el9Fixed 2022-11-15RHSA-2022:8318
Red Hat Enterprise Linux 6libldbOut of support scope
Red Hat Enterprise Linux 6sambaNot affected
Red Hat Enterprise Linux 6samba4Not affected
Red Hat Enterprise Linux 7libldbOut of support scope
Red Hat Enterprise Linux 7sambaNot affected
Red Hat Enterprise Linux 8sambaNot affected
Red Hat Enterprise Linux 9sambaNot affected
Red Hat Storage 3libldbWill not fix
Red Hat Storage 3sambaNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-32746.

References

Check your stackJSON