В ядре Linux устранена следующая уязвимость:
net: ioam6: исправлен OOB и отсутствующая блокировка
Когда установлена трассировка->type.bit6:
если (трассировка->type.bit6) {
...
очередь = skb_get_tx_queue (dev, skb);
qdisc = rcu_dereference(queue->qdisc);
Этот код может привести к выходу за пределы доступа к массиву dev->_tx[]
когда is_input истинно. В таком случае пакет находится на пути RX и
skb->queue_mapping содержит индекс очереди RX входного устройства. Если
входное устройство имеет больше очередей RX, чем выходное устройство (dev)
Очередей TX, skb_get_queue_mapping(skb) превысит значение dev->num_tx_queues.
Добавьте проверку, чтобы избежать этой ситуации, поскольку skb_get_tx_queue() этого не делает.
зажмите указатель. Эта проблема также показала, что видимость каждой очереди
не может быть точным и будет заменен позже как новая функция. При этом добавьте недостающую блокировку вокруг qdisc_qstats_qlen_backlog().
функция __ioam6_fill_trace_data() вызывается как из softirq, так и из
контексты процесса, поэтому здесь используется spin_lock_bh().
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net: ioam6: fix OOB and missing lock When trace->type.bit6 is set: if (trace->type.bit6) { ... queue = skb_get_tx_queue(dev, skb); qdisc = rcu_dereference(queue->qdisc); This code can lead to an out-of-bounds access of the dev->_tx[] array when is_input is true. In such a case, the packet is on the RX path and skb->queue_mapping contains the RX queue index of the ingress device. If the ingress device has more RX queues than the egress device (dev) has TX queues, skb_get_queue_mapping(skb) will exceed dev->num_tx_queues. Add a check to avoid this situation since skb_get_tx_queue() does not clamp the index. This issue has also revealed that per queue visibility cannot be accurate and will be replaced later as a new feature. While at it, add missing lock around qdisc_qstats_qlen_backlog(). The function __ioam6_fill_trace_data() is called from both softirq and process contexts, hence the use of spin_lock_bh() here.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 9
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.17
|
6.18.24
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
6.19.14
|
|
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:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*
|
— | — |