# CVE-2026-99016: riscv: futex: untag the user pointer before the atomic access

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-10-23T12:20:47.859Z
- **Modified:** 2026-10-24T14:16:52.657Z

## Who should check

- Anyone running Linux \>= 2e1743085887ba3f553c2bb472a75a3ff744b242, \< 2e5c80bbc062a8dda33e687ebf7be8f074ee4f7d; \>= 2e1743085887ba3f553c2bb472a75a3ff744b242, \< 8e48d8d51ab37b7decfbff3e2844e027a52ad6ea; \>= 2e1743085887ba3f553c2bb472a75a3ff744b242, \< 405290be962b32eec842776fbe3bdf81f15b1676
- Anyone running Linux 6.13

## Description

In the Linux kernel, the following vulnerability has been resolved:

riscv: futex: untag the user pointer before the atomic access

access\_ok() checks untagged\_addr(uaddr), but arch\_futex\_atomic\_op\_inuser()
and futex\_atomic\_cmpxchg\_inatomic() hand the raw uaddr to the inline asm
amoswap/amoadd/.../lr.w+sc.w through the "+m" (\*uaddr) operand.  When the
tagged address ABI is enabled (CONFIG\_RISCV\_ISA\_SUPM, prctl
PR\_SET\_TAGGED\_ADDR\_CTRL with PMLEN != 0), those two addresses differ: a
user pointer whose top PMLEN bits hold a tag passes access\_ok() after
untagging, but the atomic is then performed on the still-tagged raw
address.

Supervisor-mode data accesses are not subject to the U-mode pointer
masking (that is governed by menvcfg.PMM, which the kernel does not set),
so hardware does not strip the tag for the kernel's own access.  With
Sv57 and PMLEN=16 the tag bits overlap the canonical-address bits, so a
tagged pointer can name a canonical kernel virtual address (e.g. in the
linear map) whose untagged form is a valid user address.  An unprivileged
process can thus make FUTEX\_WAKE\_OP perform an atomic read-modify-write on
an arbitrary kernel address, with the matching FUTEX\_OP\_CMP\_\* result
serving as a read oracle.

get\_user()/put\_user()/raw\_copy\_{to,from}\_user() already untag the pointer
after the access\_ok() check; do the same in the futex helpers so the
atomic operates on the address that was actually validated.

## Affected and fixed versions

- Linux: \>= 2e1743085887ba3f553c2bb472a75a3ff744b242, \< 2e5c80bbc062a8dda33e687ebf7be8f074ee4f7d; \>= 2e1743085887ba3f553c2bb472a75a3ff744b242, \< 8e48d8d51ab37b7decfbff3e2844e027a52ad6ea; \>= 2e1743085887ba3f553c2bb472a75a3ff744b242, \< 405290be962b32eec842776fbe3bdf81f15b1676 (cvelist)
- Linux: 6.13 (cvelist)

## Mitigation

- Upgrade Linux to 405290be962b32eec842776fbe3bdf81f15b1676 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-99016.md
Affected: Linux >= 2e1743085887ba3f553c2bb472a75a3ff744b242, < 2e5c80bbc062a8dda33e687ebf7be8f074ee4f7d; >= 2e1743085887ba3f553c2bb472a75a3ff744b242, < 8e48d8d51ab37b7decfbff3e2844e027a52ad6ea; >= 2e1743085887ba3f553c2bb472a75a3ff744b242, < 405290be962b32eec842776fbe3bdf81f15b1676; Linux 6.13
Fixed in: Linux 2e5c80bbc062a8dda33e687ebf7be8f074ee4f7d, Linux 8e48d8d51ab37b7decfbff3e2844e027a52ad6ea, Linux 405290be962b32eec842776fbe3bdf81f15b1676

Steps:
1. Search this machine and project for Linux: 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-2026-99016 being exploited?

There is no confirmed exploitation: CVE-2026-99016 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-99016?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-99016?

Linux \>= 2e1743085887ba3f553c2bb472a75a3ff744b242, \< 2e5c80bbc062a8dda33e687ebf7be8f074ee4f7d; \>= 2e1743085887ba3f553c2bb472a75a3ff744b242, \< 8e48d8d51ab37b7decfbff3e2844e027a52ad6ea; \>= 2e1743085887ba3f553c2bb472a75a3ff744b242, \< 405290be962b32eec842776fbe3bdf81f15b1676; Linux 6.13.

### Is there a fix for CVE-2026-99016?

Yes. Fixed in Linux 2e5c80bbc062a8dda33e687ebf7be8f074ee4f7d, Linux 8e48d8d51ab37b7decfbff3e2844e027a52ad6ea, Linux 405290be962b32eec842776fbe3bdf81f15b1676. Upgrade Linux to 405290be962b32eec842776fbe3bdf81f15b1676 or later.

### How do I check if I'm affected by CVE-2026-99016?

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

- other: <https://git.kernel.org/stable/c/2e5c80bbc062a8dda33e687ebf7be8f074ee4f7d>
- other: <https://git.kernel.org/stable/c/8e48d8d51ab37b7decfbff3e2844e027a52ad6ea>
- other: <https://git.kernel.org/stable/c/405290be962b32eec842776fbe3bdf81f15b1676>

## 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-2026-99016>

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