Ad

CVE-2026-64235

HIGH CVSS 3.1: 8,1 EPSS 0.33%
Обновлено 20 октября 2026
Linux
Параметр Значение
CVSS 8,1 (HIGH)
Уязвимые версии 6.13 — 7.0.12
Устранено в версии 6.12.93
Тип уязвимости CWE-476 (Разыменование нулевого указателя)
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux устранена следующая уязвимость: x86/ftrace: перемещение %rip-относительных ссылок на процессор в динамических батутах. С включенным CONFIG_CALL_DEPTH_TRACKING на платформе x86, подверженной повторному кровотечению (например: Skylake), с retbleed=stuff, регистрируя динамический батут ftrace происходит сбой при первом вызове трассируемой функции: ОШИБКА: невозможно обработать ошибку страницы для адреса: ffff88817ae18880. #PF: доступ супервизора на запись в режиме ядра #PF: код_ошибки(0x0002) — страница отсутствует ПГД 4b53067 P4D 4b53067 ПУД 0 Упс: Упс: 0002 [#1] SMP PTI ЦП: 3 UID: 0 PID: 187 Связь: usleep Не испорчен 7.0.10 #243 PREEMPT(полный) Название оборудования: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Arch Linux 1.17.0-2-2 01.04.2014 Код: 24 78 00 00 00 00 48 89 ea 48 89 54 24 20 48 8b b4 24 b8 00 00 00 48 8b bc 24 b0 00 00 00 48 89 bc 24 80 00 00 00 48 83 ef 05 <65> 48 c1 3d 1f a8 b6 02 05 48 8b 15 f6 00 00 00 4c 89 3c 24 4c 89 Отслеживание вызова: <ЗАДАЧА> ? find_held_lock ? exc_page_fault ? lock_release ? __x64_sys_clock_nanosleep ? lockdep_hardirqs_on_prepare ? трассировка_hardirqs_on __x64_sys_clock_nanosleep do_syscall_64 ? exc_page_fault ? call_глубина_return_thunk запись_SYSCALL_64_after_hwframe ... Паника ядра – не синхронизируется: фатальное исключение Этот небольшой воспроизводитель позволяет легко вызвать сбой: # echo 'p __x64_sys_clock_nanosleep' > /sys/kernel/tracing/kprobe_events # echo 1 > /sys/kernel/tracing/events/kprobes/p___x64_sys_clock_nanosleep_0/enable # мы спим 1 Мониторинг сбоя в GDB указывает на точную инструкцию, отвечающую за увеличение глубины вызова: sarq $5, %gs:__x86_call_length(%rip) Эта инструкция совпадает с инструкцией, вставленной ftrace_regs_caller из ftrace_64.S.

Этот созданный код, вероятно, работал нормально до появления из 59bec00ace28 («x86/percpu: ввести относительную %rip-адресацию для PER_CPU_VAR()»): он сделал адресацию учета глубины вызова относительно $rip, а не основан на абсолютном адресе. Поскольку точное местоположение этого кода зависит от того, где в памяти находится батут, соответствующее смещение должно быть скорректировано во время выполнения, чтобы фактически правильно найдите значение __x86_call_eep для каждого процессора, в противном случае целевой адрес неправильный, что приводит к ошибке страницы, описанной выше. Исправлено смещение скопированного CALL_DEPTH_ACCOUNT относительно %rip. инструкцию (из ftrace_regs_caller) путем вызова text_poke_apply_relocation(), как это делает например JIT-компилятор x86 BPF через x86_call_length_emit_accounting().

Это исправляет оба слота CALL_DEPTH_ACCOUNT, в ftrace_caller и ftrace_regs_caller. [БП: Массаж. ]

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

In the Linux kernel, the following vulnerability has been resolved: x86/ftrace: Relocate %rip-relative percpu refs in dynamic trampolines With CONFIG_CALL_DEPTH_TRACKING enabled on an x86 retbleed-affected platform (eg: Skylake), with retbleed=stuff, registering a dynamic ftrace trampoline crashes on the first call into the traced function: BUG: unable to handle page fault for address: ffff88817ae18880 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page PGD 4b53067 P4D 4b53067 PUD 0 Oops: Oops: 0002 [#1] SMP PTI CPU: 3 UID: 0 PID: 187 Comm: usleep Not tainted 7.0.10 #243 PREEMPT(full) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Arch Linux 1.17.0-2-2 04/01/2014 Code: 24 78 00 00 00 00 48 89 ea 48 89 54 24 20 48 8b b4 24 b8 00 00 00 48 8b bc 24 b0 00 00 00 48 89 bc 24 80 00 00 00 48 83 ef 05 <65> 48 c1 3d 1f a8 b6 02 05 48 8b 15 f6 00 00 00 4c 89 3c 24 4c 89 Call Trace: <TASK> ? find_held_lock ? exc_page_fault ? lock_release ? __x64_sys_clock_nanosleep ? lockdep_hardirqs_on_prepare ? trace_hardirqs_on __x64_sys_clock_nanosleep do_syscall_64 ? exc_page_fault ? call_depth_return_thunk entry_SYSCALL_64_after_hwframe ... Kernel panic - not syncing: Fatal exception This small reproducer allows to easily trigger the crash: # echo 'p __x64_sys_clock_nanosleep' > /sys/kernel/tracing/kprobe_events # echo 1 > /sys/kernel/tracing/events/kprobes/p___x64_sys_clock_nanosleep_0/enable # usleep 1 Monitoring the crash under GDB points to the exact instruction in charge of incrementing the call depth: sarq $5, %gs:__x86_call_depth(%rip) This instruction matches the one inserted by the ftrace_regs_caller from ftrace_64.S. This emitted code was likely working fine until the introduction of 59bec00ace28 ("x86/percpu: Introduce %rip-relative addressing to PER_CPU_VAR()"): it has made the call depth accounting addressing relative to $rip, instead of being based on an absolute address. As this code exact location depends on where the trampoline lives in memory, the corresponding displacement needs to be adjusted at runtime to actually correctly find the per-cpu __x86_call_depth value, otherwise the targeted address is wrong, leading to the page fault seen above. Fix the %rip-relative displacement of the copied CALL_DEPTH_ACCOUNT instruction (from ftrace_regs_caller) by calling text_poke_apply_relocation(), as it is done for example by the x86 BPF JIT compiler through x86_call_depth_emit_accounting(). This corrects both CALL_DEPTH_ACCOUNT slots, in ftrace_caller and ftrace_regs_caller. [ bp: Massage. ]

Характеристики атаки

Способ атаки
По сети
Атака возможна удалённо
Сложность
Высокая
Сложно эксплуатировать
Нужны права
Не требуются
Права не нужны
Участие пользователя
Не требуется
Не нужно действие пользователя

Последствия

Конфиденциальность
Высокое
Полная утечка данных
Целостность
Высокое
Полная модификация данных
Доступность
Высокое
Полный отказ в обслуживании

Строка CVSS v3.1

Уязвимые продукты 8

Конфигурация От (включительно) До (исключительно)
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
6.9 6.12.93
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
6.13 6.18.35
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
6.19 7.0.12
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*
— —