Bug 2572590 (CVE-2026-127099) - CVE-2026-127099 sssd: sssd: Stack buffer overflow during RSA certificate-to-SSH key conversion
Summary: CVE-2026-127099 sssd: sssd: Stack buffer overflow during RSA certificate-to-S...
Keywords:
Status: NEW
Alias: CVE-2026-127099
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2572656
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-12 15:00 UTC by OSIDB Bzimport
Modified: 2026-11-12 16:41 UTC (History)
18 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-12 15:00:23 UTC
A flaw was found in SSSD. The rsa_pub_key_to_ssh() function in src/util/cert/libcrypto/cert.c converts the RSA modulus and public exponent from an X.509 certificate into fixed-size stack buffers using BN_bn2bin(), without checking BN_num_bytes() against the destination sizes. The exponent buffer is 8 bytes and the modulus buffer is 2048 bytes in the reviewed configuration. RSA components exceeding those sizes can overwrite stack memory, causing the SSH responder to crash and potentially corrupting process state. The LDAP userCertificate;binary to SSH authorized-key lookup path requires an attacker-influenced certificate and ssh_use_certificate_keys=true. Certificate validation must succeed unless verification is explicitly disabled. The maintainer confirmed the 64-bit exponent buffer limit, the absence of prior SSSD key-size validation, and the feasibility of dynamic allocation; they consider this CVE-worthy because appropriately issued valid certificates may reach the conversion. No end-to-end arbitrary-code-execution exploit is established. Source report: PSIRTSUPT-25890, finding H-06.


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