Skip to content
Info disclosure Advisory Advanced CVE-2022-47943

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 handling SMB2_WRITE commands, causing an out-of-bounds read. An authenticated remote attacker could disclose sensitive kernel memory and, with other vulnerabilities, potentially execute code in the kernel context.

Arnaud Gatignol Follow

Originally disclosed on Zero Day Initiative

Critical 9.6 View original

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

Arnaud Gatignol, Quentin Minster, Florent Saudel, Guillaume Teissier (@thalium_team), 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 missing bounds validation on user-supplied length or offset fields in SMB2_WRITE handling, leading to an out-of-bounds read.

Impact

An authenticated remote attacker could disclose sensitive kernel information and, when combined with other vulnerabilities, potentially execute arbitrary code in the kernel context.

What the attacker needed

Authentication to the SMB service; remote network access to ksmbd

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 server called ksmbd that speaks the SMB protocol. When it processes a write request, it does not check the size of the data properly, so it can read memory beyond the intended buffer. This lets someone who can log in to the share see bits of kernel memory that they should not see.

What is Info disclosure?

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

More by Arnaud Gatignol

View all

10 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.