Time-of-check Time-of-use (TOCTOU) Race Condition in FreeBSD - CVE-2022-23084
Published: April 6, 2022 / Updated: September 21, 2022
FreeBSD
FreeBSD Foundation
Description
The vulnerability allows a local user to bypass implemented security restrictions.
The vulnerability exists due to a race condition in netmap. The total size of the user-provided nmreq to nmreq_copyin() function was first computed and then trusted during the copyin operation. A local user can trigger a race condition, which can lead to memory corruption and code execution. The vulnerability can be used to escape jail environment.