Skip to contentSkip to conversation

CVE-2026-53278: arm_mpam: Check whether the config array is allocated before destroying it

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 26

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-53278 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.19 with commit 3bd04fe7d807bbdcfe75b29ca82fae4e2d7dc524 and fixed in 7.0.10 with commit 8eb6dc76eeae5302c0d885906a0e469ef9630a59
	Issue introduced in 6.19 with commit 3bd04fe7d807bbdcfe75b29ca82fae4e2d7dc524 and fixed in 7.1 with commit 6ccbb613b42a1f1ba7bfd547a148f644a902a25c

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-53278

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/resctrl/mpam_devices.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/8eb6dc76eeae5302c0d885906a0e469ef9630a59
	https://git.kernel.org/stable/c/6ccbb613b42a1f1ba7bfd547a148f644a902a25c