CVE-2023-1998
Spectre v2 SMT mitigations problem in Linux kernel
Reported by google · Published April 21, 2023
The Linux kernel allows userspace processes to enable mitigations by calling prctl with PR_SET_SPECULATION_CTRL which disables the speculation feature as well as by using seccomp. We had noticed that on VMs of at least one major cloud provider, the kernel still left the victim process exposed to attacks in some cases even after enabling the spectre-BTI mitigation with prctl. The same behavior can be observed on a bare-metal machine when forcing the mitigation to IBRS on boot command line. This happened because when plain IBRS was enabled (not enhanced IBRS), the kernel had some logic that determined that STIBP was not needed. The IBRS bit implicitly protects against cross-thread branch target injection. However, with legacy IBRS, the IBRS bit was cleared on returning to userspace, due to performance reasons, which disabled the implicit STIBP and left userspace threads vulnerable to cross-thread branch target injection against which STIBP protects.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-perf | Amazon Linux | 6.1.19-30.43.amzn2023 |
| python-perf | Amazon Linux | 4.14.309-231.529.amzn2 |
| kernel-headers | Amazon Linux | 6.1.19-30.43.amzn2023, 4.14.309-231.529.amzn2 |
| kernel-libbpf-static | Amazon Linux | 6.1.19-30.43.amzn2023 |
| kernel-tools | Amazon Linux | 6.1.19-30.43.amzn2023, 4.14.309-231.529.amzn2 |
| perf | Amazon Linux | 6.1.19-30.43.amzn2023, 4.14.309-231.529.amzn2 |
| kernel | Amazon Linux | 6.1.19-30.43.amzn2023, 4.14.309-231.529.amzn2 |
| kernel | git.kernel.org | 6.3 |
| kernel-libbpf-devel | Amazon Linux | 6.1.19-30.43.amzn2023 |
| kernel-livepatch-4.14.309-231.529 | Amazon Linux | 1.0-0.amzn2 |
| kernel-tools-devel | Amazon Linux | 6.1.19-30.43.amzn2023, 4.14.309-231.529.amzn2 |
| kernel-libbpf | Amazon Linux | 6.1.19-30.43.amzn2023 |
4 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | 0 |
| Linux | Linux Kernel | 0 |
Timeline
- Apr 13, 2023 PoC Published (6 in total, the first dated here)
- Apr 21, 2023 CVE Published
- Apr 22, 2023 EPSS Score (30 in total, the first dated here)
- May 21, 2026 Coalition ESS Score
- Aug 10, 2026 Distribution Patch (30 in total, the first dated here)
- Aug 10, 2026 Security Advisory (31 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-1998
vulnetix vdb fixes CVE-2023-1998
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-1998/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart