Bug 2572656 - CVE-2026-127099 sssd: sssd: Stack buffer overflow during RSA certificate-to-SSH key conversion [fedora-all]
Summary: CVE-2026-127099 sssd: sssd: Stack buffer overflow during RSA certificate-to-S...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: sssd
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: sssd-maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["b57d178b-ed0e-468a-bac2-d...
Depends On:
Blocks: CVE-2026-127099
TreeView+ depends on / blocked
 
Reported: 2026-11-12 16:41 UTC by Samuele Negrini
Modified: 2026-11-12 16:41 UTC (History)
7 users (show)

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


Attachments (Terms of Use)

Description Samuele Negrini 2026-11-12 16:41: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.

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.