Ad

CVE-2026-89905

NONE EPSS 0.20%
Обновлено 19 октября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: LoongArch: BPF: Move arena register slot below TCC context Currently, макет стека размещает дополнительный слот arena register выше контекста счётчика хвостовых вызовов. Когда arena_vm_start динамически включен, он перемещает относительное смещение слота tcc_ptr внутри рамки стека, что приводит к несоответствию жестко закодированных макросов отслеживания и потенциально приводит к смещению памяти или повреждению. Чтобы исправить это, переместите регистр арены, сохраните и восстановите последовательности ниже слотов контекста счетчика хвостовых вызовов как в build_prologue(), так и в эпилоге.

Обновите __build_epilogue(), чтобы вставить правильное смещение, чтобы безопасно пропустить ненужный блок чтения tcc_ptr, точно выравнивая его с перенесенным слотом арены в самом низу. С помощью этого патча слот tcc_ptr всегда расположен на фиксированном расстоянии непосредственно под регистрами, сохраненными базовым абонентом, независимо от того, включены ли функции арены.

Показать оригинальное описание (EN)

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.