# CVE-2026-89903: LoongArch: Do not save/restore percpu base register in rethook trampoline

> 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.18% (percentile 4, 2026-11-26)
- **Published:** 2026-09-16T10:32:03.038Z
- **Modified:** 2026-10-19T09:18:35.653Z

## Who should check

- Anyone running Linux \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< a03b5e7483ad2c33ba5dd2adb8552e84bfee8fe2; \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< 8f15e95b438bc6b3c9f23a33c9a0d0678ebd1dc8; \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< 266ffc92e68593759adfe3d58f188773d32782c3; \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< c048b0a3c0836c4b1bef4b51d355d27090bf6790; \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< c3f2feace5e4f4b01b68b9f947b19adb4155c32e
- Anyone running Linux 6.3

## Description

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

LoongArch: Do not save/restore percpu base register in rethook trampoline

The rethook trampoline saves $r21 ($u0), the percpu base, into its frame
at entry and restores it at exit. Inbetween rethook\_trampoline\_handler()
may schedule via preempt\_enable\_notrace().

If the task migrates to another CPU, the frame's $r21 holds the old
CPU's percpu base, and restoring it poisons $r21 on the new CPU. Until
the next user-\>kernel transition heals $r21, all this\_cpu\_\*() accesses
(runqueues, RCU per-CPU data, timer tick programming, FPU ownership)
hit the wrong CPU's percpu area.

Under kretprobe-heavy preemptible load this can corrupt scheduler and
timer state: scheduling-while-atomic splats, wrong-CPU RCU warnings,
WARN\_ON\_ONCE(rq != this\_rq()) in nohz\_balance\_exit\_idle(), and CPUs
parking in the idle loop with the constant timer never re-armed (hard
lockup). Reproduces on a Loongson-3A6000 with kretprobes on VFS paths
plus heavy file churn (OS install / unsquashfs).

By convention $r21 always holds the current CPU's percpu base in kernel
mode: SAVE\_SOME() at exception entry reloads it only when coming from
user mode, and RESTORE\_SOME() restores it only when returning to user
mode; the context-switch path never writes it. Therefore the live $r21
at trampoline exit is already correct, and nothing inbetween can change
it legitimately (kernel C code cannot write a global register variable).
The same flaw existed even in the pre-rethook kretprobe trampoline since
v6.3; it was carried over when rethook replaced it. Drop both the save
and the restore here. Drop the restore is enough to solve the issue, and
drop the save is to keep the code tidy and no need to clear it.

## Affected and fixed versions

- Linux: \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< a03b5e7483ad2c33ba5dd2adb8552e84bfee8fe2; \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< 8f15e95b438bc6b3c9f23a33c9a0d0678ebd1dc8; \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< 266ffc92e68593759adfe3d58f188773d32782c3; \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< c048b0a3c0836c4b1bef4b51d355d27090bf6790; \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< c3f2feace5e4f4b01b68b9f947b19adb4155c32e (cvelist)
- Linux: 6.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-89903.md
Affected: Linux >= 3f5536860086d906b01ec5ed68cf50c7edcc40af, < a03b5e7483ad2c33ba5dd2adb8552e84bfee8fe2; >= 3f5536860086d906b01ec5ed68cf50c7edcc40af, < 8f15e95b438bc6b3c9f23a33c9a0d0678ebd1dc8; >= 3f5536860086d906b01ec5ed68cf50c7edcc40af, < 266ffc92e68593759adfe3d58f188773d32782c3; >= 3f5536860086d906b01ec5e…
Fixed in: Linux 8f15e95b438bc6b3c9f23a33c9a0d0678ebd1dc8, Linux 266ffc92e68593759adfe3d58f188773d32782c3

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-89903 being exploited?

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

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

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

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

Linux \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< a03b5e7483ad2c33ba5dd2adb8552e84bfee8fe2; \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< 8f15e95b438bc6b3c9f23a33c9a0d0678ebd1dc8; \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< 266ffc92e68593759adfe3d58f188773d32782c3; \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< c048b0a3c0836c4b1bef4b51d355d27090bf6790; \>= 3f5536860086d906b01ec5ed68cf50c7edcc40af, \< c3f2feace5e4f4b01b68b9f947b19adb4155c32e; Linux 6.3.

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

Yes. Fixed in Linux 8f15e95b438bc6b3c9f23a33c9a0d0678ebd1dc8, Linux 266ffc92e68593759adfe3d58f188773d32782c3. No fix listed yet: follow the vendor advisory.

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

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/a03b5e7483ad2c33ba5dd2adb8552e84bfee8fe2>
- other: <https://git.kernel.org/stable/c/8f15e95b438bc6b3c9f23a33c9a0d0678ebd1dc8>
- other: <https://git.kernel.org/stable/c/266ffc92e68593759adfe3d58f188773d32782c3>
- other: <https://git.kernel.org/stable/c/c048b0a3c0836c4b1bef4b51d355d27090bf6790>
- other: <https://git.kernel.org/stable/c/c3f2feace5e4f4b01b68b9f947b19adb4155c32e>

## 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-89903>

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