# CVE-2026-58216: 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

- Severity: Medium 5.3 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-07-30T15:40:11.673Z
- Modified: 2026-07-31T23:17:25.703Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- samba: no versions given
- samba4: no versions given
- rhcos: no versions given

## References

- <https://access.redhat.com/security/cve/CVE-2026-58216> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2502721> (issue-tracking)
- <https://bugzilla.samba.org/show_bug.cgi?id=16087>
- <https://www.samba.org/samba/security/CVE-2026-58216.html>

## Sources

- CVE List: [CVE-2026-58216](https://www.cve.org/CVERecord?id=CVE-2026-58216), CVE Terms of Use, modified 2026-07-31
- NVD: [CVE-2026-58216](https://nvd.nist.gov/vuln/detail/CVE-2026-58216), Public domain, modified 2026-07-31

---

Page: https://cve.day/CVE-2026-58216 · Whole record: https://cve.day/CVE-2026-58216.json · Rebuilt by cve.day 2026-11-25T22:59:30.641Z
