Description
Two off-by-one errors in the FreeIPA ipa-otpd daemon's OAuth2 device authorization handler can cause out-of-bounds memory access when processing an oversized response from a configured external OAuth2/OIDC Identity Provider. An attacker who controls or can man-in-the-middle the IdP endpoint may be able to trigger ipa-otpd to write or read one byte past the end of a fixed-size buffer. Exploitation requires FreeIPA to be configured with an external IdP, attacker control or MITM of that IdP, and a user to initiate the OAuth2 device authorization flow. The most likely impact is limited denial of service affecting the ipa-otpd daemon.
Problem types
Product status
Timeline
| 2026-04-13: | Reported to Red Hat. |
| 2026-07-03: | Made public. |
Credits
Red Hat would like to thank Andrew Rukin (Arenadata) for reporting this issue.
References
access.redhat.com/security/cve/CVE-2026-14612
bugzilla.redhat.com/show_bug.cgi?id=2496879 (RHBZ#2496879)