CVE-2026-89905

Source
https://cve.org/CVERecord?id=CVE-2026-89905
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89905.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-89905
Downstream
Published
2026-09-16T10:32:04Z
Modified
2026-09-18T03:48:33Z
Summary
LoongArch: BPF: Move arena register slot below TCC context
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89905.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
ef54c517a9376b188da06b5e1ed556129c4280be
Fixed
f0e4d069cb47cf4f8dc4f6bc104e0671155aa3b9
Fixed
cd7e356b07a27e91394838cf3fb655862b519294

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89905.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.0.0
Fixed
7.2.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89905.json"