Bug 2590999

Summary: CVE-2026-135109 samba: anonymous ChangePasswordUser4 work stalls the RPC service [fedora-43]
Product: [Fedora] Fedora Reporter: TEJ RATHI <trathi>
Component: sambaAssignee: Guenther Deschner <gdeschner>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 43CC: abokovoy, anoopcs, asn, gdeschner, pfilipen, sbose, ssorce
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["1f818cd5-7db5-4560-ad2b-4e0fb9fb8673"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2583144    

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.