В ядре Linux устранена следующая уязвимость:
Arm_mpam: проверьте, выделен ли массив конфигурации, прежде чем уничтожать его.
__destroy_comComponent_cfg() вызывается для освобождения массива конфигурации. Он использует встроенную структуру «мусор», что означает, что массив имеет
быть выделено. Если __destroy_compent_cfg() вызывается из mpam_disable() до
конфигурация когда-либо была выделена, то указатель NULL разыменовывается.
Проверьте этот случай и вернитесь раньше, если конфигурация неверна.
выделено.
__destroy_comComponent_cfg() также освобождает mbwu_state по мере его выделения.
с помощью __allocate_comComponent_cfg(). Поскольку mbwu_state выделяется после
установлен comp->cfg, а также находится под mpam_list_lock, только первый
указатель требует проверки.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: arm_mpam: Check whether the config array is allocated before destroying it __destroy_component_cfg() is called to free the configuration array. It uses the embedded 'garbage' structure, which means the array has to be allocated. If __destroy_component_cfg() is called from mpam_disable() before the configuration was ever allocated, then a NULL pointer is dereferenced. Check for this case and return early if the configuration is not allocated. __destroy_component_cfg() also frees the mbwu_state as this is allocated by __allocate_component_cfg(). As the mbwu_state is allocated after comp->cfg is set, and is also under mpam_list_lock, only the first pointer needs checking.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.19
|
7.0.10
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
|
— | — |