Linux Kernel ksmbd smb2_open Out-Of-Bounds Read Information Disclosure Vulnerability
The Linux kernel's ksmbd SMB server fails to properly validate user-supplied data when parsing extended attributes, leading to an out-of-bounds read. A remote attacker could exploit this to disclose sensitive information, and potentially chain it with other vulnerabilities to execute code in kernel context.
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 that parses extended attributes does not validate the length of user-supplied data before reading, causing an out-of-bounds read.
Impact
A remote attacker could disclose sensitive information, and may leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of the kernel.
What the attacker needed
Ksmbd enabled; authentication may or may not 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 file-sharing service called ksmbd that speaks the SMB protocol. When handling certain file attributes, it does not check the size of data properly, so it can read beyond the intended memory area. This can leak sensitive information from the kernel's memory to a remote attacker.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.