Linux Kernel ksmbd Session Race Condition Remote Code Execution Vulnerability
A race condition in the Linux kernel's ksmbd session setup and logoff handling allows an authenticated remote attacker to execute arbitrary code in kernel context. The flaw is due to missing proper locking when operating on an object.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Linux Kernel. Authentication is 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 a missing lock around shared session data during session setup and logoff, leading to a race condition.
Impact
An authenticated remote attacker could execute arbitrary code in the kernel context, but only on systems with ksmbd enabled.
What the attacker needed
Ksmbd enabled on target; valid authentication credentials
The fix
Linux issued an update to correct this 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.
This is a bug in a part of the Linux kernel called ksmbd, which lets a computer share files over a network. Because two actions (setting up and ending a session) can happen at the same time without proper coordination, an attacker who can log in can trick the system into running their own code with high 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.