Samba 4.25.2 Ships with LDAP Injection Fix and 30+ Bug Patches
Second point release hardens memory safety across SMB and CTDB while targeting legacy pdb_ldap backends.
Samba 4.25.2 is here. The second point release in the 4.25 stable series has arrived with a fix for CVE-2026-120377, an LDAP filter injection vulnerability in the legacy pdb_ldap backend. Alongside that security patch, the release brings more than 30 bug fixes covering memory safety, SMB protocol compliance, and CTDB clustering hardening.
If you're running the 4.25 branch, this is worth a look. The 4.25 feature release went general availability in late August 2026, followed by 4.25.1 on October 23. That first point release handled a CVE around the Ceph RGW VFS module, and now Samba 4.25.2 takes a swing at pdb_ldap and a swarm of under-the-hood issues.
The CVE-2026-120377 Fix
CVE-2026-120377 is an LDAP filter injection vulnerability fixed by Jennifer Sutton of Catalyst IT. The flaw sits in pdb_ldap, the password backend Samba uses when authenticating against an external LDAP directory rather than running a full Active Directory domain controller.
The username string wasn't properly escaped before being interpolated into an LDAP search filter. An attacker could inject LDAP metacharacters to manipulate or reveal account data.
Here's where this gets specific: this is not an Active Directory issue. Modern Samba AD DC deployments use a different code path and are not affected. This vulnerability targets deprecated NT4 domain controllers and standalone servers running with passdb backend = ldap.
No CVSS score has been published yet. That's unusual for a tagged CVE in this window, though the narrow scope — legacy configs only — suggests a lower severity classification. The absence of a public score also hints at a coordinated embargo process that may still be wrapping up on the Red Hat CNA side. Keep in mind that if you're still running pdb_ldap in late 2026, you're operating on deprecated infrastructure. The fix is small, but it underscores that legacy authentication backends remain a target for injection attacks.
Memory Safety and Protocol Hardening
Beyond the CVE, 4.25.2 contains a lot of structural improvements. The release notes list over 30 bug fixes.
There are several memory-safety issues addressed. A use-after-free condition in deferred SMB2 creates was fixed, as was a race condition in the tevent threaded wakeup. If you're running CTDB for clustering, pay attention to fixes for uninitialized memory on the wire and fork-bomb prevention in the vacuum child process.
Next, the SMB over QUIC support introduced in 4.25 hits another snag. smbd was disconnecting clients instead of sending lease breaks because getsockopt TCP_INFO fails on QUIC sockets. It's one of the earliest practical growing pains with the experimental transport layer, and this patch keeps the connection alive long enough to negotiate properly.
The Ceph RGW VFS module, which lets you export object storage as SMB shares with a hierarchical view, also gets attention. The module shipped in 4.25.0, and while 4.25.1 handled access control issues, 4.25.2 continues to polish the edge cases.
On the protocol side, there are fixes for SMB2 sequence number delays that could cause unexplained connection hangs, and a case-sensitive file naming issue that broke Windows client expectations.
It's a solid maintenance update. The 4.25 series has about nine months of active development support remaining, with security-only maintenance extending through roughly March 2028. You have time, but the CVE fix makes this a priority for affected deployments.
Head here to the Samba release notes for the complete changelog and package downloads.
