CVE Vulnerabilities

CVE-2020-7460

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

Published: Aug 06, 2020 | Modified: Jul 01, 2022
CVSS 3.x
7
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
4.4 MEDIUM
AV:L/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu

In FreeBSD 12.1-STABLE before r363918, 12.1-RELEASE before p8, 11.4-STABLE before r363919, 11.4-RELEASE before p2, and 11.3-RELEASE before p12, the sendmsg system call in the compat32 subsystem on 64-bit platforms has a time-of-check to time-of-use vulnerability allowing a mailcious userspace program to modify control message headers after they were validation.

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. This can cause the product to perform invalid actions when the resource is in an unexpected state.

Affected Software

Name Vendor Start Version End Version
Freebsd Freebsd 11.3 (including) 11.3 (including)
Freebsd Freebsd 11.3-p1 (including) 11.3-p1 (including)
Freebsd Freebsd 11.3-p10 (including) 11.3-p10 (including)
Freebsd Freebsd 11.3-p11 (including) 11.3-p11 (including)
Freebsd Freebsd 11.3-p2 (including) 11.3-p2 (including)
Freebsd Freebsd 11.3-p3 (including) 11.3-p3 (including)
Freebsd Freebsd 11.3-p4 (including) 11.3-p4 (including)
Freebsd Freebsd 11.3-p5 (including) 11.3-p5 (including)
Freebsd Freebsd 11.3-p6 (including) 11.3-p6 (including)
Freebsd Freebsd 11.3-p7 (including) 11.3-p7 (including)
Freebsd Freebsd 11.3-p8 (including) 11.3-p8 (including)
Freebsd Freebsd 11.3-p9 (including) 11.3-p9 (including)
Freebsd Freebsd 11.4 (including) 11.4 (including)
Freebsd Freebsd 11.4-p1 (including) 11.4-p1 (including)
Freebsd Freebsd 12.1 (including) 12.1 (including)
Freebsd Freebsd 12.1-p1 (including) 12.1-p1 (including)
Freebsd Freebsd 12.1-p2 (including) 12.1-p2 (including)
Freebsd Freebsd 12.1-p3 (including) 12.1-p3 (including)
Freebsd Freebsd 12.1-p4 (including) 12.1-p4 (including)
Freebsd Freebsd 12.1-p6 (including) 12.1-p6 (including)
Freebsd Freebsd 12.1-p7 (including) 12.1-p7 (including)

Potential Mitigations

References