CVE-2026-125627: Samba AD DC LDAP worker crashes on a Virtual List View search sorted on a missing attribute

ByLinuxtastic

December 1, 2026 #CVE, #Samba

A Samba Active Directory domain controller’s LDAP worker crashes when a client sends a Virtual List View search, sorted on an attribute, that asks to position the view by value, and the matching entries do not carry that attribute. The comparison function uses the sort value from the result without checking that the result has one, dereferences NULL and the worker exits, dropping every client it was serving. The same thing happens when the attribute exists but the searching user is not allowed to read it, because the directory strips it from the result before the comparison. Any domain user who can search the directory can trigger it, and because Samba’s prefork model waits longer before replacing each successive crashed worker, repeating the search keeps LDAP from staying up. There is no Samba release with the fix on 1 December 2026; this page is a draft until one can be named. Until then, keep LDAP on domain controllers reachable only from the networks that need it and watch for worker restarts.

CVE-2026-125627 at a glance.

ComponentSamba, the Active Directory domain controller’s Virtual List View module: vlv_value_compare() in vlv_pagination.c, run by the LDAP server worker. Only builds with the AD DC compiled in (--with-ad-dc: Debian, Ubuntu, Arch, Alpine, openSUSE; not RHEL’s)
Affected versionsSamba 4.5.0 and every later release, per the Red Hat CNA record; Red Hat’s statement dates the code to the arrival of Virtual List View support in 4.5.0. 4.25.2 of 30 November 2026 is the newest release and its notes do not carry the fix
Fixed inNot established on 1 December 2026. The record names GitLab merge request 4801 and Samba bug 16296; samba.org has no advisory page for this CVE, its security history has no entry, and the 4.25.2 and 4.25.1 release notes do not mention it. The bug tracker refused our reader and the merge state could not be read. This row will be updated when a release carries the fix
SeverityRed Hat (CNA) CVSS 3.1 6.5 Medium (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H), CWE-476; NVD Awaiting Analysis with the CNA score, and a CISA SSVC of exploitation none, not automatable, technical impact partial. Red Hat Moderate and not affected (RHEL builds without the AD DC); Ubuntu page unreachable; Debian tracker has no rows yet
Exploited in the wildNot on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS 0.75% (51st percentile) on 30 November 2026
Who is exposedSamba AD domain controllers at 4.5 or later. The attacker is any account that can search the directory, which in a default domain is every domain user, and the outcome is an LDAP worker exit that disconnects that worker’s clients, with each repeat delaying the replacement longer. Kerberos, DNS and file service on the DC keep running; what stops is LDAP, which is what every joined machine and every application bind uses. File servers, member servers and RHEL-family builds are outside this bug
PublishedRed Hat CNA record 27 November 2026; this page built 1 December 2026, last updated 1 December 2026

What it is

Virtual List View is an LDAP control, defined for Active Directory and implemented by Samba since 4.5, that lets a client scroll through a sorted result set a window at a time, the way an address book scrolls through thousands of users without loading them all. It is always paired with a server-side sort control naming the attribute to sort on, and a client can ask for the window to start at a particular value of that attribute rather than at an offset: “position me at the first entry whose sn is at or after Smith”. To do that the server compares the requested value against each entry’s sort attribute. The record describes the gap: “the function uses the sort value from the search result with no check that the result still contains that attribute.” An entry that simply lacks the attribute hands the comparison a NULL, and “the LDAP worker that handles the search exits, which disconnects the directory clients that were using that worker”.

The second trigger is the one that makes the privilege level what it is. A client can sort on an attribute the entries do have but that the client is not permitted to read; the directory honours the ACL by removing the attribute from the result, and the comparison then runs on the removed value. So a low-privileged user does not need to find entries missing an attribute, only to pick one they cannot see. The crash is per worker, and Samba’s prefork process model replaces a dead worker, but, in the record’s words, “each further crash waits longer before that worker is replaced, so repeating the search keeps the LDAP service from staying available.”

The fix is merge request 4801 on Samba’s GitLab, filed alongside merge request 4800 for the ACL-module crash CVE-2026-125634 from the same fortnight, and it will be a presence check before the comparison. Neither merge has reached a release that samba.org has announced, so no version can be named. Red Hat credits Zackary Loevseth with the report; Red Hat’s own packages are built without the AD DC’s ldb modules and are not affected, which again is a statement about RHEL packaging rather than about Samba.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. The question per distribution is whether its samba package includes the AD DC.

DistributionStatusFixed package
AlpineNot consulted for this page; Alpine’s samba-dc package builds the AD DC and is affected on the upstream range—
DebianThe tracker page exists but lists no source-package rows yet (notes: “check”); the samba packages in bookworm, trixie, forky and sid are all inside the upstream rangenothing on 1 December 2026
UbuntuTracker unreachable on 1 December 2026 (server error on every attempt); nothing inferred. The sibling CVE-2026-125634 was Medium, needs evaluation on every release—
RHEL, Rocky, Alma, CentOS StreamNot affected: RHEL 6 to 10 and RHIVOS 2 ship Samba built --without-ad-dc, so the VLV module is not present; Moderate 6.5 as a rating of the upstream bugnot needed
openSUSE/SLENot consulted for this page; openSUSE builds the AD DC, SLE does not—
Arch, Fedora, self-built Samba, Samba appliances (Univention, TurnKey and others)The upstream range applies to any build with the AD DCthe release that carries MR 4801, when there is one

How to check

Three questions, in order: is this host an AD domain controller, which Samba version is it, and have LDAP workers been dying. The third is answered by the prefork backoff itself, which leaves a recognisable trail in the log.

# 1. role: only the AD DC runs the LDAP server with the VLV module
testparm -s 2>/dev/null | grep -i 'server role'
systemctl is-active samba samba-ad-dc 2>/dev/null

# 2. version: 4.5.0 and later are affected, and no release is fixed yet
samba -V 2>/dev/null
dpkg -l samba 2>/dev/null | awk '/^ii/{print $2, $3}'; apk version samba-dc 2>/dev/null

# 3. LDAP worker deaths and the prefork backoff that follows them
journalctl -u samba-ad-dc -u samba --since '7 days ago' | grep -iE 'ldap.*(exit|signal|restart|backoff)|prefork' | tail -20
grep -iE 'prefork|ldap_server.*(exit|signal)' /var/log/samba/log.samba 2>/dev/null | tail -20
# who is talking LDAP to this DC right now
ss -tn state established '( sport = :389 or sport = :636 or sport = :3268 or sport = :3269 )' | awk 'NR>1{split($4,a,":"); print a[1]}' | sort | uniq -c | sort -rn | head

A host that is not an AD DC is outside this bug. A domain controller at 4.5 or later is affected until a fixed release exists, and its exposure is every account that can bind and search, which is the whole domain. Repeated LDAP worker exits in step 3 with growing gaps between restarts are the signature; the client that sent the VLV search is in log.samba at log level 3 or above, or in the dsdb_audit log if it is on.

How to fix it

Upgrade to the release that carries the fix once it exists and restart samba; this page will name it. Until then the controls are about who can reach LDAP on the domain controllers and how fast a dead worker comes back. Neither stops a determined domain user; both narrow the pool of attackers and shorten the outage.

# when the fixed release is packaged
apt update && apt install --only-upgrade samba && systemctl restart samba-ad-dc
apk upgrade samba-dc && rc-service samba restart

# interim: LDAP only from the networks that need a domain controller
firewall-cmd --permanent --zone=public --remove-service=ldap --remove-service=ldaps
firewall-cmd --permanent --zone=internal --add-service=ldap --add-service=ldaps --add-port=3268/tcp --add-port=3269/tcp
firewall-cmd --reload

# interim: more LDAP workers, so one crash takes fewer clients with it; and a bounded backoff
#   in [global] of smb.conf:  prefork children = 8
#                             prefork backoff increment = 5
#                             prefork maximum backoff = 30
testparm -s && systemctl restart samba-ad-dc

What not to do: do not disable the VLV control or the server-side sort to “remove the feature”, because Samba offers no switch for it and Windows clients and the Active Directory tooling rely on it for every large listing; and do not take Red Hat’s “not affected” as a reason to relax on a Debian or Ubuntu domain controller, since it describes a build that has no domain controller in it.

Sources

  • CVE-2026-125627 at CVE.org — the Red Hat CNA record (27 November 2026): the description naming the function and the file, the two triggers, the prefork backoff, affected from 4.5.0, CVSS 3.1 6.5, CWE-476, references to Samba bug 16296 and merge request 4801
  • Red Hat CVE page — Moderate, the “introduced in 4.5.0 with Virtual List View support” statement, the --without-ad-dc build note, “no Red Hat products are affected”, acknowledgement to Zackary Loevseth; Red Hat bug 2585306
  • Samba merge request 4801 and Samba bug 16296 — the fix and its tracking bug, both named in the record; the bug tracker refused our reader and the merge state could not be read
  • Samba security releases and the 4.25.2 release notes (30 November 2026) — no entry for this CVE on 1 December 2026
  • NVD entry — Awaiting Analysis; published 27 November; the CNA score, CWE-476, the CISA SSVC
  • Distribution trackers: Debian (no rows yet) · Ubuntu (unreachable on 1 December) · SUSE (not consulted)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00749, percentile 0.511, dated 30 November 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.