cve/2023/CVE-2023-0045.md
2024-05-28 08:49:17 +00:00

25 lines
1.6 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### [CVE-2023-0045](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-0045)
![](https://img.shields.io/static/v1?label=Product&message=Linux%20Kernel&color=blue)
![](https://img.shields.io/static/v1?label=Version&message=9137bb27e60e%3C%20a664ec9158eeddd75121d39c9a0758016097fa96%20&color=brighgreen)
![](https://img.shields.io/static/v1?label=Vulnerability&message=CWE-610%20Externally%20Controlled%20Reference%20to%20a%20Resource%20in%20Another%20Sphere&color=brighgreen)
### 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
### POC
#### Reference
- https://github.com/google/security-research/security/advisories/GHSA-9x5g-vmxf-4qj8
#### Github
- https://github.com/ASkyeye/CVE-2023-0045
- https://github.com/es0j/CVE-2023-0045
- https://github.com/k0mi-tg/CVE-POC
- https://github.com/manas3c/CVE-POC
- https://github.com/nomi-sec/PoC-in-GitHub
- https://github.com/whoforget/CVE-POC
- https://github.com/xu-xiang/awesome-security-vul-llm
- https://github.com/youwizard/CVE-POC