CVE Vulnerabilities

CVE-2023-0045

Externally Controlled Reference to a Resource in Another Sphere

Published: Apr 25, 2023 | Modified: Aug 11, 2023
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

The current implementation of the prctl syscall does not issue an IBPB immediately during the syscall. The ib_prctl_set  function updates the Thread Information Flags (TIFs) for the task and updates the SPEC_CTRL MSR on the function __speculation_ctrl_update, but the IBPB is only issued on the next schedule, when the TIF bits are checked. This leaves the victim vulnerable to values already injected on the BTB, prior to the prctl syscall.  The patch that added the support for the conditional mitigation via prctl (ib_prctl_set) dates back to the kernel 4.9.176.

We recommend upgrading past commit a664ec9158eeddd75121d39c9a0758016097fa96

Weakness

The product uses an externally controlled name or reference that resolves to a resource that is outside of the intended control sphere.

Affected Software

Name Vendor Start Version End Version
Linux_kernel Linux 3.16.68 (including) 3.17 (excluding)
Linux_kernel Linux 4.4.180 (including) 4.5 (excluding)
Linux_kernel Linux 4.9.176 (including) 4.10 (excluding)
Linux_kernel Linux 4.14.86 (including) 4.14.303 (excluding)
Linux_kernel Linux 4.19.7 (including) 4.19.270 (excluding)
Linux_kernel Linux 4.20 (including) 5.4.229 (excluding)
Linux_kernel Linux 5.5.0 (including) 5.10.163 (excluding)
Linux_kernel Linux 5.11 (including) 5.15.87 (excluding)
Linux_kernel Linux 5.16 (including) 6.0.19 (excluding)
Linux_kernel Linux 6.1 (including) 6.1.5 (excluding)

References