Advisory Details

September 20th, 2022

FreeBSD Kernel Netmap Integer Overflow Privilege Escalation Vulnerability

ZDI-22-1292
ZDI-CAN-16687

CVE ID CVE-2022-23085
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 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
BACK TO ADVISORIES