FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

FreeBSD -- mpr/mps/mpt driver ioctl heap out-of-bounds write

Affected packages
13.0 <= FreeBSD-kernel < 13.0_11
12.3 <= FreeBSD-kernel < 12.3_5


VuXML ID 703c4761-b61d-11ec-9ebc-1c697aa5a594
Discovery 2022-04-06
Entry 2022-04-07

Problem Description:

Handlers for *_CFG_PAGE read / write ioctls in the mpr, mps, and mpt drivers allocated a buffer of a caller-specified size, but copied to it a fixed size header. Other heap content would be overwritten if the specified size was too small.


Users with access to the mpr, mps or mpt device node may overwrite heap data, potentially resulting in privilege escalation. Note that the device node is only accessible to root and members of the operator group.


CVE Name CVE-2022-23086
FreeBSD Advisory SA-22:06.ioctl