Advisory Details

May 17th, 2023

Canonical ksmbd-tools WKSSVC Heap-based Buffer Overflow Remote Code Execution Vulnerability

ZDI-23-690
ZDI-CAN-17822

CVE ID
CVSS SCORE 9.8, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS Canonical
AFFECTED PRODUCTS ksmbd-tools
VULNERABILITY DETAILS

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Canonical ksmbd-tools. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the WKSSVC service. 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 root.

ADDITIONAL DETAILS

Fixed in 3.4.8 https://github.com/cifsd-team/ksmbd-tools/releases/tag/3.4.8


DISCLOSURE TIMELINE
  • 2022-07-26 - Vulnerability reported to vendor
  • 2023-05-17 - Coordinated public release of advisory
CREDIT Arnaud Gatignol, Quentin Minster, Florent Saudel, Guillaume Teissier (@thalium_team)
BACK TO ADVISORIES