В ядре Linux устранена следующая уязвимость:
amt: перечитывать указатели заголовков skb после каждого извлечения
Несколько путей приема и передачи AMT кэшируют указатель в головке skb.
(ip_hdr(), ipv6_hdr(), eth_hdr() или заголовок сообщения AMT), а затем вызовите
помощник, который может перераспределить эту голову перед использованием кэшированного указателя
снова. pskb_may_pull(), ip_mc_may_pull(), ipv6_mc_may_pull(),
iptunnel_pull_header(), ip_mc_check_igmp() и ipv6_mc_check_mld() могут
освободите старую голову и переместите данные, чтобы указатель был взят перед вызовом
после этого висит, и последующий доступ - это использование освобожденного после освобождения
голова. Затронутые сайты:
amt_rcv() кэширует ip_hdr() до того, как amt_parse_type() извлекает, а затем читает
иф->саддр.
amt_dev_xmit() кэширует ip_hdr()/ipv6_hdr() перед ip_mc_check_igmp()/
ipv6_mc_check_mld() и pskb_may_pull(), затем считывает адрес группы.
amt_multicast_data_handler() кэширует eth_hdr() перед pskb_may_pull(),
затем записывает заголовок L2.
amt_membership_query_handler() кэширует заголовок AMT, внешний и
внутренние eth_hdr() и ip_hdr() перед iptunnel_pull_header() и несколько
тянет, потом читает и записывает их. Кэш amt_igmpv3_report_handler() и amt_mldv2_report_handler()
ip_hdr()/ipv6_hdr() и текущую групповую запись и прочитайте запись.
отсчет из заголовка отчета внутри цикла записи, через
*_mc_may_pull() вызывает.
amt_update_handler() кэширует ip_hdr() и обновление членства в AMT.
заголовок перед pskb_may_pull(), iptunnel_pull_header(),
ip_mc_check_igmp() и обработчик отчета, затем читает iph->daddr и
amtmu->nonce / amtmu->response_mac.
Исправьте каждый сайт, сделав снимок скаляра, который используется после pull до выполнения первого запроса или повторное получение указателя заголовка из скб после последнего рывка, способного сдвинуть голову. Ценности, которые стабильный по запросу (адрес источника и группы, ответный MAC и nonce, количество записей, внешний MAC-адрес источника) создаются моментальные снимки; указатели которые записываются или читаются неоднократно, выводятся заново.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: amt: re-read skb header pointers after every pull Several AMT receive and transmit paths cache a pointer into the skb head (ip_hdr(), ipv6_hdr(), eth_hdr() or the AMT message header) and then call a helper that can reallocate that head before the cached pointer is used again. pskb_may_pull(), ip_mc_may_pull(), ipv6_mc_may_pull(), iptunnel_pull_header(), ip_mc_check_igmp() and ipv6_mc_check_mld() can all free the old head and move the data, so a pointer taken before the call dangles afterwards and the later access is a use-after-free of the freed head. The affected sites are: amt_rcv() caches ip_hdr() before amt_parse_type() pulls, then reads iph->saddr. amt_dev_xmit() caches ip_hdr()/ipv6_hdr() before ip_mc_check_igmp()/ ipv6_mc_check_mld() and pskb_may_pull(), then reads the group address. amt_multicast_data_handler() caches eth_hdr() before pskb_may_pull(), then writes the L2 header. amt_membership_query_handler() caches the AMT header, the outer and inner eth_hdr() and ip_hdr() before iptunnel_pull_header() and several pulls, then reads and writes them. amt_igmpv3_report_handler() and amt_mldv2_report_handler() cache ip_hdr()/ipv6_hdr() and the current group record and read the record count from the report header inside the record loop, across the *_mc_may_pull() calls. amt_update_handler() caches ip_hdr() and the AMT membership-update header before pskb_may_pull(), iptunnel_pull_header(), ip_mc_check_igmp() and the report handler, then reads iph->daddr and amtmu->nonce / amtmu->response_mac. Fix each site by either snapshotting the scalar that is used after the pull before the first pull runs, or re-deriving the header pointer from the skb after the last pull that can move the head. Values that are stable across the pull (source and group address, the response MAC and nonce, the record count, the outer source MAC) are snapshotted; pointers that are written through or read repeatedly are re-derived.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.6.148
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.12.101
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
6.18.42
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
7.1.6
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.16
|
7.2
|