Samba 4.24.9 Lands as Final Maintenance Release for the 4.24 Series, Closes LDAP Filter Injection Bug
The Samba team wraps up the branch with over 30 bug fixes, including security patches for pdb_ldap, CTDB fork bombs, and NULL dereferences in SAMR and SPOOLSS.
Samba has released version 4.24.9, the last bug-fix point release for the 4.24 series. This update arrives just weeks after the 4.25 feature branch kicked off, meaning there will be no further 4.24 maintenance releases beyond this one.
The timing makes sense. Samba 4.25.0 landed on September 24, shifting the project's focus to the new development branch. Rather than leave a backlog of unresolved issues, the team pulled together a roundup of fixes before closing the door on 4.24. If you're running the current stable series, this is the upgrade you'll want to apply while you still can.
Security Fixes and the LDAP Injection Flaw
The headline security fix is CVE-2026-120377, an LDAP filter injection flaw in pdb_ldap. Jennifer Sutton at Catalyst IT in New Zealand authored the patch, which escapes the username before passing it to the LDAP filter.
Here's the catch, though. This CVE targets a very specific, deprecated configuration. It only affects standalone Samba servers or NT4-style domain controllers running passdb backend = ldap. If you're running a modern Active Directory Domain Controller, you're not in the blast radius. The AD code path uses a different mechanism entirely. No CVSS score has been published yet, which usually suggests the assigner considers the impact lower due to the narrow scope.
Beyond the CVE, the changelog flags at least four other issues with a [SECURITY] tag. Weiqiang Meng from China Mobile reported a hosts_allow bypass in smbd. When admins reload the config to tighten access rules, existing sessions don't respect the new policy until they reconnect. A classic false sense of security.
Volker Lendecke flagged a CTDB vacuum fork bomb. If the vacuum child process can't reach ctdbd, it respawns indefinitely. In a clustered HA environment, that's a resource exhaustion risk that can cascade across nodes.
Tristan Madani from Talence Security caught two null pointer dereferences. One in SAMR SetSecurity and another in SPOOLSS SetPrinter Level 3. Neither enables remote code execution, but a remote attacker can crash the RPC or print worker process. Denial of service, plain and simple.
Yunqing Li from KylinOS found a segfault in the Python DCE/RPC bindings. Pass object=None to ClientConnection.request() and you bring down the interpreter. That breaks samba-tool and any admin scripts relying on it.
Memory Safety and Cluster Stability
The release covers a lot of ground. Roughly 30 bug fixes from more than 15 contributors. Ralph Boehme and Stefan Metzmacher did most of the heavy lifting on memory safety.
There's a use-after-free in deferred SMB2 create operations, another in directory deletes during concurrent opens, and some PIDL parsing issues where inline pointers pull data from the wrong referent.
CTDB got some attention too. Heap pointers leak to clients via CTDB_CONTROL_GET_DB_STATISTICS. Uninitialized memory pushes to the wire by ctdb_sock_addr_push(). And a struct size mismatch between the client library and ctdbd on 32-bit platforms. If you run a cluster, you're going to want to review your CTDB configurations against this patch set.
Head here to the Samba security archive for the full changelog and the official 4.24.9 announcement.
