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

1 affected component
Linux Kernel

Event History

Feb 26, 2025
Advisory Published
via ZDI·03:45 PM

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203