В ядре Linux устранена следующая уязвимость:
net/sched: sch_taprio: заменить прямой вызов удаления из очереди на peek и qdisc_dequeue_peeked
Когда программный путь Taprio просматривает дочерний qdisc, не сохраняющий работу,
ребенок прячет просмотренный skb в свой gso_skb; Taprio_dequeue_from_txq()
затем принимает пакет прямым дочерним вызовом ->dequeue(), который игнорирует
этот тайник делает потерянным просмотренный skb и рассинхронизирует дочерний qlen/backlog. С дочерним элементом qfq это повторно вводит дочерний элемент в пустой список и
разыменовывает NULL, вызывая панику ядра от softirq при обычном выходе. Пропустите пакет через qdisc_dequeue_peeked(), как sch_red и sch_sfb.
теперь делай.
Помощник первым возвращает спрятанный skb ребенка и не выполняет никаких действий. когда его нет, то это не повлияет на ребенка, сохраняющего работу, и Закрытый путь теперь потребляет SKB, длина которого была зачтена в бюджет.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net/sched: sch_taprio: Replace direct dequeue call with peek and qdisc_dequeue_peeked When taprio's software path peeks a non-work-conserving child qdisc, the child stashes the peeked skb in its gso_skb; taprio_dequeue_from_txq() then takes the packet with a direct child ->dequeue() call, which ignores that stash, orphans the peeked skb and desyncs the child's qlen/backlog. With a qfq child this re-enters the child on an emptied list and dereferences NULL, panicking the kernel from softirq on ordinary egress. Take the packet through qdisc_dequeue_peeked(), as sch_red and sch_sfb now do. The helper returns the child's stashed skb first and is a no-op when there is none, so a work-conserving child is unaffected and the gated path now consumes the skb whose length was charged to the budget.
Характеристики атаки
Последствия
Строка CVSS v3.1