CVE-2026-125628
Description
A type confusion has been found in the ldapsrv_do_call() function in ldap_backend.c of the LDAP server in the Samba package. The function reads an extended response as an extended request while checking a connection that has not authenticated. A network attacker or user sends an extended response as the first LDAP message. The process that accepted the connection also serves other LDAP clients. That process exits, which disconnects those clients, and the directory starts a replacement process. Sending the message again crashes the replacement, and each further crash waits longer before the next replacement starts, so repeating the message keeps the LDAP service from staying available.
Statement
Red Hat Product Security has rated this vulnerability with an Important security impact. This vulnerability affects Samba's AD DC LDAP server handling.
A network attacker can exploit the flaw in the default configuration of an AD DC. Authentication is not required. The LDAP server listens on the network only when Samba is an Active Directory domain controller.
The vulnerable code was introduced in samba version 4.7.0rc1 when logging of LDAP access before a bind was added. Samba versions from 4.7.0rc1 contain the vulnerable code and are affected.
Red Hat Enterprise Linux 6, 7, 8, 9, and 10, along with Red Hat In-Vehicle Operating System 2, ship RHEL builds of Samba compiled without the AD DC LDAP server module (--without-ad-dc), so the vulnerable code is absent and those streams are not affected.
Likewise, Red Hat Enterprise Linux CoreOS (RHCOS) does not ship Samba packages by default, while Red Hat OpenShift Container Platform images consume Samba directly from RHEL builds, making them not affected.
Mitigation
Mitigation is not applicable because no Red Hat products are affected.
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 Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 7.5 | N/A | N/A |
| Attack Vector | Network | N/A | N/A |
| Attack Complexity | Low | N/A | N/A |
| Privileges Required | None | N/A | N/A |
| User Interaction | None | N/A | N/A |
| Scope | Unchanged | N/A | N/A |
| Confidentiality | None | N/A | N/A |
| Integrity Impact | None | N/A | N/A |
| Availability Impact | High | N/A | N/A |
Vector
Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Understanding the Weakness (CWE)
Other
Technical Impact: Varies by Context
When the product accesses the resource using an incompatible type, this could trigger logical errors because the resource does not have expected properties.
Availability,Integrity,Confidentiality
Technical Impact: Read Memory; Modify Memory; Execute Unauthorized Code or Commands; DoS: Crash, Exit, or Restart
If a memory buffer is accessed using an incompatible type, and the allocated buffer is smaller than the type that the code is attempting to access, then an attacker could read or write memory outside the bounds of the buffer, leading to a crash or possibly code execution.
Acknowledgements
Red Hat would like to thank Denis Rastyogin for reporting this issue.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.