Bug 16248 - [SECURITY] Possible null de-reference of sAMAccountName as regression after CVE-2022-32743
Summary: [SECURITY] Possible null de-reference of sAMAccountName as regression after ...
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-09-17 04:01 UTC by Douglas Bagnall
Modified: 2026-11-03 09:41 UTC (History)
2 users (show)

See Also:


Attachments
markdown description (36.78 KB, text/markdown)
2026-09-17 04:01 UTC, Douglas Bagnall
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Bagnall 2026-09-17 04:01:11 UTC
Created attachment 19224 [details]
markdown description

Pavel Kopylov writes:

Component: ACL checking and validation layer — acl_validate_spn_value() and
     acl_check_dns_host_name().

Affected: master and all maintained branches carrying the CVE-2022-32743.

Root cause: Accessing members of samAccountName containing a NULL pointer.

Trigger (remote, low privilege): The vulnerability is triggered by a mangled
     LDAP `ModifyRequest` that carries a list of incorrect modifications.

Impact: remote denial of service - crashing `LDAP workers` that are already running and restarting them as a result of the vulnerability's
     exploitation. So restarted workers may be spammed too. A complete DoS for LDAP requests is possible.

Proof: the additional tests running at the `make test` stage are provided.

The found regression can be exploited in different ways by a user with minimal privileges.

At this moment, I don't have a fix for the described issue.
Comment 1 Andrew Bartlett 2026-10-26 01:11:11 UTC
Moving to the non-embargo queue as a DoS per policy: 

https://wiki.samba.org/index.php/Samba_Security_Process

4b.) Even for a CVSSv3.1 of more than 5.0 we do not do a security
     release where the impact is:

     * Only a Denial of Service (not a use after free) and the
       automated internal process restart will allow other clients to
       reconnect eventually.

I'll open this up eventually, we still need to get a CVE and check it is just the null pointer dereference as claimed.
Comment 2 pkopylov 2026-10-26 11:36:46 UTC
Andrew, should I register the CVE?
Comment 3 Andrew Bartlett 2026-11-01 06:11:26 UTC
[Bulk message on a number of bugs being made public at once]

The embargo is being removed from this bug.  

That is not to say that the issue is not a real bug, but some things are better dealt with in public, where the normal process is both more available to external contributors and much, much more efficient.  

If you have a patch for this issue, please do contribute it via our normal GitLab process:

https://wiki.samba.org/index.php/Contribute#Submitting_Patches_via_GitLab

All patches to Samba must follow our copyright policy:

https://www.samba.org/samba/devel/copyright-policy.html

Thanks to all who report issues to Samba, we value your patience as we, along with the rest of the Open Source and Free Software communities, work though the reported issues.
Comment 4 pkopylov 2026-11-03 09:04:42 UTC
I published the merge request: https://gitlab.com/samba-team/samba/-/merge_requests/4800