В ядре Linux устранена следующая уязвимость:
Arm_mpam: охранять состояние MBWU перед добавлением его в мусор
__destroy_comComponent_cfg() добавляет каждый объект RIS mbwu_state в MPAM.
список мусора при уничтожении конфигурации компонента. Однако mbwu_state выделяется для каждого RIS и только для RIS с MBWU.
мониторы. Таким образом, компонент может иметь выделенный comp->cfg, в то время как некоторые
В RIS-системах ris->mbwu_state по-прежнему имеет значение NULL.
Передача NULL mbwu_state в add_to_garbage() разыменовывает NULL
указатель внутри макроса. Пропускайте RIS, у которых нет объекта mbwu_state, прежде чем добавлять их в
список мусора.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: arm_mpam: guard MBWU state before adding it to garbage __destroy_component_cfg() adds each RIS mbwu_state object to the MPAM garbage list when destroying component configuration. However, mbwu_state is allocated per RIS and only for RISes with MBWU monitors. A component can therefore have comp->cfg allocated while some RISes still have ris->mbwu_state set to NULL. Passing a NULL mbwu_state to add_to_garbage() dereferences the NULL pointer inside the macro. Skip RISes that do not have an mbwu_state object before adding them to the garbage list.