Exploit database

Vulnerability

CVE-2023-0045

Incorrect indirect branch prediction barrier in the Linux Kernel

Vulnerability details

Score
4.7
Severity
medium

CVSS 3.1 · Google

Vector string

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Description

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

CVE Program

Exploit source choices

2 sources
es0j/cve-2023-0045
GH-f5208ff5fa7fa65b91fc06aec80afdbfGitHubUnofficial GitHub sourcePreferred

es0j/cve-2023-0045 source repository

2023-02-0714 files · 14 stars
askyeye/cve-2023-0045
GH-a798c6b75c10e0d284f94f395ddf431bGitHubUnofficial GitHub source

askyeye/cve-2023-0045 source repository

2023-02-0414 files · 3 stars