CVE-2026-125635

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.

Statement

Red Hat Product Security has rated this vulnerability with a Moderate security impact. This vulnerability affects libldb's LDAP bitwise matching.

The flaw is in libldb. A program that hides a value and then searches can learn that value, and the way to hide a value is part of libldb. An authenticated directory user who can list the object can then learn the hidden value. Domain Admin is not required.

Through Red Hat Enterprise Linux 9.4, libldb is shipped as its own independent RPM package. From Red Hat Enterprise Linux 9.6, libldb is included with Samba, replacing the older separate package. The samba build produces the libldb RPM.

Affected versions are libldb 2.5.3, libldb 2.6.2, libldb 2.7.2, and libldb 2.8.0 through libldb 2.11.0. libldb 2.6.1, libldb 2.7.1, and every libldb release before 2.5.3 do not contain this affected code.

Red Hat Enterprise Linux 8.10 and 9.4 ship libldb 2.8.0, which includes this code and is affected.

Red Hat Enterprise Linux 6, 7, 8.4, 8.6, 8.8, and 9.2 ship an older libldb, which does not include affected code and is not affected. 
From Red Hat Enterprise Linux 9.6, on Red Hat Enterprise Linux 10, and in Red Hat In-Vehicle Operating System 2, the samba component is set affected because the samba build produces the libldb RPM (as stated above) that contains this vulnerable code.

Through Red Hat Enterprise Linux 9.4, the samba package is not affected. Red Hat does not build Samba as an Active Directory Domain Controller. Only that Domain Controller hides a value before a search, and on these streams the code is in the separate libldb package. Red Hat still does not build Samba as an Active Directory Domain Controller from Red Hat Enterprise Linux 9.6 onward. The samba component is affected there only because that build produces the libldb RPM, which is affected.
OpenShift Container Platform images through 4.15 ship libldb 2.4.1 or libldb 2.6.1 and are not affected. OpenShift Container Platform 4.16, 4.17, and 4.18 ship libldb 2.8.0 and are affected. OpenShift Container Platform 4.19, 4.20, 4.21, 4.22, and 5.0 ship the libldb RPM from the samba build and are also affected.

Mitigation

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.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score4.3N/AN/A
Attack VectorNetworkN/AN/A
Attack ComplexityLowN/AN/A
Privileges RequiredLowN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityLowN/AN/A
Integrity ImpactNoneN/AN/A
Availability ImpactNoneN/AN/A

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Understanding the Weakness (CWE)

Confidentiality

Technical Impact: Read Application Data; Read Files or Directories

An attacker could read sensitive data, either by reading the data directly from a data store that is not restricted, or by accessing insufficiently-protected, privileged functionality to read the data.

Integrity

Technical Impact: Modify Application Data; Modify Files or Directories

An attacker could modify sensitive data, either by writing the data directly to a data store that is not restricted, or by accessing insufficiently-protected, privileged functionality to write the data.

Access Control

Technical Impact: Gain Privileges or Assume Identity; Bypass Protection Mechanism

An attacker could gain privileges by modifying or reading critical data directly, or by accessing privileged functionality.

Availability

Technical Impact: DoS: Crash, Exit, or Restart; DoS: Resource Consumption (CPU); DoS: Resource Consumption (Memory); DoS: Resource Consumption (Other)

An attacker could gain unauthorized access to resources on the system and excessively consume those resources, leading to a denial of service.

Frequently Asked Questions

Want to get errata notifications? Sign up here.