CVE-2022-23084: Netmap Kernel TTOU Leading to Memory Corruption
CVE-2022-23084 Published on February 15, 2024
Potential jail escape vulnerabilities in netmap
The total size of the user-provided nmreq to nmreq_copyin() was first computed and then trusted during the copyin. This time-of-check to time-of-use bug could lead to kernel memory corruption.
On systems configured to include netmap in their devfs_ruleset, a privileged process running in a jail can affect the host environment.
Vulnerability Analysis
CVE-2022-23084 is exploitable with local system access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be very high.
Weakness Type
What is a TOCTTOU Vulnerability?
The software checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. This can cause the software to perform invalid actions when the resource is in an unexpected state. This weakness can be security-relevant when an attacker can influence the state of the resource between check and use. This can happen with shared resources such as files, memory, or even variables in multithreaded programs.
CVE-2022-23084 has been classified to as a TOCTTOU vulnerability or weakness.
Products Associated with CVE-2022-23084
Want to know whenever a new CVE is published for FreeBSD? stack.watch will email you.
Affected Versions
FreeBSD:- Version 13.1-RC1 and below p1 is affected.
- Version 13.0-RELEASE and below p11 is affected.
- Version 12.3-RELEASE and below p5 is affected.
- Version 13.1-rc1 and below p1 is affected.
- Version 13.0-release and below p11 is affected.
- Version 12.3-release and below p5 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.