CVE-2026-125627 in Sambainfo

Summary

by MITRE • 11/27/2026

A **NULL pointer dereference** flaw has been found in the vlv_value_compare() function in vlv_pagination.c of the Virtual List View module in the **Samba** package. The function uses the sort value from the search result with no check that the result still contains that attribute. A low-privileged network attacker or user who can search the directory sends a Virtual List View search by value, sorted on an attribute the matching entries do not have. The LDAP worker that handles the search exits, which disconnects the directory clients that were using that worker, and the directory service starts a replacement worker. Another search of the same kind crashes the worker that accepts it, and each further crash waits longer before that worker is replaced, so repeating the search keeps the LDAP service from staying available. The same crash follows a search sorted on an attribute the attacker is not allowed to read. The directory removes that attribute from the result, and the comparison uses the missing value.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/27/2026

The vulnerability identified in Samba involves a NULL pointer dereference within the vlv_value_compare function located in the vlv_pagination.c file of the Virtual List View module. This flaw stems from an insufficient validation mechanism where the software attempts to access sort values derived from search results without verifying that the targeted attribute actually exists within those specific result entries. In LDAP directory services, attributes may be omitted from search responses for various reasons, including filtering rules or access control restrictions. When a client requests a Virtual List View operation sorted by an attribute that is absent in the returned data set, the application fails to handle this missing value gracefully. Instead of returning an appropriate error code or handling the null state, the function proceeds with dereferencing a NULL pointer, leading to a critical runtime failure within the LDAP worker process responsible for processing the request.

From an operational perspective, this technical flaw results in a denial of service condition against the Samba directory server. When the vulnerable function is triggered by a low-privileged network attacker or user capable of performing searches, the affected LDAP worker process crashes and terminates unexpectedly. This termination causes immediate disconnection for all other clients currently utilizing that specific worker thread to handle their requests. The directory service attempts to maintain availability by spawning a replacement worker; however, if an attacker repeatedly sends crafted search queries sorted on non-existent or inaccessible attributes, they can induce a continuous cycle of worker crashes and restarts. This rapid succession of failures causes the system to wait progressively longer between replacements due to internal backoff mechanisms, effectively rendering the LDAP service unavailable for legitimate users and disrupting directory-based authentication and authorization services across the network infrastructure.

The attack vector is particularly concerning because it requires only low-privileged access or even unauthenticated search capabilities depending on the specific configuration of the Samba server. An attacker does not need administrative privileges to exploit this vulnerability; they merely need the ability to submit LDAP searches sorted by attributes that are either missing from the result set due to filtering or stripped away due to read permission restrictions. This lowers the barrier for entry significantly, allowing any user with basic directory access rights to impact service availability. The scenario where an attribute is removed because the attacker lacks read permissions further expands the attack surface, as it allows exploitation through standard authorization checks rather than requiring complex data manipulation techniques.

This vulnerability aligns with CWE-476, which describes a NULL pointer dereference error that occurs when software attempts to use a null pointer in contexts where non-null pointers are expected. The lack of proper input validation regarding the presence and accessibility of attributes before performing comparisons is a classic example of this class of defect. Furthermore, from an offensive security perspective, such as the MITRE ATT&CK framework, this behavior facilitates Denial of Service (T1499) by crashing application processes to disrupt service availability. It also relates to Improper Input Validation (CWE-20), specifically failing to verify that data structures contain expected fields before accessing them.

To mitigate this vulnerability, administrators should ensure that Samba is updated to a version where the vlv_value_compare function includes robust checks for NULL pointers and validates attribute presence prior to comparison operations. Implementing rate limiting on LDAP search requests can also help reduce the impact of repeated crash attempts by any single source. Additionally, monitoring system logs for frequent worker process restarts or crashes associated with LDAP services can aid in early detection of exploitation attempts. Organizations relying on Samba for Active Directory compatibility should prioritize applying vendor-provided patches that address this specific logic error to restore service resilience and prevent unauthorized users from disrupting directory operations through simple search queries.

Responsible

Redhat

Reservation

11/10/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00748

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!