# CVE-2026-125635: Libldb: samba: libldb: bitwise ldap match discloses unreadable integer attributes

- Severity: Medium 4.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-11-30T14:11:38.770Z
- Modified: 2026-12-01T00:17:13.387Z
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

A **missing authorization** check has been found in the ldb_match_bitmask() function in ldb_match.c of the LDAP matching module in the **libldb library of Samba.** The directory marks an attribute the caller is not allowed to read, and the bitwise comparison uses that value anyway. 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. A value that is not an integer, including a password or a key stored as bytes, is not returned as a number.

(As written by CVE List.)

## Affected

- libldb: 2.5.3; 2.6.2; 2.7.2; from 2.8.0 up to 2.11.0
- samba: no versions given
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given
- openshift/ose-rhel-coreos-10: no versions given

## References

- <https://access.redhat.com/security/cve/CVE-2026-125635> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2585960> (issue-tracking)
- <https://bugzilla.samba.org/show_bug.cgi?id=16214>
- <https://gitlab.com/samba-team/samba/-/merge_requests/4811>

## Sources

- CVE List: [CVE-2026-125635](https://www.cve.org/CVERecord?id=CVE-2026-125635), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-125635](https://nvd.nist.gov/vuln/detail/CVE-2026-125635), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-125635 · Whole record: https://cve.day/CVE-2026-125635.json · Rebuilt by cve.day 2026-12-01T00:32:20.744Z
