CVE-2026-125627: Samba: samba4: null dereference in vlv_value_compare crashes the ad dc ldap worker
A NULL pointer dereference flaw has been found in the vlvvaluecompare() function in vlvpagination.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.
Affected Software
Event History
Frequently Asked Questions
Which Samba deployments are exposed?
Samba Active Directory Domain Controller LDAP services using the Virtual List View module are exposed when an attacker can perform directory searches. The attack targets LDAP workers that process Virtual List View searches by value.
What access does an attacker need to trigger the denial of service?
The attacker needs low-privileged network access or an account able to search the directory. No user interaction is required.
How can the LDAP worker be crashed?
An attacker sends a Virtual List View search by value sorted on an attribute that matching entries do not contain. The same condition can be triggered by sorting on an attribute the attacker cannot read, because that attribute is removed from the search results before comparison.
What is the operational effect of repeated exploitation?
Each malicious search terminates the LDAP worker handling it and disconnects clients using that worker. Although Samba starts a replacement worker, the replacement delay increases after further crashes, allowing repeated requests to prevent LDAP service from remaining available.