Skip to content
DoS Advisory Advanced CVE-2022-47938

Linux Kernel ksmbd Out-Of-Bounds Read Denial-of-Service Vulnerability

The Linux kernel's ksmbd SMB server did not properly validate user-supplied data when handling SMB2_TREE_CONNECT commands, causing a read past the end of an allocated buffer. An authenticated remote attacker could exploit this to create a denial-of-service condition on the system.

Arnaud Gatignol Follow

Originally disclosed on Zero Day Initiative

Medium 6.5 View original

This vulnerability allows remote attackers to create a denial-of-service condition 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, the SMB2_TREE_CONNECT handler trusted a length or offset field in the request without checking it against the actual buffer size, leading to an out-of-bounds read.

Impact

An authenticated remote attacker could cause a denial-of-service condition on the affected Linux system.

What the attacker needed

Authentication to the SMB service; 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, which is what Windows uses for shared folders. When a client sent a particular type of request (a tree connect), the server read more data than it had actually received, like reading past the end of a page in a book. That mistake could crash or hang the system, so an attacker with a valid login could take the file server down.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

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.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.