Description
An out-of-bounds read flaw was found in Samba's Kerberos Key Distribution Center's (KDC) password change (kpasswd) service. When processing malformed ASN.1-encoded Kerberos password change request, Samba server miscalculates the structure size and attempts to read up to six bytes beyond the end of the allocated buffer. While this out-of-bounds read typically results in a harmless decryption failure, if the read hits unmapped memory, it causes the KDC process to crash. An authenticated attacker can send a specially crafted kpasswd request containing malformed ASN.1 data to trigger the out-of-bounds read, which may cause the KDC process to terminate, resulting in a denial of service.
Published: 2026-07-30
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An out-of-bounds read flaw in Samba’s Kerberos Key Distribution Center password‑change service (kpasswd) allows an attacker who can authenticate to a Samba KDC to send a specially crafted ASN.1‑encoded request. The server miscalculates the structure size and reads up to six bytes beyond a buffer, which normally causes a decryption failure but can trigger a crash when the out‑of‑bounds read hits unmapped memory. The resulting termination of the KDC process leads to a denial of service for clients relying on Kerberos authentication.

Affected Systems

Red Hat Enterprise Linux versions 6, 7, 8, 9, and 10, as well as Red Hat OpenShift Container Platform 4, all of which run Samba with a Kerberos KDC that includes the kpasswd service. Versions of Samba bundled with these platforms that have not yet been updated to patch the flaw are affected.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate impact, and the vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog. Although the EPSS score is below 1%, the requirement for an authenticated attacker suggests that exploitation is limited to users who possess valid Kerberos credentials or who can otherwise gain authentication to the Samba server. Rate limiting or disabling the kpasswd service can mitigate the risk until a patch is applied.

Generated by OpenCVE AI on August 2, 2026 at 05:13 UTC.

Remediation

Vendor Workaround

Administrators who do not require the Kerberos password change service may disable it by setting ```kpasswd port = 0``` in ```/etc/samba/smb.conf```. Where disabling the service is not practical, rate-limiting access to the kpasswd service may reduce the likelihood of successful exploitation until an updated package can be applied. Note: Disabling kpasswd port will prevent domain users from changing their Kerberos passwords via the kpasswd protocol until patched.


OpenCVE Recommended Actions

  • Upgrade Samba to a version that fixes CVE-2026‑58216.
  • If disabling the kpasswd service is acceptable, set "kpasswd port = 0" in /etc/samba/smb.conf to prevent Kerberos password changes via kpasswd.
  • Apply rate limiting on the kpasswd service to reduce the likelihood of successful exploitation until an update is deployed.
  • Monitor Samba logs for abnormal kpasswd activity as an indicator of attempted exploitation.

Generated by OpenCVE AI on August 2, 2026 at 05:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6401-1 samba security update
Ubuntu USN Ubuntu USN USN-8621-1 Samba vulnerabilities
History

Fri, 31 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 31 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 30 Jul 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Redhat openshift Container Platform
Samba
Samba samba
Vendors & Products Redhat openshift Container Platform
Samba
Samba samba

Thu, 30 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Description An out-of-bounds read flaw was found in Samba's Kerberos Key Distribution Center's (KDC) password change (kpasswd) service. When processing malformed ASN.1-encoded Kerberos password change request, Samba server miscalculates the structure size and attempts to read up to six bytes beyond the end of the allocated buffer. While this out-of-bounds read typically results in a harmless decryption failure, if the read hits unmapped memory, it causes the KDC process to crash. An authenticated attacker can send a specially crafted kpasswd request containing malformed ASN.1 data to trigger the out-of-bounds read, which may cause the KDC process to terminate, resulting in a denial of service.
Title Samba: kpasswd service: kpasswd packet that contains malformed asn.1 might cause the server to access 6 bytes of unallocated memory leading server to crash
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
Weaknesses CWE-125
CPEs cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

Redhat Enterprise Linux Openshift Openshift Container Platform
Samba Samba
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-31T22:57:42.253Z

Reserved: 2026-06-29T18:13:08.159Z

Link: CVE-2026-58216

cve-icon Vulnrichment

Updated: 2026-07-31T22:57:38.160Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-30T16:17:14.767

Modified: 2026-07-31T23:17:25.703

Link: CVE-2026-58216

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-28T10:00:00Z

Links: CVE-2026-58216 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T05:15:15Z

Weaknesses