Ad

CVE-2026-98158

MEDIUM CVSS 3.1: 5,5 EPSS 0.11%
Обновлено 20 октября 2026
Linux
Параметр Значение
CVSS 5,5 (MEDIUM)
Уязвимые версии 2.6.15 — 7.3-rc3
Устранено в версии 6.12.111
Тип уязвимости CWE-125 (Чтение за пределами буфера)
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux была устранена следующая уязвимость: ppp_async: отбрасывает ошибочную рамку вместо сброса своего headroom ppp_receive_nonmp_frame() предварительно запускает двухбайтовый тег направления перед запуском фильтров BPF: *(__be16 *)skb_push(skb, 2) htons(PPP_FILTER_INBOUND_TAG); Nothing на пути получения гарантирует эти два байта headroom. Путь ошибки фрейма в ppp_async's process_input_packet() сбрасывает использованный skb's headroom на ноль, утверждая, что он восстанавливает его в свежевыделено состояние - но свежий skb из dev_alloc_skb() несет NET_SKB_PAD: ошибка: если (skb) / * сделать skb отображается как свежевыделенный * / skb_trim(skb, 0; skb_reserve(skb, - skb_headroom(skb)); ap->rpkt still at he at he here A peer that sends a bad-FCS frame followed by one beginning ff 03 then leaves a single byte of headroom by the time the filter tag is pushed, which lands one byte below skb->head: skbuff: skb_under_panic: len:49 put:2 head:ffff888003c10000 data:ffff888003c0ffff tail:0x30 end:0x640 dev:<NULL> kernel BUG at net/core/skbuff.c:214! RIP: 0010:skb_panic+0x13e/0x230 Call Trace: skb_push+0xbd/0x100 ppp_receive_nonmp_frame+0x48a/0x1d10 ppp_input+0x4e9/0x2f80 ppp_async_process+0x2a/0xe0 tasklet_action_common+0x20f/0x8a0 handle_softirqs+0x18e/0x590 Kernel panic - not syncing: Fatal exception in interrupt Zeroing headroom нарушает гарантию NET_SKB_PAD, что dev_alloc_skb() отдаёт остальную часть пути получения. Помимо паники фильтра выше, когда CCP сжатие включено ppp_decompress_frame () передает skb->data - 2 в ->decompress()/->incomp (), который затем читает за пределами перед skb->head по той же причине.

Вместо того, чтобы восстанавливать headroom, отбросьте ошибочный кадр - как ppp_synctty уже делает на своем пути ошибок - и очистите ap->rpkt, чтобы следующий кадр снова собрался в свежий skb с надлежащим headroom. Это проще и исправляет как недопанику фильтра, так и чтение CCP out-of-bounds. Оригинальный V1 этого патча сделал место в ppp_receive_nonmp_frame() с skb_cow_head(); Eric указал, что исправление первопричины в транспорте является правильным подходом.

Обнаруженный путем спутывания PPP путь приема с мутирующим узлом на pty; это интересный (удаленный) DoS: root настраивает PPP, узел поставляет два фрейма сбоя. Репродуктор (repro-ppp-skb.c, без изменений по сравнению с v1) паникует примерно через секунду, и возвращается без проблем.

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

In the Linux kernel, the following vulnerability has been resolved: ppp_async: drop the errored frame instead of resetting its headroom ppp_receive_nonmp_frame() prepends a two-byte direction tag before running the pass/active BPF filters: *(__be16 *)skb_push(skb, 2) = htons(PPP_FILTER_INBOUND_TAG); Nothing on the receive path guarantees those two bytes of headroom. The frame-error path in ppp_async's process_input_packet() resets a reused skb's headroom to zero while claiming to restore it to a freshly allocated state - but a fresh skb from dev_alloc_skb() carries NET_SKB_PAD: err: if (skb) { /* make skb appear as freshly allocated */ skb_trim(skb, 0); skb_reserve(skb, - skb_headroom(skb)); } ap->rpkt still points at that skb, so the next frame is reassembled into it with no headroom at all. A peer that sends a bad-FCS frame followed by one beginning ff 03 then leaves a single byte of headroom by the time the filter tag is pushed, which lands one byte below skb->head: skbuff: skb_under_panic: len:49 put:2 head:ffff888003c10000 data:ffff888003c0ffff tail:0x30 end:0x640 dev:<NULL> kernel BUG at net/core/skbuff.c:214! RIP: 0010:skb_panic+0x13e/0x230 Call Trace: skb_push+0xbd/0x100 ppp_receive_nonmp_frame+0x48a/0x1d10 ppp_input+0x4e9/0x2f80 ppp_async_process+0x2a/0xe0 tasklet_action_common+0x20f/0x8a0 handle_softirqs+0x18e/0x590 Kernel panic - not syncing: Fatal exception in interrupt Zeroing the headroom violates the NET_SKB_PAD guarantee that dev_alloc_skb() gives the rest of the receive path. Besides the filter panic above, when CCP compression is enabled ppp_decompress_frame() hands skb->data - 2 to ->decompress()/->incomp(), which then reads out of bounds before skb->head for the same reason. Rather than restore the headroom, drop the errored frame - as ppp_synctty already does on its error path - and clear ap->rpkt so the next frame is reassembled into a fresh skb with proper headroom. This is simpler and fixes both the filter under-panic and the CCP out-of-bounds read. The original V1 of this patch made room in ppp_receive_nonmp_frame() with skb_cow_head(); Eric pointed out that fixing the root cause in the transport is the right approach. Found by fuzzing the PPP receive path with a mutating peer on a pty; it is an interesting (remote) DoS: root configures PPP, the peer supplies two crashing frames. The reproducer (repro-ppp-skb.c, unchanged from v1) panics in about a second, and returns cleanly with this applied.

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

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

Последствия

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

Строка CVSS v3.1

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

Конфигурация От (включительно) До (исключительно)
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
2.6.15 6.12.111
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
2.6.15 6.18.53
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
2.6.15 7.2.7
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
2.6.15 7.3-rc3
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*
— —
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.3:rc2:*:*:*:*:*:*
— —