CVE Vulnerabilities

CVE-2022-23084

Time-of-check Time-of-use (TOCTOU) Race Condition

Published: Feb 15, 2024 | Modified: Dec 09, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product 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.

Affected Software

NameVendorStart VersionEnd Version
FreebsdFreebsd12.0 (including)12.3 (excluding)
FreebsdFreebsd12.3 (including)12.3 (including)
FreebsdFreebsd12.3-p1 (including)12.3-p1 (including)
FreebsdFreebsd12.3-p2 (including)12.3-p2 (including)
FreebsdFreebsd12.3-p3 (including)12.3-p3 (including)
FreebsdFreebsd12.3-p4 (including)12.3-p4 (including)
FreebsdFreebsd13.0 (including)13.0 (including)
FreebsdFreebsd13.0-beta1 (including)13.0-beta1 (including)
FreebsdFreebsd13.0-beta2 (including)13.0-beta2 (including)
FreebsdFreebsd13.0-beta3 (including)13.0-beta3 (including)
FreebsdFreebsd13.0-beta3-p1 (including)13.0-beta3-p1 (including)
FreebsdFreebsd13.0-beta4 (including)13.0-beta4 (including)
FreebsdFreebsd13.0-p1 (including)13.0-p1 (including)
FreebsdFreebsd13.0-p10 (including)13.0-p10 (including)
FreebsdFreebsd13.0-p2 (including)13.0-p2 (including)
FreebsdFreebsd13.0-p3 (including)13.0-p3 (including)
FreebsdFreebsd13.0-p4 (including)13.0-p4 (including)
FreebsdFreebsd13.0-p5 (including)13.0-p5 (including)
FreebsdFreebsd13.0-p6 (including)13.0-p6 (including)
FreebsdFreebsd13.0-p7 (including)13.0-p7 (including)
FreebsdFreebsd13.0-p8 (including)13.0-p8 (including)
FreebsdFreebsd13.0-p9 (including)13.0-p9 (including)
FreebsdFreebsd13.0-rc1 (including)13.0-rc1 (including)
FreebsdFreebsd13.0-rc2 (including)13.0-rc2 (including)
FreebsdFreebsd13.0-rc3 (including)13.0-rc3 (including)
FreebsdFreebsd13.0-rc4 (including)13.0-rc4 (including)
FreebsdFreebsd13.0-rc5 (including)13.0-rc5 (including)
FreebsdFreebsd13.0-rc5-p1 (including)13.0-rc5-p1 (including)

Potential Mitigations

References