Advisory Details

September 20th, 2022

FreeBSD Kernel MPT Heap-based Buffer Overflow Privilege Escalation Vulnerability

ZDI-22-1293
ZDI-CAN-16722

CVE ID CVE-2022-23086
CVSS SCORE 8.2, AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
AFFECTED VENDORS FreeBSD
AFFECTED PRODUCTS Kernel
VULNERABILITY DETAILS

This vulnerability allows local attackers to escalate privileges on affected installations of FreeBSD Kernel. An attacker must first obtain the ability to execute high-privileged code on the target system in order to exploit this vulnerability.

The specific flaw exists within the handling of arguments to the MPT device. 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 escalate privileges and execute arbitrary code in the context of the kernel.

ADDITIONAL DETAILS FreeBSD has issued an update to correct this vulnerability. More details can be found at:
https://cgit.freebsd.org/src/commit/?id=8276c4149b5fc7c755d6b244fbbf6dae1939f087
DISCLOSURE TIMELINE
  • 2022-02-25 - Vulnerability reported to vendor
  • 2022-09-20 - Coordinated public release of advisory
CREDIT Lucas Leong (@_wmliang_) of Trend Micro Zero Day Initiative
BACK TO ADVISORIES