The privatekey_from_file() uses an uninitialized variable under certain conditions, such as if the file specified by the filename argument doesn't exist. This causes the code to return an invalid private key. This defect, in turn, might cause signing failure. The bug might also cause a Use-After-Free or corrupt the heap. Note that privatekey_from_file() is a deprecated function and shouldn't be used anymore!
This issue has been addressed in the following products: Red Hat Enterprise Linux 9 Via RHSA-2026:18683 https://access.redhat.com/errata/RHSA-2026:18683