CVE-2022-2127
Samba: out-of-bounds read in winbind auth_crap
Reported by redhat · Published July 20, 2023
An 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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| samba-test | Amazon Linux | 4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1 |
| samba-winbind-modules | Amazon Linux | 4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1 |
| samba-libs | Amazon Linux | 4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1 |
| openchange-debugsource | errata.rockylinux.org | 2.3-32.el8.x86, 2.3-32.el8.i686, 2.3-32.el8.aarch64 |
| samba-python-test | Amazon Linux | 4.10.16-24.amzn2.0.4 |
| evolution-mapi-debuginfo | errata.rockylinux.org | 3.28.3-8.el8.x86, 3.28.3-8.el8.aarch64 |
| samba-pidl | Amazon Linux | 4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1 |
| libnetapi | Amazon Linux | 2:4.17.10-0.amzn2023.0.1 |
| samba-winbind | Amazon Linux | 4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1 |
| openchange | errata.rockylinux.org | 2.3-32.el8.x86, 2.3-32.el8.src, 2.3-32.el8.i686, 2.3-32.el8.aarch64 |
| samba-client | Amazon Linux | 4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1 |
| libwbclient | Amazon Linux | 4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1 |
34 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 8 | 0:4.18.6-1.el8 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:4.18.6-1.el8 |
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support | 0:4.15.5-15.el8_6 |
| Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | 0:4.17.5-5.el8_8 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:4.18.6-100.el9 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:4.18.6-100.el9 |
| Red Hat | Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 | 0:4.15.5-15.el8_6 |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 6 | |
| Red Hat | Red Hat Enterprise Linux 7 | |
| Red Hat | Red Hat Storage 3 | |
| amazon:2 | samba-test | 0 |
| amazon:2 | samba-winbind-modules | 0 |
| amazon:2023 | samba-libs | 0 |
| Red Hat | Red Hat Enterprise Linux 6 | |
| amazon:2 | samba-python-test | 0 |
| Red Hat | Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 | 0:4.15.5-15.el8_6 |
| amazon:2023 | samba-pidl | 0 |
| amazon:2023 | libnetapi | 0 |
| amazon:2023 | samba-winbind | 0 |
…and 59 more
Timeline
- Jul 19, 2023 CVE Published
- Jul 21, 2023 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Distribution Patch (12 in total, the first dated here)
- Jun 2, 2026 Security Advisory (13 in total, the first dated here)
- Jul 8, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-2127
vulnetix vdb fixes CVE-2022-2127
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-2127/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2023:6667 vendor-advisoryx_refsource_REDHAT
- RHSA-2023:7139 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:0423 vendor-advisoryx_refsource_REDHAT
- RHSA-2024:0580 vendor-advisoryx_refsource_REDHAT
- vdb-entryx_refsource_REDHAT
- RHBZ#2222791 issue-trackingx_refsource_REDHAT
- https://lists.debian.org/debian-lts-announce/2024/04/msg00015.html url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BPCSGND7LO467AJGR5DYBGZLTCGTOBCC/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OT74M42E6C36W7PQVY3OS4ZM7DVYB64Z/ url
- https://security.netapp.com/advisory/ntap-20230731-0010/ url
- https://www.debian.org/security/2023/dsa-5477 url