Linux Kernel ksmbd Heap-based Buffer Overflow Remote Code Execution Vulnerability

December 22nd, 2022

Vulnerability Details

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.

Additional Details

Linux has issued an update to correct this vulnerability. More details can be found at:
https://lore.kernel.org/lkml/20220819153711.847846093@linuxfoundation.org/

Disclosure Timeline

  • 2022-07-26 - Vulnerability reported to vendor
  • 2022-12-22 - Coordinated public release of advisory
  • 2023-01-23 - Advisory Updated

Credit

Arnaud Gatignol, Quentin Minster, Florent Saudel, Guillaume Teissier (@thalium_team)

Back to Advisories