Bug 2376184 (CVE-2025-4878) - CVE-2025-4878 libssh: Use of uninitialized variable in privatekey_from_file()
Summary: CVE-2025-4878 libssh: Use of uninitialized variable in privatekey_from_file()
Keywords:
Status: NEW
Alias: CVE-2025-4878
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-07-03 17:47 UTC by OSIDB Bzimport
Modified: 2025-07-03 17:58 UTC (History)
5 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-07-03 17:47:18 UTC
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!


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