CVE-2026-39834
Description
When writing data larger than 4GB in a single Write call on an SSH channel, an integer overflow in the internal payload size calculation caused the write loop to spin indefinitely, sending empty packets without making progress. The size comparison now uses int64 to prevent truncation.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
An integer overflow in Go's x/crypto SSH channel write causes infinite loop when writing over 4 GB in a single call, leading to denial of service.
Vulnerability
In the golang.org/x/crypto SSH package, the Write method on an SSH channel uses an int for internal payload size calculations. When a single Write call attempts to write more than 4 GB of data, an integer overflow truncates the size, causing the write loop to continue indefinitely sending empty packets without making progress [1][3]. This affects all versions of the package before the fix.
Exploitation
An attacker who can write to an SSH channel (e.g., an authenticated SSH client or server sending large data) can trigger the infinite loop by initiating a single Write call with data exceeding 4 GB. No special privileges beyond the ability to write to the channel are required [3].
Impact
The attack results in a denial of service: the affected process spins indefinitely, consuming CPU resources and blocking the goroutine from making progress. Data is not lost or corrupted, but the SSH channel becomes unresponsive [3].
Mitigation
The fix replaces the int size comparison with int64 to prevent truncation [1][3]. The specific patched version is not explicitly listed in the provided references; users should update to the latest release of golang.org/x/crypto as per the Go security advisory. No workaround is described, and the CVE is not listed on CISA's Known Exploited Vulnerabilities (KEV) catalog [1].
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4News mentions
0No linked articles in our index yet.