Skip to content
DoS Advisory Intermediate CVE-2023-39180

Linux Kernel ksmbd Read Request Memory Leak Denial-of-Service Vulnerability

The Linux kernel's ksmbd SMB server fails to release memory after handling SMB2_READ commands, leading to a memory leak. A remote unauthenticated attacker can repeatedly send such commands to exhaust memory and cause a denial-of-service condition.

HexRabbit Follow

Originally disclosed on Zero Day Initiative

Medium 4.0 View original

This vulnerability allows remote attackers to create a denial-of-service condition on affected installations of Linux Kernel. Authentication is not required to exploit this vulnerability, but only systems with ksmbd enabled are vulnerable.

HexRabbit (@h3xr4bb1t), on the Zero Day Initiative

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a missing memory release (leak) in the code path that handles SMB2_READ commands.

Impact

A remote, unauthenticated attacker could cause a denial-of-service condition on systems with ksmbd enabled by exhausting memory.

What the attacker needed

Ksmbd enabled on the target; network access to the SMB service

The fix

Linux issued an update to correct this vulnerability.

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 report has not been written yet. The Original tab links to the source.

The kernel's SMB file-sharing service (ksmbd) handles read requests from clients. When it processes a particular type of read request, it forgets to free the memory it used afterwards. By sending many such requests, an attacker can use up all the memory and make the system stop responding.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by HexRabbit

View all

5 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.