
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-11850 is an integer underflow vulnerability in MIT Kerberos 5 (krb5) within the berval2tl_data() function located in plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c. The flaw causes a heap out-of-bounds read when a malicious or compromised LDAP KDB backend returns a krbExtraData attribute with a length (bv_len) of 0 or 1. The vulnerability was reported to Red Hat Bugzilla on 2026-04-21 and publicly disclosed on 2026-06-11. It carries a CVSS v3.1 base score of 5.0 (Medium) (Github Advisory, Red Hat Bugzilla).
The root cause is an integer underflow (CWE-191) combined with a subsequent out-of-bounds read (CWE-125) in berval2tl_data(). The function performs the unsigned subtraction bv_len - 2 without first verifying that bv_len >= 2; when bv_len is 0 or 1, the result wraps around to a large unsigned value that is then truncated to uint16_t, yielding 0xFFFE (65534) or 0xFFFF (65535). A malloc() call using this wrapped value succeeds, and a subsequent memcpy() reads up to 65534 bytes from a buffer that contains only 0–1 valid bytes, resulting in a heap out-of-bounds read. The attack requires a malicious or compromised LDAP KDB backend to return a crafted krbExtraData attribute with bv_len < 2, which is then processed by the KDC or kadmind when reading principal data. An upstream fix is referenced at commit 2a5fd83 in the krb5 repository and tracked as MIT ticket #9206 (Red Hat Bugzilla, Github Advisory).
Successful exploitation allows an attacker controlling or compromising the LDAP KDB backend to cause the KDC or kadmind process to read up to 65534 bytes of heap memory beyond the intended buffer boundary. This can result in disclosure of sensitive in-memory data (low confidentiality impact) and a potential crash of the KDC or kadmind service (high availability impact). Integrity is not directly affected. Because the KDC is central to Kerberos authentication infrastructure, a service crash could disrupt authentication for all dependent systems in the realm (Github Advisory, Red Hat Bugzilla).
krbExtraData attribute: Modify or inject a principal entry in the LDAP directory such that the krbExtraData attribute has a bv_len value of 0 or 1 (i.e., fewer than 2 bytes).kadmind to read the manipulated principal entry — for example, by initiating an authentication request for the affected principal or by querying it via kadmin.berval2tl_data() function computes bv_len - 2 without bounds checking, wrapping to 0xFFFE or 0xFFFF, which is used as the allocation and copy size.memcpy reads up to 65534 bytes from the 0–1 byte buffer into the allocated heap region, potentially exposing sensitive heap contents (e.g., keying material, tickets) or crashing the KDC/kadmind process (Red Hat Bugzilla, Github Advisory).krb5kdc) or kadmind logs, particularly when processing specific principal entries; LDAP access logs showing unusual modifications to krbExtraData attributes with very short values.krbExtraData attribute values to 0 or 1 byte in length.krb5kdc or kadmind processes; unexpected restarts of these services by init/systemd.krbExtraData.Red Hat has released a patched package for Red Hat Hardened Images: krb5-1.22.2-8.hum1 (covering krb5-libs, krb5-server, krb5-server-ldap, and related packages for aarch64 and x86_64), addressed in security advisory RHSA-2026:25520 issued 2026-06-12 (Red Hat Advisory). The upstream fix is available at commit 2a5fd83 in the krb5 GitHub repository (Red Hat Bugzilla). As a workaround, restrict access to the LDAP KDB backend to trusted administrators only, implement network segmentation to limit KDC-to-LDAP communication to authorized systems, and monitor LDAP connections and principal data modifications for suspicious activity.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."