Time-of-check Time-of-use (TOCTOU) Race Condition in FreeBSD - CVE-2022-23084

 

Time-of-check Time-of-use (TOCTOU) Race Condition in FreeBSD - CVE-2022-23084

Published: April 6, 2022 / Updated: September 21, 2022


Vulnerability identifier: #VU61907
CSH Severity: Low
CVSSv4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2022-23084
CWE-ID: CWE-367
Exploitation vector: Local access
Exploit availability: No public exploit available
Vulnerable software:
FreeBSD
Software vendor:
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.


Remediation

Install updates from vendor's website.

External links