REDHAT-BUG-2496879: Low severity FreeIPA FreeIPA ipa-otpd daemon (ipa-otpd) vulnerability
Two related off-by-one memory safety bugs in the FreeIPA ipa-otpd daemon, in oauth2onchildreadable() (daemons/ipa-otpd/oauth2.c). Confirmed by reporter with AddressSanitizer on minimal reproducers. Verified against upstream master (2026-07-03): vulnerable code still present.
Bug #1 — Out-of-bounds write (CWE-787), oauth2.c ~line 282 static char buf[10240]; io = read(vertogetfd(ev), buf, 10240); if (io >= 0) { buf[io] = '\0'; // OOB when io == 10240 }
Bug #2 — Out-of-bounds read (CWE-125), oauth2.c ~line 305 radreply = memchr(buf, '\n', io); if (radreply != NULL) { radreply = '\0'; radreply++; end = memchr(radreply, '\n', io - (radreply - 1 - buf)); // off by 1 }
Prerequisites: 1. FreeIPA configured with external IdP (ipa idp-add) 2. Attacker controls IdP endpoint or can MITM IdP traffic 3. A domain user initiates OAuth2 device authorization (kinit / IdP-backed account)
Requirements to exploit: No FreeIPA admin credentials required on attacker side. Attacker operates at the IdP layer. User interaction required to start the OAuth2 device flow. Exploitation preconditions are non-trivial (IdP control/MITM + configured IdP).
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2496879?
The severity of REDHAT-BUG-2496879 is classified as low.
How do I fix REDHAT-BUG-2496879?
To address REDHAT-BUG-2496879, ensure you apply the latest patches provided by FreeIPA for the ipa-otpd daemon.
What is the description of REDHAT-BUG-2496879?
REDHAT-BUG-2496879 describes two related off-by-one memory safety bugs in the FreeIPA ipa-otpd daemon.
What software is affected by REDHAT-BUG-2496879?
REDHAT-BUG-2496879 affects the FreeIPA ipa-otpd daemon (ipa-otpd).
When was REDHAT-BUG-2496879 published?
REDHAT-BUG-2496879 was published on July 3, 2026.