Bug 2590999 - CVE-2026-135109 samba: anonymous ChangePasswordUser4 work stalls the RPC service [fedora-43]
Summary: CVE-2026-135109 samba: anonymous ChangePasswordUser4 work stalls the RPC serv...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 43
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["1f818cd5-7db5-4560-ad2b-4...
Depends On:
Blocks: CVE-2026-135109
TreeView+ depends on / blocked
 
Reported: 2026-12-04 16:08 UTC by TEJ RATHI
Modified: 2026-12-04 16:08 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description TEJ RATHI 2026-12-04 16:08:28 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Where. dcesrv_samr_ChangePasswordUser4() in source4/rpc_server/samr/samr_password.c does not require a SAMR policy handle or an authenticated bind, and it has no admission limit before expensive work. For an account that exists it calls gnutls_pbkdf2() with the caller-supplied PBKDF2Iterations value before the AES-GCM authenticator can be checked. The function starts an ldb write transaction before that derivation.

What it does. The handler rejects a PBKDF2Iterations value below 5,000 or above 1,000,000. It opens the write transaction, looks up the account named in the request, and derives a 16-byte key from the stored NT hash with PBKDF2-HMAC-SHA512 for the supplied iteration count. It then tries to decrypt the new password. When that check fails, the function cancels the transaction, so the password is left unchanged, and updates the account's bad-password count in a later transaction. When the check succeeds, samdb_set_password() writes the new password and the handler commits the transaction. The derivation is a direct call in the request handler. On a domain controller, SAMR is registered on a single-process endpoint, and only the first RPC server process publishes that endpoint, so the call occupies that process until the derivation returns. The write transaction stays open across the derivation, so other SAMDB writes wait until the transaction is cancelled or committed.

Impact. A caller who can reach SAMR can keep that RPC process busy for as long as the caller keeps sending maximum-iteration requests, and can hold the SAMDB write transaction open for each of those requests. Other SAMR and LSA calls on that process wait, and directory updates wait with the transaction.

Prerequisites. The caller needs no login and no SAMR policy handle. The account named in the request must already exist, because the derivation runs only after that lookup succeeds.

Configuration. The flaw is reachable in the default configuration.

Introduced. Introduced in Samba 4.17.0 by Andreas Schneider on 2022-07-28, in commit 85b7179a582 for the source4 handler and commit 1ca42e12ef2 for the source3 handler. Every Samba release from 4.17.0 onward contains the handlers.

Same cause elsewhere. _samr_ChangePasswordUser4() in source3/rpc_server/samr/srv_samr_nt.c performs the same unauthenticated PBKDF2 derivation on one of the five workers rpcd_lsad starts.


Note You need to log in before you can comment on or make changes to this bug.