Ad

CVE-2026-98800

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

В ядре Linux была устранена следующая уязвимость: bpf: Wait для льготного периода задач RCU перед освобождением батута progs When prog отделяется от батута, он освобождается после льготного периода RCU, или задачи RCU трассируют один, если он спящий. Это охватывает задачи, которые выполняет prog, так как помощник prog принимает соответствующий блокировку чтения перед вызовом prog. На упреждающем ядре он не покрывает задачу, которая была упреждена в батуте непосредственно перед входящим помощником.

Эта задача еще не заперта, и он вызывает prog после того, как он был освобожден: BUG: KASAN: vmalloc-out-of-bounds в __bpf_prog_enter_recur+0x3a5/0x3f0 Read размера 8 в addr ffffc90000055040 по задаче candidate/110 CPU: 1 UID: 0 PID: 110 Comm: кандидат Not испорченный 7.3.0-rc2-00014-g15071f2a1263-dirty 2 PREEMPT(full) Call Trace: <TASK> __bpf_prog_enter_recur+0x3a5/0x3f0 bpf_trampoline_6442509193+0x37/0xf1 __x64_sys_futex+0x9/0x410 do_syscall_64+0xb0/0x530 ... Подождите RCU задачи льготный период до существующего, когда освобождается prog, который был связан с батутом. Льготный период задач RCU заканчивается только после того, как задачи, которые были упреждены, были запущены снова, и bpf_tramp_image_put() уже полагается на него, чтобы освободить изображение.

Он не ждет заданий, которые спят на батуте, о них позаботится следующий коммит. Так можно называть только профи, которые были связаны с батутом, поэтому bpf_trampoline_add_prog() маркирует их, а другие профи по-прежнему освобождаются, как и раньше.

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

In the Linux kernel, the following vulnerability has been resolved: bpf: Wait for an RCU tasks grace period before freeing trampoline progs When a prog is detached from a trampoline, it is freed after an RCU grace period, or an RCU tasks trace one if it is sleepable. This covers the tasks that are running the prog, since the prog's enter helper takes the matching read lock before the prog is called. On a preemptible kernel, it doesn't cover a task that was preempted in the trampoline just before the enter helper. That task holds no lock yet, and it calls the prog after it was freed: BUG: KASAN: vmalloc-out-of-bounds in __bpf_prog_enter_recur+0x3a5/0x3f0 Read of size 8 at addr ffffc90000055040 by task candidate/110 CPU: 1 UID: 0 PID: 110 Comm: candidate Not tainted 7.3.0-rc2-00014-g15071f2a1263-dirty #2 PREEMPT(full) Call Trace: <TASK> __bpf_prog_enter_recur+0x3a5/0x3f0 bpf_trampoline_6442509193+0x37/0xf1 __x64_sys_futex+0x9/0x410 do_syscall_64+0xb0/0x530 ... Wait for an RCU tasks grace period before the existing one when freeing a prog that was linked to a trampoline. An RCU tasks grace period only ends once the tasks that were preempted have run again, and bpf_tramp_image_put() already relies on it to free the image. It doesn't wait for tasks that sleep in the trampoline, the next commit takes care of those. Only progs that were linked to a trampoline can be called this way, so bpf_trampoline_add_prog() marks them and other progs are still freed as before.