Ad

CVE-2026-23113

MEDIUM CVSS 3.1: 5,5 EPSS 0.15%
Обновлено 15 октября 2026
Linux
Параметр Значение
CVSS 5,5 (MEDIUM)
Уязвимые версии 5.12.1 — 6.6.122
Устранено в версии 6.6.122
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux устранена следующая уязвимость: io_uring/io-wq: проверьте IO_WQ_BIT_EXIT внутри цикла выполнения работы В настоящее время это проверяется перед запуском ожидающих работ. Обычно это вполне нормально, так как рабочие элементы либо в конечном итоге блокируются (что приведет к новый работник для других предметов), или они завершаются довольно быстро. Но сизбот сообщает о проблеме, из-за которой выход io-wq, по-видимому, занимает целую вечность, и с немного отладки, но это происходит потому, что в очереди стоит несколько больших (2 ГБ – 4096b) читается с файлом /dev/msr*.

Поскольку этот тип файла не support ->read_iter(), цикл_rw_iter() в конечном итоге обрабатывает их. Каждое чтение возвращает 16 МБ прочитанных данных, что занимает 20 (!!) секунд. С кучей эти ожидающие обработки, обработка всей цепочки может занять много времени.

Легко дольше, чем время ожидания бесперебойного сна syzbot, равное 140 секундам. Затем это вызывает жалобу на пути выхода io-wq: ИНФОРМАЦИЯ: задача syz.4.135:6326 заблокирована более чем на 143 секунды. Неиспорченный сизкаллер #0 Заблокировано дампом памяти. «echo 0 > /proc/sys/kernel/hung_task_timeout_secs» отключает это сообщение. задача: syz.4.135 состояние: D стек: 26824 pid: 6326 tgid: 6324 ppid: 5957 Task_flags: 0x400548 флаги: 0x00080000 Отслеживание вызова: <ЗАДАЧА> context_switch kernel/sched/core.c:5256 [встроенный] __schedule+0x1139/0x6150 ядро/sched/core.c:6863 __schedule_loop ядро/sched/core.c:6945 [встроенный] расписание+0xe7/0x3a0 ядро/sched/core.c:6960 Schedule_timeout+0x257/0x290 ядро/время/sleep_timeout.c:75 do_wait_for_common kernel/sched/completion.c:100 [встроенный] __wait_for_common+0x2fc/0x4e0 ядро/sched/completion.c:121 io_wq_exit_workers io_uring/io-wq.c:1328 [встроенный] io_wq_put_and_exit+0x271/0x8a0 io_uring/io-wq.c:1356 io_uring_clean_tctx+0x10d/0x190 io_uring/tctx.c:203 io_uring_cancel_generic+0x69c/0x9a0 io_uring/cancel.c:651 io_uring_files_cancel include/linux/io_uring.h:19 [встроенный] do_exit+0x2ce/0x2bd0 ядро/exit.c:911 do_group_exit+0xd3/0x2a0 ядро/exit.c:1112 get_signal+0x2671/0x26d0 ядро/signal.c:3034 Arch_do_signal_or_restart+0x8f/0x7e0 Arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:41 [встроенный] exit_to_user_mode_loop+0x8c/0x540 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [встроенный] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [встроенный] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [встроенный] syscall_exit_to_user_mode include/linux/entry-common.h:194 [встроенный] do_syscall_64+0x4ee/0xf80 Arch/x86/entry/syscall_64.c:100 запись_SYSCALL_64_after_hwframe+0x77/0x7f РИП: 0033:0x7fa02738f749 RSP: 002b: 00007fa0281ae0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007fa0275e6098 RCX: 00007fa02738f749 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fa0275e6098 РБП: 00007fa0275e6090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa0275e6128 R14: 00007fff14e4fcb0 R15: 00007fff14e4fd98 На самом деле здесь нет ничего плохого, кроме обработки этих чтений. займет ДОЛГО времени.

Однако мы можем ускорить выход, проверив IO_WQ_BIT_EXIT внутри цикла io_worker_handle_work(), как это сделает syzbot. выйти из кольца после постановки в очередь всех этих операций чтения. Тогда однажды первый элемент обработан, io-wq просто отменит все остальное. Этого следует избегать syzbot снова сталкивается с этой жалобой.

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

In the Linux kernel, the following vulnerability has been resolved: io_uring/io-wq: check IO_WQ_BIT_EXIT inside work run loop Currently this is checked before running the pending work. Normally this is quite fine, as work items either end up blocking (which will create a new worker for other items), or they complete fairly quickly. But syzbot reports an issue where io-wq takes seemingly forever to exit, and with a bit of debugging, this turns out to be because it queues a bunch of big (2GB - 4096b) reads with a /dev/msr* file. Since this file type doesn't support ->read_iter(), loop_rw_iter() ends up handling them. Each read returns 16MB of data read, which takes 20 (!!) seconds. With a bunch of these pending, processing the whole chain can take a long time. Easily longer than the syzbot uninterruptible sleep timeout of 140 seconds. This then triggers a complaint off the io-wq exit path: INFO: task syz.4.135:6326 blocked for more than 143 seconds. Not tainted syzkaller #0 Blocked by coredump. "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.135 state:D stack:26824 pid:6326 tgid:6324 ppid:5957 task_flags:0x400548 flags:0x00080000 Call Trace: <TASK> context_switch kernel/sched/core.c:5256 [inline] __schedule+0x1139/0x6150 kernel/sched/core.c:6863 __schedule_loop kernel/sched/core.c:6945 [inline] schedule+0xe7/0x3a0 kernel/sched/core.c:6960 schedule_timeout+0x257/0x290 kernel/time/sleep_timeout.c:75 do_wait_for_common kernel/sched/completion.c:100 [inline] __wait_for_common+0x2fc/0x4e0 kernel/sched/completion.c:121 io_wq_exit_workers io_uring/io-wq.c:1328 [inline] io_wq_put_and_exit+0x271/0x8a0 io_uring/io-wq.c:1356 io_uring_clean_tctx+0x10d/0x190 io_uring/tctx.c:203 io_uring_cancel_generic+0x69c/0x9a0 io_uring/cancel.c:651 io_uring_files_cancel include/linux/io_uring.h:19 [inline] do_exit+0x2ce/0x2bd0 kernel/exit.c:911 do_group_exit+0xd3/0x2a0 kernel/exit.c:1112 get_signal+0x2671/0x26d0 kernel/signal.c:3034 arch_do_signal_or_restart+0x8f/0x7e0 arch/x86/kernel/signal.c:337 __exit_to_user_mode_loop kernel/entry/common.c:41 [inline] exit_to_user_mode_loop+0x8c/0x540 kernel/entry/common.c:75 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline] do_syscall_64+0x4ee/0xf80 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa02738f749 RSP: 002b:00007fa0281ae0e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007fa0275e6098 RCX: 00007fa02738f749 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fa0275e6098 RBP: 00007fa0275e6090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fa0275e6128 R14: 00007fff14e4fcb0 R15: 00007fff14e4fd98 There's really nothing wrong here, outside of processing these reads will take a LONG time. However, we can speed up the exit by checking the IO_WQ_BIT_EXIT inside the io_worker_handle_work() loop, as syzbot will exit the ring after queueing up all of these reads. Then once the first item is processed, io-wq will simply cancel the rest. That should avoid syzbot running into this complaint again.

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

Способ атаки
Локальный
Нужен локальный доступ
Сложность
Низкая
Легко эксплуатировать
Нужны права
Низкие
Нужны базовые права
Участие пользователя
Не требуется
Не нужно действие пользователя

Последствия

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

Строка CVSS v3.1

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

Конфигурация От (включительно) До (исключительно)
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
5.12.1 6.6.122
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
6.7 6.12.68
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
6.13 6.18.8
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.12:-:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.12:rc7:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:5.12:rc8:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc5:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.19:rc6:*:*:*:*:*:*
— —