Bug 2494352 - CVE-2026-58050 libssh2: libssh2: Heap buffer overflow via integer overflow in publickey attribute allocation [fedora-all]
Summary: CVE-2026-58050 libssh2: libssh2: Heap buffer overflow via integer overflow in...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: libssh2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Paul Howarth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["d3f07f0d-4ba1-4aab-a8c2-9...
Depends On:
Blocks: CVE-2026-58050
TreeView+ depends on / blocked
 
Reported: 2026-06-29 14:26 UTC by Srikanth Balasubramanian
Modified: 2026-06-29 14:26 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Srikanth Balasubramanian 2026-06-29 14:26:15 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.

libssh2 through 1.11.1 reads an attacker-controlled 32-bit attribute count from a publickey-subsystem response and uses it in the allocation num_attrs * sizeof(libssh2_publickey_attribute) without bounds checking, so on 32-bit platforms the multiplication overflows to an undersized buffer. A malicious SSH server can then drive the attribute-parsing loop to write past the allocation, causing a heap buffer overflow in a connecting libssh2 client.


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