VDB

CVE-2023-1998

CVE-2023-1998 PUBLISHED CVSS 5.6 MEDIUM

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.

PackageEcosystemFixed in
python3-perfAmazon Linux6.1.19-30.43.amzn2023
python-perfAmazon Linux4.14.309-231.529.amzn2
kernel-headersAmazon Linux6.1.19-30.43.amzn2023, 4.14.309-231.529.amzn2
kernel-libbpf-staticAmazon Linux6.1.19-30.43.amzn2023
kernel-toolsAmazon Linux6.1.19-30.43.amzn2023, 4.14.309-231.529.amzn2
perfAmazon Linux6.1.19-30.43.amzn2023, 4.14.309-231.529.amzn2
kernelAmazon Linux6.1.19-30.43.amzn2023, 4.14.309-231.529.amzn2
kernelgit.kernel.org6.3
kernel-libbpf-develAmazon Linux6.1.19-30.43.amzn2023
kernel-livepatch-4.14.309-231.529Amazon Linux1.0-0.amzn2
kernel-tools-develAmazon Linux6.1.19-30.43.amzn2023, 4.14.309-231.529.amzn2
kernel-libbpfAmazon Linux6.1.19-30.43.amzn2023

4 more packages have a fixed version. See every fix in Lookup.

Risk scores

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

Affected products

VendorProductVersions
LinuxLinux Kernel0
LinuxLinux Kernel0

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›