В ядре Linux устранена следующая уязвимость:
net-shapers: не освобождать skb ответа после genlmsg_reply()
genlmsg_reply() передает skb ответа в netlink и
netlink_unicast() использует его на всех обратных путях, независимо от того,
skb успешно поставлен в очередь или освобожден по пути ошибки.
net_shaper_nl_get_doit() и net_shaper_nl_cap_get_doit()
в настоящее время переход к free_msg после сбоя genlmsg_reply() и вызов
nlmsg_free(msg), который может дважды попасть в один и тот же skb.
Верните ошибку genlmsg_reply() напрямую и сохраните free_msg.
только для ошибок предварительного ответа.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net-shapers: don't free reply skb after genlmsg_reply() genlmsg_reply() hands the reply skb to netlink, and netlink_unicast() consumes it on all return paths, whether the skb is queued successfully or freed on an error path. net_shaper_nl_get_doit() and net_shaper_nl_cap_get_doit() currently jump to free_msg after genlmsg_reply() fails and call nlmsg_free(msg), which can hit the same skb twice. Return the genlmsg_reply() error directly and keep free_msg only for pre-reply failures.
Характеристики атаки
Последствия
Строка CVSS v3.1
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.13
|
6.18.19
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
6.19.9
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
|
— | — |