Skip to content
DoS Write-up Advanced

CVE-2023-0210 – Linux Kernel Unauthenticated Remote Heap Overflow Within Ksmbd

A heap overflow in the Linux kernel's KSMBD SMB server authentication code occurs when a client sends a malformed NTLM challenge response with a length field smaller than expected, causing an integer underflow. An attacker who knows a valid username could trigger a kernel panic, resulting in denial of service.

sysdig.com

Published on sysdig.com

Sysdig Threat Research Team

The author, on sysdig.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

Impact

The overflow could cause a kernel panic, resulting in denial of service; remote code execution is unlikely due to the large size of the overflow.

What the attacker needed

KSMBD enabled and configured; knowledge of a valid username; network access to SMB port

How it was found

  1. Modify the impacket library to set the NTLM challenge response to a short value.
  2. Authenticate to the KSMBD server using a valid username.
  3. The malformed response triggers the integer underflow and heap overflow, causing a kernel panic.

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.

KSMBD is a file-sharing server built into the Linux kernel. A heap overflow is a memory corruption bug where a program writes more data than a buffer can hold. Here, a specially crafted login message can cause the server to crash, taking down the whole system.

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.

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.