CVE-2026-125635

Libldb: samba: libldb: bitwise ldap match discloses unreadable integer attributes

Published Nov 30, 2026 CVSS 3.1 · 4.3 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is a missing authorization check in the ldb_match_bitmask() function of Samba's libldb LDAP matching module. When a client performs a bitwise comparison against an integer attribute, the library incorrectly uses the value of a protected attribute in the comparison, even though that attribute is marked as unreadable. A low‑privileged attacker who can list directory objects can iteratively query for individual bits of the hidden integer. For each bit that is set, the directory entry is returned; for bits that are unset the entry is omitted, and the missing attribute is removed from the response. Repeating this process for all bits of an integer attribute exposes the full value. Non‑integer data, such as passwords or binary blobs, is not returned as a number, so only integer attributes can be disclosed. The missing authorization check is classified as CWE‑862.

Affected Systems

Red Hat’s managed operating systems and container platforms are affected, specifically Red Hat Enterprise Linux 10, 6, 7, 8, 9, and the Red Hat OpenShift Container Platform 4 and 5. These products include SMB and LDAP services that utilize the libldb library from Samba. No precise version numbers are supplied, so any installation that includes the vulnerable ldb_match_bitmask() logic is at risk.

Risk and Exploitability

The CVSS base score of 4.3 indicates a moderate severity. Because the EPSS score is not available, the precise likelihood of exploitation is unknown, but the vulnerability does not appear in the CISA KEV catalog, suggesting no known widespread exploitation. The likely attack vector is over the network via LDAP queries; an attacker needs only the ability to list directory objects and perform bitwise searches for hidden integer attributes. Consequently, the risk is moderate, and mitigation should focus on patching and limiting LDAP query capabilities.

Remediation

Vendor Workaround

Red Hat is not aware of a practical temporary workaround that fully mitigates this issue or meets Red Hat Product Security's standards for usability, deployment, applicability, or stability.


OpenCVE Recommended Actions

  • Apply the most recent Samba release that contains the fix for CVE‑2026‑125635 to all affected systems.
  • Rebuild or redeploy OpenShift and RHEL components that depend on libldb so that the patched library is in use.
  • Restrict LDAP client permissions to only the attributes required for operation and disable listings that expose all attributes, thereby preventing the bitwise search technique.

Generated by OpenCVE AI on November 30, 2026 at 16:37 UTC.

Tracking

Sign in to view the affected projects.

Exploits

Explore public exploit intelligence with OpenCVE Pro.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title Libldb: samba: libldb: bitwise ldap match discloses unreadable integer attributes
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
Redhat rhel Els
Weaknesses CWE-862
CPEs cpe:/a:redhat:openshift:4
cpe:/a:redhat:openshift:5
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
Redhat rhel Els
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 30, 2026, 5:19 PM
Reserved
Nov 10, 2026, 4:53 AM
Status
Awaiting Analysis
Published
Nov 30, 2026, 3:17 PM
Modified
Nov 30, 2026, 3:17 PM