Canonical ksmbd-tools SRVSVC Null Pointer Dereference Denial-of-Service Vulnerability
A NULL pointer dereference in the SRVSVC_OPNUM_GET_SHARE_INFO opcode of Canonical ksmbd-tools allows an unauthenticated remote attacker to crash the service, causing a denial of service.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to create a denial-of-service condition on affected installations of Canonical ksmbd-tools. Authentication is not required to exploit this vulnerability.
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, the code handling the SRVSVC_OPNUM_GET_SHARE_INFO opcode does not check whether a pointer is NULL before dereferencing it.
Impact
An unauthenticated remote attacker could crash the ksmbd service, causing a denial-of-service condition.
What the attacker needed
Network access to the ksmbd service; no authentication required
The fix
The vulnerability was fixed in version 3.4.8 of ksmbd-tools.
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.
A NULL pointer dereference happens when a program tries to use a memory address that points to nothing, which usually makes it crash. Here, a remote attacker can send a specially crafted request to the ksmbd service without logging in, and the service will crash, stopping file sharing for everyone until it is restarted.
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.