CVE-2022-2127
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedAn out-of-bounds read vulnerability was found in Samba due to insufficient length checks in winbindd_pam_auth_crap.c. When performing NTLM authentication, the client replies to cryptographic challenges back to the server. These replies have variable lengths, and Winbind fails to check the lan manager response length. When Winbind is used for NTLM authentication, a maliciously crafted request can trigger an out-of-bounds read in Winbind, possibly resulting in a crash.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceOut-of-bounds read vulnerability in Samba's Winbind service due to missing length validation on NTLM authentication responses. When processing NTLM authentication, Winbind fails to check the lan manager response length before accessing the buffer, allowing a malicious client to trigger reads beyond buffer boundaries.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 6.0= 7.0= 8.0= 9.0= 37= 38= 12.0>= 4.16.0, < 4.16.10>= 4.17.0, < 4.17.9>= 4.18.0, < 4.18.4CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify installed Samba versionRun 'smbd --version' or 'rpm -q samba' (RHEL/Fedora) or 'dpkg -l samba' (Debian) to determine the Samba version numberAffected if Version falls within 4.16.0-4.16.9, 4.17.0-4.17.8, or 4.18.0-4.18.3
-
Verify winbind service is runningRun 'ps aux | grep winbind' or 'systemctl status winbind' (or 'smb' service depending on distribution) to check if the winbind daemon is activeAffected if winbindd process is running and handling authentication requests
-
Confirm NTLM authentication is permittedCheck Samba configuration: review 'security' and 'ntlm auth' settings in /etc/samba/smb.conf. Also check if domain trusts or legacy auth that use NTLM are in useAffected if NTLM authentication is enabled in the configuration or the system relies on NTLM-based domain authentication
-
Check for signs of the vulnerable code pathReview winbind logs (/var/log/samba/log.winbindd) for NTLM authentication attempts; use 'wbinfo -u' or 'wbinfo -a' to test NTLM authentication if winbind is activeAffected if NTLM authentication requests are being processed by winbind service
You are affected if Samba versions 4.16.x (before 4.16.10), 4.17.x (before 4.17.9), or 4.18.x (before 4.18.4) are installed AND the winbind service is running with NTLM authentication enabled or in use.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped4.16.104.17.94.18.4
Apply Samba security updates that address the bounds checking in winbindd_pam_auth_crap.c; if patches are unavailable, restrict NTLM authentication or limit network access to the Winbind service.
Samba 4.16.10, 4.17.9, or 4.18.4 (or later respective minor releases)
- 1. Identify the currently installed Samba version using: rpm -qa | grep samba or dpkg -l | grep samba
- 2. For RHEL/CentOS/Enterprise Linux systems: Run 'yum update samba' or 'dnf update samba' to apply the latest vendor security updates
- 3. For Fedora systems: Run 'dnf update samba' to apply the latest vendor security updates
- 4. For Debian systems: Run 'apt-get update && apt-get upgrade samba' to apply the latest vendor security updates
- 5. If using source-built Samba: Download and install Samba 4.16.10 or later, 4.17.9 or later, or 4.18.4 or later from samba.org
- 6. After updating, restart the winbind service using: systemctl restart winbind (or systemctl restart smbd for some distributions)
- 7. Verify the new Samba version is installed: smbstatus --version or winbindd --version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,808.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2022-2127 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2022-2127 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data