Skip to content
Memory corruption Write-up Advanced

CVE-2023–25136 [OpenSSH]

A double-free vulnerability in OpenSSH's key exchange processing could be triggered by sending specific data to the server, potentially leading to remote code execution. The text claims an unauthenticated attacker could exploit this to execute arbitrary code, access sensitive information, or cause a denial of service.

medium.com

Published on medium.com

This vulnerability is of the “double-free” type, which occurs during the processing of key exchange (KEX) algorithms in OpenSSH. A “double-free” vulnerability happens when memory that has already been freed is freed again.

Acyber Security Team, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a double-free error in the handling of key exchange (KEX) algorithms, where memory that has already been freed is freed again.

Impact

If successful, an attacker could remotely execute arbitrary code, access sensitive information, or cause the SSH service to crash; the text does not mention any defence that limited the exploit.

What the attacker needed

OpenSSH server before version 9.1; No authentication needed; Server uses vulnerable KEX algorithms

The fix

The vulnerability was fixed in OpenSSH version 9.2, and additional measures such as firewalls and restricting SSH access are recommended.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This is about a bug in OpenSSH, the software that lets you log into servers remotely. A 'double-free' means the program tries to release the same piece of memory twice, which can corrupt memory and let an attacker run their own code. The text says an attacker could do this without logging in first.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.