Skip to content
Heist/ feed
Back to feed
MediumFix available

samba — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2022-2127

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.

Products
samba
Affected versions
2:4.17.10+dfsg-0+deb12u1~bpo11+1, 2:4.17.8+dfsg-2, 2:4.17.8+dfsg-2.1, 2:4.17.9+dfsg-0+deb12u1, 2:4.17.9+dfsg-0+deb12u2, 2:4.17.9+dfsg-0+deb12u3, 2:4.17.9+dfsg-0+deb12u3~bpo11+1
Fixed versions
2:4.17.10+dfsg-0+deb12u1, 2:4.18.5+dfsg-1
CVEs
CVE-2022-2127
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 14:34 UTC · Revision 1

Source evidence

DEBIAN-CVE-2022-2127

core-osv · Original source

Published 20 Jul 2023, 15:15 UTC

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.

osv:DEBIAN-CVE-2022-2127

samba

Fixed versions: 2:4.17.10+dfsg-0+deb12u1

samba

Fixed versions: 2:4.18.5+dfsg-1

samba

Fixed versions: 2:4.18.5+dfsg-1

Complete source record
{
  "id": "1d91563c9f89691934e9d25126d1d19ca7c9e2c16ab578c29c63f97e1078b08c",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-2127",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2022-2127",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2022-2127",
    "products": [
      {
        "name": {
          "value": "samba",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:4.17.10+dfsg-0+deb12u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "2:4.17.10+dfsg-0+deb12u1~bpo11+1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2:4.17.8+dfsg-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2:4.17.8+dfsg-2.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2:4.17.9+dfsg-0+deb12u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2:4.17.9+dfsg-0+deb12u2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2:4.17.9+dfsg-0+deb12u3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2:4.17.9+dfsg-0+deb12u3~bpo11+1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "samba",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:4.18.5+dfsg-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "samba",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2:4.18.5+dfsg-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2022-2127",
      "aliases": [
        "DEBIAN-CVE-2022-2127"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:4.17.10+dfsg-0+deb12u1"
                }
              ]
            }
          ],
          "package": {
            "name": "samba",
            "purl": "pkg:deb/debian/samba?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "2:4.17.10+dfsg-0+deb12u1~bpo11+1",
            "2:4.17.8+dfsg-2",
            "2:4.17.8+dfsg-2.1",
            "2:4.17.9+dfsg-0+deb12u1",
            "2:4.17.9+dfsg-0+deb12u2",
            "2:4.17.9+dfsg-0+deb12u3",
            "2:4.17.9+dfsg-0+deb12u3~bpo11+1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-2127.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:4.18.5+dfsg-1"
                }
              ]
            }
          ],
          "package": {
            "name": "samba",
            "purl": "pkg:deb/debian/samba?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-2127.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2:4.18.5+dfsg-1"
                }
              ]
            }
          ],
          "package": {
            "name": "samba",
            "purl": "pkg:deb/debian/samba?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-2127.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T08:00:42.959956081Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-2127"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2022-2127"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-2127",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 322613,
  "published_at": "2023-07-20T15:15:11.183+00:00"
}