VDB

CVE-2022-2127

CVE-2022-2127 PUBLISHED CVSS 5.9 MEDIUM

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.

PackageEcosystemFixed in
samba-testAmazon Linux4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1
samba-winbind-modulesAmazon Linux4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1
samba-libsAmazon Linux4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1
openchange-debugsourceerrata.rockylinux.org2.3-32.el8.x86, 2.3-32.el8.i686, 2.3-32.el8.aarch64
samba-python-testAmazon Linux4.10.16-24.amzn2.0.4
evolution-mapi-debuginfoerrata.rockylinux.org3.28.3-8.el8.x86, 3.28.3-8.el8.aarch64
samba-pidlAmazon Linux4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1
libnetapiAmazon Linux2:4.17.10-0.amzn2023.0.1
samba-winbindAmazon Linux4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1
openchangeerrata.rockylinux.org2.3-32.el8.x86, 2.3-32.el8.src, 2.3-32.el8.i686, 2.3-32.el8.aarch64
samba-clientAmazon Linux4.10.16-24.amzn2.0.4, 2:4.17.10-0.amzn2023.0.1
libwbclientAmazon Linux4.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

CVSS 3.1
5.9
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
Red HatRed Hat Enterprise Linux 80:4.18.6-1.el8
Red HatRed Hat Enterprise Linux 80:4.18.6-1.el8
Red HatRed Hat Enterprise Linux 8.6 Extended Update Support0:4.15.5-15.el8_6
Red HatRed Hat Enterprise Linux 8.8 Extended Update Support0:4.17.5-5.el8_8
Red HatRed Hat Enterprise Linux 90:4.18.6-100.el9
Red HatRed Hat Enterprise Linux 90:4.18.6-100.el9
Red HatRed Hat Virtualization 4 for Red Hat Enterprise Linux 80:4.15.5-15.el8_6
Red HatRed Hat Enterprise Linux 6
Red HatRed Hat Enterprise Linux 6
Red HatRed Hat Enterprise Linux 7
Red HatRed Hat Storage 3
amazon:2samba-test0
amazon:2samba-winbind-modules0
amazon:2023samba-libs0
Red HatRed Hat Enterprise Linux 6
amazon:2samba-python-test0
Red HatRed Hat Virtualization 4 for Red Hat Enterprise Linux 80:4.15.5-15.el8_6
amazon:2023samba-pidl0
amazon:2023libnetapi0
amazon:2023samba-winbind0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›