CWE-191Weakness · CWE-191

CVE-2026-11850

MEDIUM · 5.0 CVSS v3.1 Published 2026-06-11
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
56/100
Remediation priority · Elevated
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

An integer underflow exists in MIT krb5's LDAP KDB module where the bernal2tl_data() function performs unsigned subtraction (bv_len - 2) without validating bv_len is >= 2 first. When bv_len is 0 or 1, the subtraction wraps around and is truncated to 65534 or 65535, causing memcpy to read a large number of bytes from a tiny (0-1 byte) buffer, resulting in a heap out-of-bounds read.

MitigationAdd a bounds check ensuring bv_len >= 2 before performing the subtraction, and validate all krbExtraData attributes from the LDAP backend meet expected structure requirements before processing.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
High
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify MIT krb5 installation and version
    Run 'krb5-config --version' or check via package manager (e.g., 'rpm -q krb5-server' on RHEL, 'dpkg -l krb5-kdc' on Debian). Compare the installed version against MIT krb5 release notes.
    Affected if The installed MIT krb5 version is older than the patched release containing the fix for this integer underflow in bernal2tl_data().
  2. Verify LDAP KDB module is in use
    Inspect /etc/krb5.conf for LDAP KDB backend configuration. Look for 'database_module' or 'db_library' directives pointing to LDAP (e.g., 'db_library = kldap'), or 'kdc_realm' sections referencing LDAP-based realms.
    Affected if The KDC is configured to use the LDAP KDB module as its backend database.
  3. Confirm krbExtraData LDAP attributes exist
    Query your LDAP directory (e.g., via ldapsearch) for objects with the krbExtraData attribute. Example: 'ldapsearch -x -b "dc=example,dc=com" krbExtraData'
    Affected if LDAP entries contain krbExtraData attributes with a length (bv_len) of 0 or 1 bytes, which triggers the underflow in bernal2tl_data().
  4. Check for the vulnerable code path in bernal2tl_data()
    If source is available, review the bernal2tl_data() function in the LDAP KDB module source for missing bounds check on bv_len before the 'bv_len - 2' subtraction.
    Affected if The code lacks validation that bv_len >= 2 before performing the unsigned subtraction, allowing wraparound.

You are affected if you run a vulnerable version of MIT krb5 with the LDAP KDB module enabled AND have LDAP entries containing krbExtraData attributes with lengths of 0 or 1 bytes.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Add a bounds check ensuring bv_len >= 2 before performing the subtraction, and validate all krbExtraData attributes from the LDAP backend meet expected structure requirements before processing.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation4.0 h
  • Testing6.0 h
  • Review / QA3.0 h
16.0 hours of engineering $2,760
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,416.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-11850 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-11850 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data