В ядре Linux была устранена следующая уязвимость: ASoC: Intel: avs: Refactor и исправить init_config access Existing code accesses enties Найдено в массиве ->init_configs через индексы, которые являются частью массива ->config_ids. Эти два ограничены: ->num_init_configs и ->num_config_ids соответственно. Использование ID, большего или равного ->num_init_configs, приводит к доступу out-of-bounds: avs_path_module_send_init_configs() цикл: (...) &acomp->tplg->init_configs[ids[i]] out-of-bounds кандидат Rather, чем добавление другого if-утверждения, рефакторинг кода.
Нет необходимости хранить IDs, вместо этого есть список указателей на фактические конфигурационные элементы. Поскольку проверка записей ->init_config не отличается от проверки других типов, которые являются частью файла topology.c, просто повторно используйте код.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ASoC: Intel: avs: Refactor and fix init_config access Existing code accesses enties found in ->init_configs array through indexes that are part of ->config_ids array. Those two are limited by: ->num_init_configs and ->num_config_ids respectively. Using ID larger or equal to ->num_init_configs leads to out-of-bounds access: avs_path_module_send_init_configs() loop: (...) &acomp->tplg->init_configs[ids[i]] ^ out-of-bounds candidate Rather than adding another if-statement, refactor the code. There is no need to store the IDs, have a list of pointers to actual config-entries instead. As the verification of ->init_config entries does not differ from verification of other types that are part of the topology.c file, simply reuse the code.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.9
|
6.18.53
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.2.7
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.3:rc2:*:*:*:*:*:*
|
— | — |