Linux Kernel ksmbd SetInfo Request Out-Of-Bounds Read Information Disclosure Vulnerability
The Linux kernel's ksmbd SMB server fails to properly validate user-supplied data when parsing SMB2 SetInfo requests, leading to an out-of-bounds read. A remote unauthenticated attacker could disclose sensitive kernel memory and potentially use this with other flaws to execute code in kernel context.
This vulnerability allows remote attackers to disclose sensitive information 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 missing bounds checks on user-supplied data in SMB2 SetInfo request parsing, allowing reads beyond the allocated buffer.
Impact
A remote unauthenticated attacker could disclose sensitive kernel information and, in conjunction with other vulnerabilities, execute arbitrary code in the kernel context.
What the attacker needed
Ksmbd enabled on target; network access to SMB service
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.
The Linux kernel includes a feature called ksmbd that lets it act as a file server using the SMB protocol. A bug in how it handles certain network messages means it can read past the end of a memory buffer, leaking data that should stay private. An attacker on the network could send a crafted message to see that leaked memory, and possibly combine it with other bugs to run malicious code.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.