CVE-2026-90272: perf: arm_pmuv3: Zero initialize hw_id branch stack field
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
perf: arm_pmuv3: Zero initialize hw_id branch stack field
PERF_SAMPLE_BRANCH_HW_INDEX is supported by BRBE so hw_id is passed to userspace, but it's never set by the BRBE driver. Zero initialize it as it should be according to the docs:
* For the architectures whose raw branch records are
* already stored in age order, the hw_idx should be 0.
It's probably too risky to remove PERF_SAMPLE_BRANCH_HW_INDEX from BRBE now in case anyone is setting it and reading the value, but zero initializing the whole struct also protects against the same issue with new fields that are added in the future.
The Linux kernel CVE team has assigned CVE-2026-90272 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.17 with commit 58074a0fce66c6c97b35ce8a28ed4e7b780f9a8f and fixed in 6.18.52 with commit 57b72442c1672963fd51ab441ca1b71f6dc79b66 Issue introduced in 6.17 with commit 58074a0fce66c6c97b35ce8a28ed4e7b780f9a8f and fixed in 7.2.6 with commit 988e11b69ef9d4034e19c64407030fa948580c3d Issue introduced in 6.17 with commit 58074a0fce66c6c97b35ce8a28ed4e7b780f9a8f and fixed in 7.3-rc1 with commit 7c3b63386c27bed8d59a4b4c283d02860420eb0a
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-90272
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/perf/arm_pmuv3.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/57b72442c1672963fd51ab441ca1b71f6dc79b66 https://git.kernel.org/stable/c/988e11b69ef9d4034e19c64407030fa948580c3d https://git.kernel.org/stable/c/7c3b63386c27bed8d59a4b4c283d02860420eb0a