Cyber Security News

OpenSSH GSSAPI Flaw Can Be Exploited to Crash SSH Child Processes

A newly discovered vulnerability in the GSSAPI Key Exchange patch for OpenSSH is putting multiple Linux distributions at risk.

Tracked as CVE-2026-3497, the flaw allows unauthenticated attackers to crash SSH child processes using a single crafted packet.

This leads to reliable denial-of-service conditions and to privilege separation boundary violations.

The issue was discovered by security researcher Jeremy Brown and recently disclosed to the open-source security community by Marc Deslauriers from Canonical.

The Root Cause of CVE-2026-3497

The vulnerability stems from a fundamental coding error within the error-handling logic of the GSSAPI key exchange (KEX) server loop.

When handling an error condition, the code mistakenly calls the non-terminating function sshpkt_disconnect() instead of the intended terminating function ssh_packet_disconnect().

Because the incorrect function only queues a disconnect message and returns rather than killing the process, the program falls through to a default error-handling case.

This allows the system to read an uninitialized stack variable named recv_tok. The system then sends the contents of this uninitialized variable to the privileged root monitor process via Inter-Process Communication (IPC) before passing it to gss_release_buffer().

Finally, this function attempts to call free() on a garbage pointer, leading to severe memory corruption.

The residual stack data contained in the uninitialized variable varies heavily depending on the compiler, optimization levels, and flags used during the build process.

Despite this variability, the flaw poses significant security risks.

Key technical impacts and exploitation details include:

  • Zero-Click Trigger: Attackers do not need valid credentials or authentication to exploit the flaw. It is triggered by sending a single, maliciously crafted SSH packet of approximately 300 bytes.
  • Reliable Process Crashes: The bug guarantees a 100% reliable crash of the SSH child process. This typically results in a memory segmentation fault (SIGSEGV) or program abort (SIGABRT) on x86_64 architectures, triggering a 90-second SSH lockout.
  • Privilege Separation Violations: Up to 127KB of potentially sensitive heap data can be sent across privilege boundaries directly to the root monitor via IPC.
  • Affected Environments: The vulnerability impacts Linux distributions, primarily Ubuntu and Debian, that carry the GSSAPI Key Exchange patch on top of their standard OpenSSH packages. Servers are vulnerable if  GSSAPIKeyExchange is enabled in their configuration.

Remediation and Patch Details

Canonical maintainers have provided a patch to resolve the defect. The fix is straightforward: replace the erroneous sshpkt_disconnect() function with ssh_packet_disconnect() at the three vulnerable server-side call sites in kexgsss.c file.

System administrators running Debian or Ubuntu servers should immediately update their OpenSSH packages.

For organizations unable to patch immediately, turning off the GSSAPIKeyExchange feature in the SSH daemon configuration will effectively mitigate the threat.

Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

1 day ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

1 day ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

1 day ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

1 day ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

1 day ago