CVE-2026-3497
Analyzed
Analyzed - Analysis Complete
Use-After-Free in OpenSSH GSSAPI Patch Causes Memory Corruption
Publication date: 2026-03-12
Last updated on: 2026-06-02
Assigner: Canonical Ltd.
Description
Description
Vulnerability in the OpenSSH GSSAPI delta included in various Linux distributions. This vulnerability affects the GSSAPI patches added by various Linux distributions and does not affect the OpenSSH upstream project itself. The usage of sshpkt_disconnect() on an error, which does not terminate the process, allows an attacker to send an unexpected GSSAPI message type during the GSSAPI key exchange to the server, which will call the underlying function and continue the execution of the program without setting the related connection variables. As the variables are not initialized to NULL the code later accesses those uninitialized variables, accessing random memory, which could lead to undefined behavior. The recommended workaround is to use ssh_packet_disconnect() instead, which does terminate the process. The impact of the vulnerability depends heavily on the compiler flag hardening configuration.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| openbsd | openssh | * |
| debian | debian_linux | 11.0 |
| redhat | enterprise_linux | 8.0 |
| canonical | ubuntu_linux | 20.04 |
| redhat | enterprise_linux | 9.0 |
| canonical | ubuntu_linux | 22.04 |
| canonical | ubuntu_linux | 24.04 |
| redhat | enterprise_linux | 10.0 |
| canonical | ubuntu_linux | 25.10 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-908 | The product uses or accesses a resource that has not been initialized. |