CVE-2026-125627 PUBLISHED

Samba: samba4: null dereference in vlv_value_compare crashes the ad dc ldap worker

Assigner: redhat
Reserved: 10.11.2026 Published: 27.11.2026 Updated: 27.11.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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS Score: 6.5

Product Status

Vendor Samba
Product Samba
Versions Default: unaffected
  • affected from 4.5.0 to * (excl.)
Vendor Red Hat
Product Red Hat Enterprise Linux 10
Versions Default: unaffected
Vendor Red Hat
Product Red Hat Enterprise Linux 6
Versions Default: unaffected
Vendor Red Hat
Product Red Hat Enterprise Linux 6
Versions Default: unaffected
Vendor Red Hat
Product Red Hat Enterprise Linux 7
Versions Default: unaffected
Vendor Red Hat
Product Red Hat Enterprise Linux 8
Versions Default: unaffected
Vendor Red Hat
Product Red Hat Enterprise Linux 9
Versions Default: unaffected
Vendor Red Hat
Product Red Hat OpenShift Container Platform 4
Versions Default: unaffected
Vendor Red Hat
Product Red Hat OpenShift Container Platform 4
Versions Default: unaffected
Vendor Red Hat
Product Red Hat OpenShift Container Platform 5
Versions Default: unaffected
Vendor Red Hat
Product Red Hat OpenShift Container Platform 5
Versions Default: unaffected

Workarounds

Mitigation is not applicable because no Red Hat products are affected.

Credits

  • Red Hat would like to thank Zackary Loevseth for reporting this issue.

References

Problem Types

  • NULL Pointer Dereference CWE