FreeBSD Kernel Netmap Integer 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 Netmap device. The issue results from the lack of proper validation of user-supplied data, which can result in an integer overflow before allocating a 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://www.freebsd.org/security/advisories/FreeBSD-SA-22:04.netmap.asc
Disclosure Timeline
- 2022-02-18 - Vulnerability reported to vendor
- 2022-09-20 - Coordinated public release of advisory
Credit
Reno Robert and Lucas Leong (@_wmliang_) of Trend Micro Zero Day Initiative