CVE-2025-4878
LOWRed Hat Enterprise Linux 10 - Use-After-Free in privatekey_from_file()
Title source: llmDescription
A vulnerability was found in libssh, where an uninitialized variable exists under certain conditions in the privatekey_from_file() function. This flaw can be triggered if the file specified by the filename doesn't exist and may lead to possible signing failures or heap corruption.
References (6)
Core 6
Core References
Vendor Advisory vdb-entry
x_refsource_redhat
https://access.redhat.com/security/cve/CVE-2025-4878
Issue Tracking issue-tracking
x_refsource_redhat
https://bugzilla.redhat.com/show_bug.cgi?id=2376184
Patch
https://git.libssh.org/projects/libssh.git/commit/?id=697650caa97eaf7623924c75f9fcfec6dd423cd1
Patch
https://git.libssh.org/projects/libssh.git/commit/?id=b35ee876adc92a208d47194772e99f9c71e0bedb
Vendor Advisory vendor-advisory
x_refsource_redhat
RHSA-2026:18683
https://access.redhat.com/errata/RHSA-2026:18683
Scores
CVSS v3
3.6
EPSS
0.0020
EPSS Percentile
41.8%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
total
Details
CWE
CWE-416
Status
published
Products (7)
Red Hat/Red Hat Enterprise Linux 10
Red Hat/Red Hat Enterprise Linux 6
Red Hat/Red Hat Enterprise Linux 7
Red Hat/Red Hat Enterprise Linux 8
Red Hat/Red Hat Enterprise Linux 9
Red Hat/Red Hat Enterprise Linux 9
0:0.10.4-18.el9
Red Hat/Red Hat OpenShift Container Platform 4
Published
Jul 22, 2025
Tracked Since
Feb 18, 2026