Linux Kernel ksmbd Out-Of-Bounds Read Information Disclosure Vulnerability
The Linux kernel's ksmbd SMB server fails to properly validate user-supplied data when parsing the smb2_hdr structure, leading to an out-of-bounds read. A remote attacker could exploit this to disclose sensitive kernel memory, and potentially chain it with other flaws to execute arbitrary code in kernel context.
8437438cb38d8565e9a990474a7b8d2b3e3770a521eb159325e93c6189f526d1 Follow
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to disclose sensitive information on affected installations of Linux Kernel. Authentication may or may not be required to exploit this vulnerability, depending upon configuration.
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 the ksmbd code does not validate the length of the SMB2 header before reading it, causing an out-of-bounds read.
Impact
A remote attacker could disclose sensitive kernel information, and may combine this with other vulnerabilities to execute arbitrary code in the kernel context.
What the attacker needed
Ksmbd enabled on target; network access to SMB service; authentication may be required
The fix
Linux has 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-sharing server using the SMB protocol. When handling incoming SMB messages, the code reads a header structure without checking that enough data was actually received, so it can read beyond the end of a buffer. This means an attacker could send a crafted message and potentially see memory contents that should not be exposed.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.