Skip to content
DoS Advisory Intermediate CVE-2020-14323

GHSL-2020-134: NULL dereference in Samba - CVE-2020-14323

A NULL pointer dereference in Samba's Winbind service can be triggered by an unprivileged local user sending a crafted request with no extra data, causing the service to crash and leading to denial of service.

anticomputer Follow

Originally disclosed on GitHub Security Lab

An unprivileged local user may trigger a NULL dereference bug in Samba’s Winbind service leading to Denial of Service (DoS).

anticomputer, on GitHub Security Lab

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

The code does not initialise the state->domains pointer when the request has no extra data, and later dereferences it without checking.

Impact

The Winbind service crashes, causing a denial of service for any local system functionality that depends on it.

What the attacker needed

Local access to the system; ability to connect to the Winbind socket

The fix

The state->domains pointer should be checked for NULL before being dereferenced in winbindd_lookupsids_recv.

How it was found

  1. Connect to the unprivileged Winbind socket at /var/run/samba/winbindd/pipe.
  2. Send a WINBINDD_LOOKUPSIDS command with request->extra_len set to 0.
  3. The service processes the request and crashes due to NULL dereference.

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 (NULL). In this case, the Winbind service, which runs with high privileges, fails to check if a certain pointer is set before using it, so a local user can send a special request that makes the service crash. This stops Winbind from working, which can disrupt other services that rely on it.

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 anticomputer

View all

4 more disclosed reports, best first.

More from GitHub Security Lab

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.