Description
A flaw was found in libssh. If data packets are processed after a channel is closed, channel data callbacks can be invoked after the associated data has already been freed, leading to crashes or possible use-after-free conditions.
Published: 2026-07-21
Score: 4.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in the libssh library allows channel data callbacks to be invoked after the associated channel memory has already been freed. When an application processes data packets on a closed channel, the library attempts to access freed memory, which can result in a crash or a memory corruption state. The primary impact is a denial of service and potential instability of the application using libssh; no confirmed escalation or remote code execution has been documented, but memory corruption remains a significant risk.

Affected Systems

Red Hat Enterprise Linux 10, 8, 9 and the Red Hat Hardened Images are affected because they ship the vulnerable libssh component. The specific affected versions of libssh are not listed in the CNA data. System administrators should verify the installed libssh package version against the vendor's errata RHSA-2026:42922.

Risk and Exploitability

The CVSS score of 4.3 classifies the vulnerability as moderate. The EPSS score of less than 1% indicates a very low likelihood that this flaw will be actively exploited in the wild, and it is not in the CISA KEV catalog. The likely attack vector is inferred from the description: an attacker could send crafted SSH data packets to a service or client that uses libssh, potentially triggering the callback on a closed channel. This could cause a crash or memory corruption if the attacker can control the packet sequence; however, no specific privilege escalation method is documented.

Generated by OpenCVE AI on July 30, 2026 at 17:25 UTC.

Remediation

Vendor Workaround

Manually verify the channel is not closed inside your channel data callbacks.


OpenCVE Recommended Actions

  • Apply the Red Hat patch RHSA-2026:42922 to upgrade libssh to the fixed version.
  • Insert a check in your channel‑data callbacks to verify the channel has not been closed before accessing any data, following the vendor‑recommended workaround.
  • Deploy the Red Hat Hardened Images which include the patched libssh component as an additional layer of protection.

Generated by OpenCVE AI on July 30, 2026 at 17:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6410-1 libssh security update
History

Mon, 27 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Libssh
Libssh libssh
Redhat hardened Images
Vendors & Products Libssh
Libssh libssh
Redhat hardened Images

Wed, 22 Jul 2026 20:00:00 +0000

Type Values Removed Values Added
References

Wed, 22 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 21 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 21 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Description A flaw was found in libssh. If data packets are processed after a channel is closed, channel data callbacks can be invoked after the associated data has already been freed, leading to crashes or possible use-after-free conditions.
Title Libssh: libssh: use-after-free via data callbacks on closed channels
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Weaknesses CWE-416
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'}


Subscriptions

Libssh Libssh
Redhat Enterprise Linux Hardened Images Hummingbird
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-22T19:07:15.638Z

Reserved: 2026-07-07T15:40:24.561Z

Link: CVE-2026-59850

cve-icon Vulnrichment

Updated: 2026-07-21T14:47:57.287Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-21T14:08:16Z

Links: CVE-2026-59850 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T17:30:17Z

Weaknesses