Skip to content
Info disclosure Advisory Advanced CVE-2024-26594

Linux Kernel ksmbd Mech Token Out-Of-Bounds Read Information Disclosure Vulnerability

The Linux kernel's ksmbd SMB server fails to properly validate user-supplied data when handling SMB2 Mech Tokens, causing an out-of-bounds read. A remote unauthenticated attacker could disclose sensitive kernel memory, and possibly chain this with other flaws to execute code in kernel context.

fffvr Follow

Originally disclosed on Zero Day Initiative

Critical 9.3 View original

This vulnerability allows remote attackers to disclose sensitive information on affected installations of Linux Kernel. Authentication is not required to exploit this vulnerability.

fffvr, 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 check the length of an SMB2 Mech Token before reading from it, so it reads past the end of the allocated buffer.

Impact

A remote unauthenticated attacker could disclose sensitive kernel information, and could leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of the kernel.

What the attacker needed

Ksmbd enabled on target; network access to SMB service; no authentication required

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 file-sharing service called ksmbd that speaks the SMB protocol. When it processes a particular type of message (a Mech Token), it reads more data than it should, leaking small pieces of kernel memory back to the sender. An attacker on the network can trigger this without logging in, and the leaked data might help them build a more serious attack.

What is Info disclosure?

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

More by fffvr

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.