CVE-2026-99018
Last modified
CVE-2026-99018 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: riscv: entry: gate shadow call stack reload on sstatus.SPP, not tp Under CONFIG_SHADOW_CALL_STACK, handle_exception() reloads the kernel shadow call stack pointer (gp) only when the trap came from userspace. It made that decision with scs_load_current_if_task_changed, which compares the trap-time tp (read back from sscratch into s5) against the current tp: beq \prev, tp, _skip_scs scs_load_current _skip_scs: tp is a user-writable register. A user task that sets tp to the linear-map address of its own task_struct (¤t) before trapping makes the comparison succeed (can achieve by brute force with KASLR enable under our test), so the kernel skips scs_load_current and keeps running with the gp that userspace left in place.
Description
In the Linux kernel, the following vulnerability has been resolved: riscv: entry: gate shadow call stack reload on sstatus.SPP, not tp Under CONFIG_SHADOW_CALL_STACK, handle_exception() reloads the kernel shadow call stack pointer (gp) only when the trap came from userspace. It made that decision with scs_load_current_if_task_changed, which compares the trap-time tp (read back from sscratch into s5) against the current tp: beq \prev, tp, _skip_scs scs_load_current _skip_scs: tp is a user-writable register. A user task that sets tp to the linear-map address of its own task_struct (¤t) before trapping makes the comparison succeed (can achieve by brute force with KASLR enable under our test), so the kernel skips scs_load_current and keeps running with the gp that userspace left in place. Under CONFIG_SHADOW_CALL_STACK gp is the shadow call stack pointer and load_global_pointer is a no-op, so the compiler-emitted "sd ra, -8(gp)" / "ld ra, -8(gp)" in every non-leaf function then write to, and return through, an attacker-controlled address -- an unprivileged kernel arbitrary-write and control-flow-hijack primitive. The poisoned gp is saved to task_struct.scs_sp on return, so the reload is skipped on every subsequent entry as well. Decide "came from userspace" from the hardware sstatus.SPP bit (already in s1 at this point) instead of from tp, mirroring the check that ret_from_exception already uses a few instructions later. SPP is written by hardware on trap entry and cannot be forged from U-mode. Legitimate behaviour is unchanged: user entries (SPP=0) reload the task shadow call stack, nested kernel entries (SPP=1) skip it.
Metrics
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= d1584d791a297aa8ed93503382a682a6ecfc4218, < 6639735367a7d491977e9e5e7afc50b489d81d83; >= d1584d791a297aa8ed93503382a682a6ecfc4218, < 7d1367a53137e379498eb8791295e58854378636; >= d1584d791a297aa8ed93503382a682a6ecfc4218, < 37b4401ee6fa06046446d55e97e8d11784080843; >= d1584d791a297aa8ed93503382a682a6ecfc4218, < 4d0697f192975dab5985e921989be1d85cf580e9 |
| Linux | Linux | 6.7 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-99018?
How severe is CVE-2026-99018?
How do I fix CVE-2026-99018?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-99012In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99013In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99014In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99015In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99016In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99017In the Linux kernel, the following vulnerability has been re…7
- CVE-2026-99019In the Linux kernel, the following vulnerability has been re…
- CVE-2026-9902Use after free in Accessibility in Google Chrome prior to 14…8.3
- CVE-2026-99020In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99021In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99022In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99023In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-99018?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
