Linux Kernel ksmbd TCP Connection Race Condition Remote Code Execution Vulnerability
A race condition in the Linux kernel's ksmbd component, caused by missing locking when handling TCP connections, allows a remote unauthenticated attacker to execute arbitrary code in kernel context. Only systems with ksmbd enabled are affected.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Linux Kernel. 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 a missing lock around shared data structures when a TCP connection is established or torn down, allowing concurrent operations to corrupt memory.
Impact
A remote, unauthenticated attacker could execute arbitrary code with kernel privileges on systems where ksmbd is enabled.
What the attacker needed
Ksmbd enabled on the target; network access to the ksmbd service
The fix
The vulnerability was fixed by a Linux kernel update.
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 handles file sharing over a network. Because the code did not properly coordinate simultaneous actions (a 'race condition'), an attacker could send specially timed network traffic to take control of the machine. No password is needed, but the feature must be turned on.
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.