Vulnerability · Published Jun 11, 2026 · Assigned by redhat
CVE-2026-11850Krb5: krb5: integer underflow in berval2tl_data() leads to heap out-of-bounds read
Medium 5.0
In plain English
A medium-severity security flaw in Red Hat Enterprise Linux 10 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 19% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
An integer underflow vulnerability was found in MIT krb5 in the berval2tl_data() function in plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c. The function performs an unsigned subtraction (bv_len - 2) without a prior bounds check. When bv_len is 0 or 1, the subtraction wraps to a large value which is then truncated to uint16_t, yielding 0xFFFE (65534) or 0xFFFF (65535). The subsequent malloc succeeds and memcpy reads up to 65534 bytes from a 0-1 byte buffer, resulting in a heap out-of-bounds read. The attack vector involves a malicious or compromised LDAP KDB backend returning a krbExtraData attribute with bv_len < 2, triggering the underflow when the KDC or kadmind reads principal data.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | krb5 | no fix listed | DEBIAN-CVE-2026-11850 |
| Debian:13 | krb5 | no fix listed | DEBIAN-CVE-2026-11850 |
| Debian:14 | krb5 | 1.22.1-3 | DEBIAN-CVE-2026-11850 |
| Ubuntu:22.04:LTS | krb5 | 1.19.2-2ubuntu0.8 | USN-8585-1 |
| Ubuntu:22.04:LTS | krb5 | 1.19.2-2ubuntu0.8 | UBUNTU-CVE-2026-11850 |
| Ubuntu:24.04:LTS | krb5 | 1.20.1-6ubuntu2.7 | USN-8585-1 |
| Ubuntu:24.04:LTS | krb5 | 1.20.1-6ubuntu2.7 | UBUNTU-CVE-2026-11850 |
| Ubuntu:25.10 | krb5 | no fix listed | UBUNTU-CVE-2026-11850 |
| Ubuntu:26.04:LTS | krb5 | 1.22.1-2ubuntu4.1 | UBUNTU-CVE-2026-11850 |
| Ubuntu:26.04:LTS | krb5 | 1.22.1-2ubuntu4.1 | USN-8585-1 |
Affected products (as reported)
Weakness: CWE-191 · Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:H
References
- RHSA-2026:25520 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-11850 vdb-entry, x_refsource_REDHAT
- RHBZ#2459970 issue-tracking, x_refsource_REDHAT