Skip to content
Info disclosure Advisory Advanced

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 SMB2 requests, leading to an out-of-bounds read. A remote attacker could disclose sensitive kernel memory and potentially use this with other flaws to execute arbitrary code in the kernel.

HexRabbit Follow

Originally disclosed on Zero Day Initiative

Medium 4.0 View original

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.

HexRabbit (@h3xr4bb1t), on the Zero Day Initiative

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 sufficiently validate the length or structure of user-supplied data in SMB2 requests before reading from a buffer.

Impact

A remote 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; authentication may be required

The fix

The vulnerability was fixed in Linux 6.5-rc7.

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 it processes certain network messages, it reads beyond the end of a buffer, which can leak memory contents to the attacker. This leaked data might help an attacker break other protections and eventually run malicious code with high privileges.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by HexRabbit

View all

5 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.