В ядре Linux устранена следующая уязвимость:
ipv6: ioam: исправлена путаница типов dst_entry.
IOAM использует фиктивный dst_entry(null_dst), чтобы отметить, что пункт назначения должен
не изменяться после преобразования. Это dst хранится в lwt IOAM.
состояние и может быть передано в dst_cache_set_ip6(). Однако путь к кэшу IPv6 dst в конечном итоге вызывает rt6_get_cookie(), который
рассматривает dst_entry как часть структуры rt6_info.
Поскольку null_dst был
встроен непосредственно как структура dst_entry в структуру ioam6_lwt, в результате
в недопустимом приведении и rt6_get_cookie() читают поля неправильно
объект. На практике неправильный файл cookie не используется, пока dst->obsolete равен нулю, но
rt6_get_cookie() также может получить доступ к значению для каждого процессора, когда rt->sernum
ноль. В этом случае rt->sernum псевдонимы ioam6_lwt::cache::reset_ts, которые
может стать нулевым, что делает доступ к потенциально недопустимому указателю.
Исправьте это, внедрив полную структуру rt6_info для фиктивного маршрута IPv6 и
передача своего члена dst API-интерфейсам dst.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ipv6: ioam: fix type confusion of dst_entry IOAM uses a dummy dst_entry(null_dst) to mark that the destination should not be changed after the transformation. This dst is stored in the IOAM lwt state and may be passed to dst_cache_set_ip6(). However, the IPv6 dst cache path eventually calls rt6_get_cookie(), which treats the dst_entry as part of a struct rt6_info. Since the null_dst was embedded directly as a struct dst_entry in struct ioam6_lwt, this resulted in an invalid cast and rt6_get_cookie() reading fields from the wrong object. In practice, the wrong cookie is not used while dst->obsolete is zero, but rt6_get_cookie() may also access per-cpu value when rt->sernum is zero. In this case, rt->sernum aliases ioam6_lwt::cache::reset_ts, which can become zero, making this a potential invalid pointer access. Fix this by embedding a full struct rt6_info for the dummy IPv6 route and passing its dst member to the dst APIs.
Характеристики атаки
Последствия
Строка CVSS v3.1