Distro News

Ubuntu patches seven Samba flaws, including LDAP injection and lockout bypass

Key Takeaway

Ubuntu 22.04, 24.04 and 26.04 LTS receive Samba and ldb updates fixing LDAP injection, bad-password lockout bypass, predictable RNG and denial-of-service issues.

Summary

Ubuntu published USN-9472-1 on 3 December 2026, fixing seven security issues in Samba, the SMB/CIFS file, print and login server, and in the bundled ldb library. The advisory covers Ubuntu 22.04 LTS (jammy), 24.04 LTS (noble) and 26.04 LTS (resolute), with updated samba and libldb2 packages. Four of the CVEs are confined to 22.04 LTS, while the ldb bitwise search filter flaw affects only 24.04 and 26.04 LTS.

The most broadly applicable issues are CVE-2026-120377, an LDAP injection when deleting users through the LDAP password database backend, and CVE-2026-125634, where malformed LDAP modify requests let an authenticated user crash Samba for a denial of service. On 22.04 LTS, attackers could also bypass bad-password lockouts (CVE-2021-20251), read deleted LDAP objects without proper access checks (CVE-2018-14628), modify protected attributes on computer accounts (CVE-2022-32743) and exploit predictable random values when GnuTLS RNG fails (CVE-2022-1615). A standard system update applies the fixes.

What USN-9472-1 fixes in Samba and ldb

  • LDAP injection (CVE-2026-120377): Samba mishandled usernames when deleting users with the LDAP password database backend, allowing an attacker to perform LDAP injection attacks; the flaw is listed for all three supported LTS releases.
  • Denial of service (CVE-2026-125634): Incorrect handling of certain LDAP modify requests lets an authenticated user crash the Samba service, disrupting file, print and domain services on affected hosts.
  • ldb access control (CVE-2026-125635): The ldb library bundled with Samba did not properly check access rights when matching bitwise search filters, so a remote authenticated attacker could obtain sensitive information; only Ubuntu 24.04 LTS and 26.04 LTS are affected.
  • 22.04-only flaws: CVE-2018-14628 (deleted-object access checks), CVE-2021-20251 (bad password count logic enabling lockout bypass), CVE-2022-1615 (GnuTLS RNG failure producing predictable values) and CVE-2022-32743 (missing access validation when changing a computer account's DNS host name) are scoped to jammy.
  • Fixed versions: 26.04 LTS moves to samba 2:4.23.6+dfsg-1ubuntu2.4 and libldb2 2:2.11.0+samba4.23.6+dfsg-1ubuntu2.4; 24.04 LTS to samba 2:4.19.5+dfsg-4ubuntu9.9 and libldb2 2:8.0+samba4.19.5+dfsg-4ubuntu9.9; 22.04 LTS to samba 2:4.15.13+dfsg-0ubuntu1.14.

Why it matters

Samba is the default AD domain controller and SMB file server on countless Ubuntu servers, so the LDAP injection and crash bugs matter for any organisation running Samba as a domain controller on 24.04 or 26.04 LTS. The 22.04 LTS fixes close older, well-known weaknesses such as lockout bypass and weak RNG fallback that have lingered in jammy deployments. Administrators should schedule the update promptly, especially on internet-exposed or multi-tenant SMB/LDAP infrastructure.

What to do

  • Perform a standard system update to apply the fixes.
  • Ubuntu 26.04 LTS users should update to samba 2:4.23.6+dfsg-1ubuntu2.4 and libldb2 2:2.11.0+samba4.23.6+dfsg-1ubuntu2.4.
  • Ubuntu 24.04 LTS users should update to samba 2:4.19.5+dfsg-4ubuntu9.9 and libldb2 2:2.8.0+samba4.19.5+dfsg-4ubuntu9.9.
  • Ubuntu 22.04 LTS users should update to samba 2:4.15.13+dfsg-0ubuntu1.14.

Original reference: ubuntu.com →