FreeBSD Kernel MPT Heap-based Buffer Overflow Privilege Escalation Vulnerability
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