arm_mpam: guard MBWU state before adding it to garbage
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's arm_mpam component configuration cleanup can dereference a NULL pointer when a RIS has no MBWU state object. This can cause a crash; the input does not specify an attacker path, authentication requirements, or user interaction.
Engineers running Linux kernels with arm_mpam should check whether their kernel is affected; no affected versions are specified.