# CVE-2023-1998: Spectre v2 SMT mitigations problem in Linux kernel

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.6
- **CVSS:** 5.6 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.74% (percentile 78, 2026-11-26)
- **CWE:** CWE-1303
- **Aliases:** EDB-51384
- **Published:** 2023-04-20T00:00:00.000Z
- **Modified:** 2026-06-17T05:29:13.920Z

## Who should check

- Anyone running Linux Kernel \< 6.3

## Description

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.

## Affected and fixed versions

- Linux Kernel: \< 6.3 (cvelist)

## Mitigation

- Upgrade Linux Kernel to 6.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-1998. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-1998.md
Affected: Linux Kernel < 6.3
Fixed in: Linux Kernel 6.3

Steps:
1. Search this machine and project for Linux Kernel: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-1998 being exploited?

There is no confirmed exploitation: CVE-2023-1998 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 1.74% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-1998?

Medium: CVSS 5.6 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-1998?

Linux Kernel \< 6.3.

### Is there a fix for CVE-2023-1998?

Yes. Fixed in Linux Kernel 6.3. Upgrade Linux Kernel to 6.3 or later.

### How do I check if I'm affected by CVE-2023-1998?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/google/security-research/security/advisories/GHSA-mj4w-6495-6crx>
- patch: <https://github.com/torvalds/linux/commit/6921ed9049bc7457f66c1596c5b78aec0dae4a9d>
- exploit: <https://www.exploit-db.com/exploits/51384>
- other: <https://kernel.dance/#6921ed9049bc7457f66c1596c5b78aec0dae4a9d>
- other: <https://lists.debian.org/debian-lts-announce/2023/05/msg00005.html>
- other: <https://lists.debian.org/debian-lts-announce/2023/05/msg00006.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-1998>
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/51384>

HTML: <https://flawdb.com/CVE-2023-1998> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-1998>
