В ядре Linux устранена следующая уязвимость: scsi: mpt3sas: Avoid out-of-bounds cpumask_of_node() вызов в _base_assign_reply_queues() dev_to_node() может возвращать NUMA_NO_NODE (-1) на системах без топологической информации NUMA для устройства PCI, например, односокетные платы, не раскрывающие аффинити device-to-node. Передавая -1 непосредственно в индексы cpumask_of_node () node_to_cpumask_map[-1, массив out-of-bounds читается как UBSAN: UBSAN: array-index-out-of-bounds в индексе arch/x86/include/asm/topology.h:72:28 -1, находится вне диапазона для типа «cpumask * [1024]» Fall обратно в cpu_online_mask, когда нет NUMA узла, вместо того, чтобы предполагать, что dev_to_node () всегда возвращает действительный индекс узла.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: scsi: mpt3sas: Avoid out-of-bounds cpumask_of_node() call in _base_assign_reply_queues() dev_to_node() can return NUMA_NO_NODE (-1) on systems without NUMA topology information for the PCI device, such as single-socket boards that don't expose device-to-node affinity. Passing -1 directly into cpumask_of_node() indexes node_to_cpumask_map[-1], an out-of-bounds array read caught by UBSAN: UBSAN: array-index-out-of-bounds in arch/x86/include/asm/topology.h:72:28 index -1 is out of range for type 'cpumask *[1024]' Fall back to cpu_online_mask when no NUMA node is available, rather than assuming dev_to_node() always returns a valid node index.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 5
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.3
|
6.12.111
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.3
|
6.18.53
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.3
|
7.2.7
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
5.3
|
7.3-rc2
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*
|
— | — |