An LDAP search can filter on single bits of an integer attribute with the bitwise AND and OR matching rules, and Samba’s directory library libldb answers it in ldb_match_bitmask() in ldb_match.c. The Red Hat CNA record says what the function did not do: “The directory marks an attribute the caller is not allowed to read, and the bitwise comparison uses that value anyway.” So “a low-privileged network attacker or user who can list a directory object searches for one bit of an integer attribute on that object. The directory includes the object when that bit is set, and it removes the attribute from the answer. Repeating the search for each bit discloses the integer.” Values that are not integers, “including a password or a key stored as bytes”, are not returned as numbers. Red Hat rates it Moderate, 4.3. On Samba AD domain controllers, plan for the libldb update when it ships; until then, assume any authenticated user can read the integer attributes your ACLs hide, which on the root key object means the msKds timestamps and version.
CVE-2026-125635 at a glance.
| Component | Samba: the libldb directory library, ldb_match_bitmask() in lib/ldb/common/ldb_match.c, used by the AD DC’s LDAP server for the bitwise matching rules 1.2.840.113556.1.4.803 and .804 |
| Affected versions | libldb 2.5.3, 2.6.2, 2.7.2 and 2.8.0 to 2.11.0, per the record; Red Hat’s bug says the check was introduced on 14 February 2023 by the CVE-2023-0614 change “Centralise checking for inaccessible matches”, so Samba 4.16.10, 4.17.7, 4.18.1 and everything later including 4.25.1 and master; 4.16.9, 4.17.6, 4.18.0 and 4.15.x are not affected. Red Hat: RHEL 8.10 and 9.4 libldb, RHEL 9.6 and 10 samba, OpenShift 4.16 to 5.0 affected; RHEL 6, 7 and the older minor releases not |
| Fixed in | No release yet. The upstream fix is merge request samba!4811, “ldb: Don’t let the bitwise matching rules match inaccessible attributes (bug 16214)”, by Zackary Loevseth against master, opened 10 November 2026, two commits, CI passed, with no merged state shown on 1 December. Debian cites master commit 8def60ab as the fix; that page refused our reader. Samba 4.25.2 (30 November) and 4.24.9 (1 December) fix CVE-2026-120377 and do not mention this one |
| Severity | Red Hat (CNA) Moderate, CVSS 3.1 4.3 (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N), CWE-862 (missing authorisation), metrics marked preliminary; Debian “Minor issue”, no DSA; NVD Awaiting Analysis with the CNA score. Ubuntu, SUSE, Alpine and Arch pages were unreachable |
| Exploited in the wild | Not on the CISA KEV catalogue (2026.11.30). EPSS 0.00531 (46th percentile) on 1 December 2026 |
| Who is exposed | Samba AD domain controllers, where the LDAP server runs on libldb and users can search; Red Hat’s page says it is reachable in default configurations and that “Domain Admin is not required”. The attacker is any authenticated user who can list the object. File servers and member servers that do not run the AD DC do not expose the LDAP search path; Red Hat marks its non-DC samba builds not affected for that reason |
| Published | CVE record 30 November 2026 (Red Hat CNA); this page built 1 December 2026, last updated 1 December 2026 |
What it is
Samba hides attributes from callers who lack read rights by marking them inaccessible after the access check, and the 2023 fix for CVE-2023-0614 centralised the rule that an inaccessible attribute never matches a filter, so that a search cannot be used to confirm a hidden value. Red Hat’s bug description says the bitwise extended-match path was left out: for the bitwise filters, ldb_match_message() “skips the suppression check”, and ldb_match_bitmask() compares the real value. A match tells the caller the bit is set; a non-match tells them it is clear; the attribute itself is still stripped from the entry returned, which is why only the shape of the result leaks and only integers can be read this way.
The record names what is at stake on an AD DC: the root key object’s msKds-CreateTime, msKds-UseStartTime and msKds-Version, the metadata of the Key Distribution Service root key that group managed service account passwords derive from. The key material itself is bytes and is not disclosed by this path; the timestamps and version are, and the record puts the privilege needed at that of any user who can list the object. Red Hat records no workaround: it “is not aware of a practical temporary workaround that fully mitigates this issue”.
The fix in merge request 4811 makes ldb_match_bitmask() treat an inaccessible element as not matching, and adds test_search_with_bitwise_matching_rules to source4/dsdb/tests/python/confidential_attr.py; the merge request’s pipeline passed, and it carried no merged state when read. Samba’s security page for this CVE did not exist on 1 December, and the 4.25.2 and 4.24.9 release notes of 30 November and 1 December name only CVE-2026-120377. This page is a draft until a release or a confirmed merge can be named in the box. The facts are from the CVE record, Red Hat’s page, hydra JSON and bug 2585960, the merge request, samba.org’s release notes and news, NVD, EPSS and Debian’s tracker; bugzilla.samba.org and the GitLab commit page refuse automated readers, and Ubuntu, SUSE, Alpine and Arch returned errors.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. The library package is libldb2 (source ldb) on Debian and Ubuntu, but since Samba 4.20 the AD DC builds carry their own copy, which is why Debian tracks it under samba.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Tracker unreachable on 1 December 2026 (client error on three attempts); nothing inferred | — |
| Debian | samba vulnerable in bookworm (2:4.17.12+dfsg-0+deb12u4), trixie (2:4.22.11+dfsg-0+deb13u1, security 2:4.22.10+dfsg-0+deb13u2), forky (2:4.25.1+dfsg-1) and sid (2:4.25.2+dfsg-1); “(unfixed)”; no-dsa (Minor issue) for trixie; cites master commit 8def60ab as the fix | nothing on 1 December 2026 |
| Ubuntu | Tracker unreachable on 1 December 2026 (server error on three attempts); nothing inferred | — |
| RHEL, Rocky, Alma, CentOS Stream | Moderate, 4.3, CWE-862 (bug 2585960); affected: RHEL 8.10 and 9.4 libldb (ships 2.8.0), RHEL 9.6, RHEL 10 and In-Vehicle OS 2 samba; not affected: RHEL 6, 7, 8.4 to 8.8 and 9.2 libldb (older code) and samba through 9.4 (not built as AD DC); OpenShift 4.16 to 5.0 affected, through 4.15 not; no errata | nothing on 1 December 2026 |
| SUSE · Fedora · Arch | SUSE and Arch trackers unreachable on 1 December 2026 (client error on three attempts each); Fedora not consulted, though Red Hat’s bug lists Fedora 43, 44 and rawhide tracking bugs; nothing inferred | — |
| Upstream Samba (samba.org), self-built AD DCs | Merge request 4811 open against master; no release carries it on 1 December 2026 | none yet |
How to check
Three questions, in order: which libldb the host runs and whether it is in range, whether the host is an AD domain controller at all, and whether its directory holds attributes whose read access is restricted by ACL, which is what the bug lets a search see through.
# 1. the ldb and samba versions (2.5.3, 2.6.2, 2.7.2 and 2.8.0 to 2.11.0 are affected)
samba --version 2>/dev/null; smbd --version 2>/dev/null
dpkg -l libldb2 samba samba-ad-dc 2>/dev/null | awk '/^ii/ {print $2, $3}'; rpm -q libldb samba samba-dc 2>/dev/null
python3 -c 'import ldb; print(ldb.__version__)' 2>/dev/null
# 2. is this host an AD DC? (member servers and file servers do not expose the search path)
testparm -s 2>/dev/null | grep -iE 'server role|active directory'
systemctl is-active samba-ad-dc samba 2>/dev/null
# 3. does the LDAP server answer bitwise matches for an ordinary user? (the root key object's msKds-Version is an integer)
# run as an unprivileged domain user; a result row with the attribute stripped is the leak the record describes
ldbsearch -H ldap://localhost -U 'DOMAIN\user' -b 'CN=Master Root Keys,CN=Group Key Distribution Service,CN=Services,CN=Configuration,DC=example,DC=com' '(msKds-Version:1.2.840.113556.1.4.803:=1)' dn msKds-Version 2>/dev/nullA host that is not an AD DC is done whatever its libldb version. A DC on an affected version is the case, and step 3 shows it directly: an entry returned for a bitwise filter on an attribute the user cannot read, with the attribute missing from the entry, is the oracle; a fixed build returns nothing for that filter. Run it as a real unprivileged user, not as Administrator, or it proves nothing.
How to fix it
Install the fixed Samba or libldb packages when they ship and restart the AD DC service; there was nothing to install on 1 December.
# when the packages land
sudo apt update && sudo apt install --only-upgrade samba samba-ad-dc libldb2 && sudo systemctl restart samba-ad-dc # Debian / Ubuntu
sudo dnf upgrade samba-dc libldb && sudo systemctl restart samba # RHEL family
sudo zypper patch && sudo systemctl restart samba-ad-dc # SUSE
# self-built: a release carrying merge request 4811, then rebuild and restart
samba --versionRed Hat records no workaround and we offer none that changes the directory: the bitwise rules are part of the LDAP dialect Windows clients and Samba’s own tools use, and turning them off is not a setting. What the record does give is the measure of the exposure, integers only, read by any user who can list the object, so the interim is to know which integer attributes your ACLs hide and to treat them as readable by the domain until the fix is in. What not to do: do not treat the Moderate rating as a reason to skip the update on a DC that holds a KDS root key, since the leaked timestamps and version are inputs to how managed service account passwords are derived; and do not assume a file-server-only host is exposed, since the record is about the AD DC’s LDAP search.
Sources
- CVE-2026-125635 at CVE.org — the Red Hat CNA record (30 November 2026): the description with the one-bit-per-search method, the integer-only limit, the libldb ranges, the Red Hat product states, CVSS 3.1 4.3, CWE-862, the no-workaround statement
- Red Hat CVE page and hydra JSON — Moderate, 4.3, “Domain Admin is not required”, the per-product states for libldb and samba; and bug 2585960 — the introducing commit
9f31e413of 14 February 2023 (CVE-2023-0614), the affected and unaffected Samba versions, the msKds attribute names on the root key object, the Fedora tracking bugs - Merge request samba!4811 — “ldb: Don’t let the bitwise matching rules match inaccessible attributes (bug 16214)”, Zackary Loevseth, opened 10 November 2026 against master, two commits (the
ldb_match_bitmask()change andtest_search_with_bitwise_matching_rules), pipeline passed, no merged state on 1 December; Samba bug 16214 refuses automated readers - samba.org news and the security history — 4.25.2 (30 November) and 4.24.9 (1 December) fix CVE-2026-120377 only; no entry for this CVE
- NVD entry — Awaiting Analysis; published 30 November; the CNA’s CVSS 3.1 4.3; CWE-862; no CPEs
- Distribution trackers: Debian (every suite vulnerable, no-dsa minor, fix commit 8def60ab) · Ubuntu (server error) · SUSE, Alpine and Arch (client error) on 1 December 2026
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00531 (percentile 0.463) on 1 December 2026
Related reading
- CVE-2026-125634: Samba AD DC ACL NULL dereference — the same AD DC, the same week of Red Hat CNA records
- CVE-2026-125627: Samba AD DC VLV NULL dereference — another LDAP search path
- CVE-2026-125633: Samba AD DC DNS HINFO type confusion — the same set
- CVE-2026-125628: Samba LDAP extended response crash — the same set
- CVE-2026-135111: Samba smbd fork count exhaustion — the file-server side, with a confirmed merge
- Security advisories — every Linux-relevant CVE we track, newest first, with the component index
This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

