CVE-2026-58222Samba: samba ad ldap compare filter injection and trusted-request confusion disclose…
A security flaw combining LDAP filter injection and improper authorization checks was found in Samba Active Directory Domain Controller (AD DC). When processing LDAP Compare requests, Samba fails to properly validate user-supplied attribute names and executes the resulting internal database search in a trusted context, bypassing normal Access Control List (ACL) enforcement. An authenticated low-privilege domain user can exploit these flaws to disclose confidential Active Directory attributes that would normally be inaccessible. The disclosed information may be leveraged to derive sensitive authentication material, potentially leading to privilege escalation and complete domain compromise. For example: In deployments configured with Group Managed Service Accounts (gMSAs), an attacker can extract the "msKds-RootKeyData" attribute and derive gMSA passwords offline, potentially leading to complete domain compromise if privileged gMSAs are present.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | samba | Fixed | 2:4.23.6+dfsg-1ubuntu2.2 | UBUNTU-CVE-2026-58222 |
| Ubuntu 24.04 | samba | Fixed | 2:4.19.5+dfsg-4ubuntu9.7 | UBUNTU-CVE-2026-58222 |
| Ubuntu 22.04 | samba | Fixed | 2:4.15.13+dfsg-0ubuntu1.13 | UBUNTU-CVE-2026-58222 |
| Ubuntu 20.04 | samba | Fix pending | UBUNTU-CVE-2026-58222 | |
| Ubuntu 18.04 | samba | Fix pending | UBUNTU-CVE-2026-58222 | |
| Ubuntu 16.04 | samba | Fix pending | UBUNTU-CVE-2026-58222 | |
| Ubuntu 14.04 | samba | Fix pending | UBUNTU-CVE-2026-58222 | |
| Debian 14 | samba | Fixed | 2:4.24.5+dfsg-1 | DEBIAN-CVE-2026-58222 |
| Debian 13 | samba | Fixed | 2:4.22.10+dfsg-0+deb13u2 | DEBIAN-CVE-2026-58222 |
| Debian 12 | samba | Fix pending | DEBIAN-CVE-2026-58222 | |
| Red Hat Enterprise Linux 10 | ldb-tools | Not affected | ||
| Red Hat Enterprise Linux 10 | libldb | Not affected | ||
| Red Hat Enterprise Linux 10 | libldb-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | libnetapi | Not affected | ||
| Red Hat Enterprise Linux 10 | libnetapi-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 10 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 10 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-ldb | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-samba | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-samba-dc | Not affected | ||
| Red Hat Enterprise Linux 10 | python3-samba-test | Not affected | ||
| Red Hat Enterprise Linux 10 | samba | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-dcerpc | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-gpupdate | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-ldb-ldap-modules | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-tools | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-usershares | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-vfs-iouring | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 10 | samba-winexe | Not affected | ||
| Red Hat Enterprise Linux 9 | ctdb | Not affected | ||
| Red Hat Enterprise Linux 9 | ldb-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | libldb | Not affected | ||
| Red Hat Enterprise Linux 9 | libldb-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libnetapi | Not affected | ||
| Red Hat Enterprise Linux 9 | libnetapi-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 9 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 9 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-ldb | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba-dc | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | python3-samba-test | Not affected | ||
| Red Hat Enterprise Linux 9 | samba | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-dcerpc | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-gpupdate | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-ldb-ldap-modules | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-tools | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-usershares | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-vfs-iouring | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 9 | samba-winexe | Not affected | ||
| Red Hat Enterprise Linux 8 | ctdb | Not affected | ||
| Red Hat Enterprise Linux 8 | ctdb-tests | Not affected | ||
| Red Hat Enterprise Linux 8 | libnetapi | Not affected | ||
| Red Hat Enterprise Linux 8 | libnetapi-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 8 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 8 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba-dc | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-samba-test | Not affected | ||
| Red Hat Enterprise Linux 8 | samba | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-dcerpc | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-ldb-ldap-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-usershares | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-vfs-iouring | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 8 | samba-winexe | Not affected | ||
| Red Hat Enterprise Linux 7 | ctdb | Not affected | ||
| Red Hat Enterprise Linux 7 | ctdb-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ctdb-tests | Not affected | ||
| Red Hat Enterprise Linux 7 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 7 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libwbclient | Not affected | ||
| Red Hat Enterprise Linux 7 | libwbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | samba | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-client-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-common-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-common-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-dc | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-krb5-printing | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-pidl | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-python | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-python-test | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-test | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-test-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-test-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-vfs-glusterfs | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 7 | samba-winbind-modules | Not affected | ||
| Red Hat Enterprise Linux 6 | libsmbclient | Not affected | ||
| Red Hat Enterprise Linux 6 | libsmbclient-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | samba | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-client | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-common | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-doc | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-domainjoin-gui | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-glusterfs | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-swat | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | samba-winbind-krb5-locator | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4 | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-client | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-common | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-dc | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-dc-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-pidl | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-python | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-swat | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-test | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-winbind | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-winbind-clients | Not affected | ||
| Red Hat Enterprise Linux 6 | samba4-winbind-krb5-locator | Not affected |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
References
- https://access.redhat.com/security/cve/CVE-2026-58222
- https://bugzilla.redhat.com/show_bug.cgi?id=2502722
- https://bugzilla.samba.org/show_bug.cgi?id=16148
- https://www.samba.org/samba/security/CVE-2026-58222.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.