Bug 2539966 (CVE-2026-107934)

Summary: CVE-2026-107934 freeIPA: idm: FreeIPA: krbPrincipalMatch uniqueness bypass via whitespace-padded Kerberos principal names (incomplete fix of CVE-2025-4404 / CVE-2025-7493)
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: abokovoy, dhanina, frenaud, ftrivino, mkaminsk, security-response-team, snegrini, watson-tool-maintainers
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A privilege escalation from host to domain admin vulnerability was found in the FreeIPA project. The krbPrincipalMatch matching rule used to enforce Kerberos principal name uniqueness does not perform RFC 4517 insignificant-space normalization, allowing a user who controls a service principal (such as an enrolled host) to create a principal whose krbCanonicalName, krbPrincipalName, or ipaKrbPrincipalAlias differs from a protected name (e.g. admin@REALM) only by leading, trailing, or duplicated whitespace. Uniqueness enforcement treats this as a different name and permits the write, while the KDC, the native LDAP attribute comparison, and the SASL-to-DN identity map all treat the whitespace as insignificant and resolve the padded name to the real privileged principal. This allows an attacker to obtain a Kerberos ticket for the impersonated identity, leading to full administrative access over the realm.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Deadline: 2026-11-30   

Description OSIDB Bzimport 2026-09-24 06:41:17 UTC
The krbPrincipalMatch matching-rule plugin (daemons/ipa-slapi-plugins/ipa-krbprinc-mr/ipa_krbprinc_mr.c, normalize_krbprinc()) does not perform RFC 4517 insignificant-space normalization. It normalizes candidate principal names purely via krb5_parse_name/krb5_unparse_name (+ optional tolower), under which whitespace is significant. This lets an attacker who controls a service principal (e.g. an enrolled host managing a principal via managedby, the same prerequisite as CVE-2025-4404/CVE-2025-7493) set krbCanonicalName, krbPrincipalName, or ipaKrbPrincipalAlias to a whitespace-padded variant of a protected name (e.g. "admin@REALM " with a trailing space). The 389-ds attribute-uniqueness enforcement introduced by the CVE-2025-4404/CVE-2025-7493 fixes sees a different name and allows the write, while the KDC's TGS lookup filter (caseIgnoreIA5Match), the native caseExactIA5Match on the attribute, and the 389-ds SASL-to-DN identity map all treat the whitespace as insignificant (RFC 4517) and resolve the padded name back to the real privileged principal, re-opening the host-to-domain-admin escalation. This is a distinct normalization gap from CVE-2026-13097 (missing @REALM suffix, same underlying mechanism). Independently verified: current normalize_krbprinc() on freeipa/freeipa master (confirmed live, post CVE-2026-13097 fix) still contains no whitespace trimming/collapsing logic; live testing against 389-ds 3.1.3 and FreeIPA 4.13.3-1.el10 confirmed the shipped krbCanonicalName:krbPrincipalMatch: uniqueness config rejects an exact duplicate of admin@REALM but accepts the trailing-space variant, and that the padded entry resolves to uid=admin under the KDC's caseIgnoreIA5Match. Planting Kerberos keys on the padded entry and requesting an actual admin TGT was deliberately not performed (same canonicalization mechanism already established by CVE-2025-4404/CVE-2025-7493).

Comment 1 errata-xmlrpc 2026-12-01 09:29:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.2 Extended Update Support

Via RHSA-2026:105884 https://access.redhat.com/errata/RHSA-2026:105884

Comment 2 errata-xmlrpc 2026-12-01 09:40:34 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:105882 https://access.redhat.com/errata/RHSA-2026:105882

Comment 3 errata-xmlrpc 2026-12-01 09:46:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.8 Extended Update Support

Via RHSA-2026:105883 https://access.redhat.com/errata/RHSA-2026:105883

Comment 4 errata-xmlrpc 2026-12-01 10:25:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:105881 https://access.redhat.com/errata/RHSA-2026:105881