In the Linux kernel, the following vulnerability has been resolved: ip6mr: do not clone dst in ip6mr_cache_report() IPv6 input attaches a non-refcounted (NOREF) dst to skbs under RCU. Когда пакет многоадресной рассылки пропускает поиск MFC, ip6mr_cache_unresolved () помещает skb в неразрешенную очередь, избегая льготного периода приема RCU. Если базовый маршрут удаляется и освобождается, а очередь MFC позже решается с помощью неправильного родительского интерфейса, ip6_mr_forward() вызывает ip6mr_cache_report(..., MRT6MSG_WRONGMIF), который выполняет dst_clone(skb_dst(pkt)) на свободной записи dst, вызывая плиту use-after-free.
Пакеты отчетов, стоящие в очереди на mroute6_sk (сырой сокет), и уведомления netlink не требуют прикрепленной записи dst. Исправьте это: 1. Удаление dst_clone () в ip6mr_cache_report () и обеспечение отчетов skbs не содержат dst. 2.
Выпадение skb_dst до постановки в очередь нерешенных skbs в ip6mr_cache_unresolved(), что соответствует тому факту, что многоадресная переадресация решает исходящие маршруты заново через ip6_route_output().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ip6mr: do not clone dst in ip6mr_cache_report() IPv6 input attaches a non-refcounted (NOREF) dst to skbs under RCU. When an ingress multicast packet misses MFC lookup, ip6mr_cache_unresolved() places the skb onto the unresolved queue, escaping the receive-side RCU grace period. If the underlying route is deleted and freed, and the MFC queue is later resolved with a wrong parent interface, ip6_mr_forward() invokes ip6mr_cache_report(..., MRT6MSG_WRONGMIF), which executes dst_clone(skb_dst(pkt)) on the freed dst entry, triggering a slab use-after-free. Report packets queued to mroute6_sk (a raw socket) and netlink notifications do not require an attached dst entry. Fix this by: 1. Removing dst_clone() in ip6mr_cache_report() and ensuring report skbs do not hold a dst. 2. Dropping skb_dst before queuing unresolved skbs in ip6mr_cache_unresolved(), matching the fact that multicast forwarding resolves outgoing routes anew via ip6_route_output().
Характеристики атаки
Последствия
Строка CVSS v3.1