ZDI-CAN-17771: Linux Kernel ksmbd Heap-based Buffer Overflow Remote Code Execution Vulnerability
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Linux Kernel. Authentication is required to exploit this vulnerability. The specific flaw exists within the handling of file attributes. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the kernel.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this vulnerability?
Systems running an affected Linux Kernel installation with ksmbd handling SMB file attributes are exposed to authenticated remote attackers. The available data does not identify affected kernel versions or whether ksmbd is enabled by default.
What access does an attacker need to exploit it?
An attacker needs network access and authentication. Exploitation requires supplying malformed file-attribute data with a length that is not properly validated before it is copied into a heap-based buffer.
What is the potential impact of successful exploitation?
A successful attacker can execute arbitrary code in the context of the kernel. This can compromise confidentiality, integrity, and availability of the affected system.