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

Published Sep 16, 2026
·
Updated

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 arenavmstart is dynamically enabled, it shifts the relative offset of the tccptr 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 buildprologue() and the epilogue.

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

With this patch, the tccptr 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.

Event History

Sep 16, 2026
CVE Published
via MITRE·10:32 AM
Data Sourced
via MITRE·10:32 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

The issue affects the Linux kernel on LoongArch systems using BPF when the optional arena feature is dynamically enabled through arena_vm_start. The problematic layout depends on the arena register slot being present.

2

What changes with the fix?

The fix relocates the arena register save and restore slot below the tail call counter context and adjusts epilogue offset handling. This keeps the tcc_ptr slot at a fixed position regardless of whether arena support is enabled, preventing offset mismatches and potential memory misalignment or corruption.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203