Skip to content
DoS Advisory Intermediate

Canonical ksmbd-tools SAMR Null Pointer Dereference Denial-of-Service Vulnerability

A remote unauthenticated attacker could crash the ksmbd-tools service by sending a crafted request that triggers a NULL pointer dereference while processing the SAMR_OPNUM_QUERY_SECURITY opcode. This causes a denial-of-service condition on affected installations.

Arnaud Gatignol Follow

Originally disclosed on Zero Day Initiative

High 7.5 View original

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.

Arnaud Gatignol, Quentin Minster, Florent Saudel, Guillaume Teissier (@thalium_team), 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, the code handling the SAMR_OPNUM_QUERY_SECURITY opcode does not check whether a pointer is NULL before dereferencing it.

Impact

An unauthenticated remote attacker could cause a denial-of-service condition on affected installations.

What the attacker needed

Network access to the service; no authentication required

The fix

It was fixed in version 3.4.8.

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 service without logging in, and the program crashes, taking the service offline for legitimate users.

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 Arnaud Gatignol

View all

10 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.