# CVE-2026-89905: LoongArch: BPF: Move arena register slot below TCC context

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-02)
- Published: 2026-09-16T10:32:04.470Z
- Modified: 2026-10-19T09:18:35.907Z
- Assigned by: Linux

## Description

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

LoongArch: BPF: Move arena register slot below TCC context

Currently, the stack layout places the optional arena register slot
above the tail call counter context. When arena_vm_start is dynamically
enabled, it shifts the relative offset of the tcc_ptr slot within the
stack frame, causing hardcoded tracking macros to mismatch and leading
to memory misalignment or corruption potentially.

To fix this, move the arena register save and restore sequences below
the tail call counter context slots in both build_prologue() and the
epilogue.

Update __build_epilogue() to insert a proper offset decrement to safely
skip the unneeded tcc_ptr reading block while accurately aligning with
the relocated arena slot at the very bottom.

With this patch, the tcc_ptr slot is always positioned at a fixed
distance directly underneath the base callee-saved registers that is
independent of whether the arena features are on.

(As written by CVE List.)

## Affected

- Linux Linux: from ef54c517a9376b188da06b5e1ed556129c4280be before f0e4d069cb47cf4f8dc4f6bc104e0671155aa3b9; from ef54c517a9376b188da06b5e1ed556129c4280be before cd7e356b07a27e91394838cf3fb655862b519294; 7.0 (not affected: before 7.0; from 7.2.5 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/f0e4d069cb47cf4f8dc4f6bc104e0671155aa3b9>
- <https://git.kernel.org/stable/c/cd7e356b07a27e91394838cf3fb655862b519294>

## Sources

- CVE List: [CVE-2026-89905](https://www.cve.org/CVERecord?id=CVE-2026-89905), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-89905](https://nvd.nist.gov/vuln/detail/CVE-2026-89905), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-89905 · Whole record: https://cve.day/CVE-2026-89905.json · Rebuilt by cve.day 2026-11-25T22:59:38.974Z
