Bug 2496886 - CVE-2026-14612 freeipa: freeipa: off-by-one buffer overflows in ipa-otpd oauth2.c during OAuth2 device authorization [fedora-all]
Summary: CVE-2026-14612 freeipa: freeipa: off-by-one buffer overflows in ipa-otpd oaut...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: freeipa
Version: 45
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: IPA Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["2f8a565a-d9ca-4111-b2c0-2...
Depends On:
Blocks: CVE-2026-14612
TreeView+ depends on / blocked
 
Reported: 2026-07-03 15:04 UTC by Samuele Negrini
Modified: 2026-10-17 01:31 UTC (History)
8 users (show)

Fixed In Version: freeipa-4.13.4-3.fc44 freeipa-4.13.4-3.fc43
Clone Of:
Environment:
Last Closed: 2026-10-17 01:04:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Samuele Negrini 2026-07-03 15:04:20 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Two related off-by-one memory safety bugs in the FreeIPA ipa-otpd daemon,
in oauth2_on_child_readable() (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(verto_get_fd(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
    rad_reply = memchr(buf, '\n', io);
    if (rad_reply != NULL) {
        *rad_reply = '\0';
        rad_reply++;
        end = memchr(rad_reply, '\n', io - (rad_reply - 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).

Comment 2 Alexander Bokovoy 2026-07-03 15:42:02 UTC
Public fix: https://github.com/freeipa/freeipa/pull/8473

We consider this a low priority.

Comment 5 Aoife Moloney 2026-08-17 15:14:02 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.

Comment 6 Florence Blanc-Renaud 2026-09-23 14:01:55 UTC
Fixed upstream
master:
https://codeberg.org/freeipa/freeipa/commit/c00025dbe9a65f2708807b52cc66555b7a3109e4

Comment 7 Florence Blanc-Renaud 2026-09-25 15:43:54 UTC
Fixed upstream
ipa-4-13:
https://codeberg.org/freeipa/freeipa/commit/59b6b7c4ae0307c37c6636a6e44ba5c2a8929571

Comment 8 Fedora Update System 2026-10-02 06:37:07 UTC
FEDORA-2026-708e6b8e0c (freeipa-4.13.4-3.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-708e6b8e0c

Comment 9 Fedora Update System 2026-10-02 06:38:04 UTC
FEDORA-2026-a1aaa5d134 (freeipa-4.13.4-3.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-a1aaa5d134

Comment 10 Fedora Update System 2026-10-03 02:32:49 UTC
FEDORA-2026-708e6b8e0c has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-708e6b8e0c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-708e6b8e0c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2026-10-03 02:55:18 UTC
FEDORA-2026-a1aaa5d134 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-a1aaa5d134`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-a1aaa5d134

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2026-10-17 01:04:08 UTC
FEDORA-2026-708e6b8e0c (freeipa-4.13.4-3.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2026-10-17 01:31:45 UTC
FEDORA-2026-a1aaa5d134 (freeipa-4.13.4-3.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.