CVE-2026-99018
7.8 HIGHPublished 2026-10-23 · Updated 2026-10-24
AI risk analysis
- Summary
- A flaw in the RISC-V Linux kernel entry path allows a local attacker to bypass Shadow Call Stack (SCS) protection by manipulating the thread pointer (tp) register to trick the kernel into skipping SCS reload on trap return, enabling arbitrary kernel writes and control-flow hijacking via poisoned gp.
- Exploitability
- Exploitation requires local unprivileged access and is made more difficult with KASLR enabled, but brute-force tp manipulation to match the current task_struct address is feasible on some systems.
- Blast radius
- Successful exploitation grants full kernel compromise (arbitrary write + control-flow hijack), enabling privilege escalation to root, system compromise, or denial of service.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Apply the kernel patch that changes the SCS reload condition from comparing tp to checking sstatus.SPP (bit indicating privilege level at trap entry); no fixed kernel version is named in the description — upgrade to a patched kernel release once available.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD 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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
All references
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- HIGHCVE-2026-47495PoC
- HIGHCVE-2026-47536PoC
- HIGHCVE-2026-47583PoC
- HIGHCVE-2026-58826
- HIGHCVE-2026-64570
- HIGHCVE-2026-83690
- HIGHCVE-2026-83796
- HIGHCVE-2026-85804
Related by shared AI tags and CWE weakness class. Browse the full archive.