Skip to content
Race condition Advisory Advanced

Linux Kernel ksmbd Session Setup Race Condition Remote Code Execution Vulnerability

A race condition in the Linux kernel's ksmbd session setup code arises from missing locking when operating on an object. An unauthenticated remote attacker could exploit this to run code in kernel context on systems with ksmbd enabled.

HexRabbit Follow

Originally disclosed on Zero Day Initiative

Critical 9.0 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Linux Kernel. Authentication is not required to exploit this vulnerability.

Hexrabbit (@h3xr4bb1t) of DEVCORE Research 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

Impact

An unauthenticated remote attacker could execute arbitrary code in the kernel, but only on systems where ksmbd is enabled.

What the attacker needed

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

The fix

Linux issued an update to correct the 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.

ksmbd is the in-kernel file-sharing server in Linux. A race condition means two operations happen at the same time in a way the code did not expect, because a lock was missing. Here that timing problem could let a remote attacker without a login run their own code with the highest privileges.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More by HexRabbit

View all

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

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.