Skip to content
Info disclosure Advisory Advanced CVE-2023-39179

Linux Kernel ksmbd Read Request Out-Of-Bounds Read Information Disclosure Vulnerability

The ksmbd component of the Linux kernel mishandles SMB2 read requests because it does not properly validate user-supplied data, allowing a read past the end of an allocated buffer. A remote, unauthenticated attacker could disclose sensitive kernel information and, combined with other flaws, potentially execute code in the kernel.

HexRabbit Follow

Originally disclosed on Zero Day Initiative

High 7.5 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.

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 a missing bounds check on user-supplied values in SMB2 read request handling, letting the kernel read past the end of an 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; only systems with ksmbd enabled are affected.

What the attacker needed

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

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 can share files over the network through a component called ksmbd, which speaks the SMB protocol used by Windows file sharing. When it handles a request to read data, it trusts a length or offset supplied by the sender without checking it, so it can read memory beyond the intended buffer. That leaked memory may contain secrets, and a remote attacker needs no login to try it.

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.