CVE-2026-31528
perf: Make sure to use pmu_ctx->pmu for groups
Description
In the Linux kernel, the following vulnerability has been resolved: perf: Make sure to use pmu_ctx->pmu for groups Oliver reported that x86_pmu_del() ended up doing an out-of-bound memory access when group_sched_in() fails and needs to roll back. This *should* be handled by the transaction callbacks, but he found that when the group leader is a software event, the transaction handlers of the wrong PMU are used. Despite the move_group case in perf_event_open() and group_sched_in() using pmu_ctx->pmu. Turns out, inherit uses event->pmu to clone the events, effectively undoing the move_group case for all inherited contexts. Fix this by also making inherit use pmu_ctx->pmu, ensuring all inherited counters end up in the same pmu context. Similarly, __perf_event_read() should use equally use pmu_ctx->pmu for the group case.
INFO
Published Date :
April 22, 2026, 2:16 p.m.
Last Modified :
Nov. 11, 2026, 11:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Apply the patch for perf: Make sure to use pmu_ctx->pmu for groups.
- Update the Linux kernel to the latest version.
- Verify the fix addresses the out-of-bound memory access.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-31528.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-31528 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-31528
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-31528 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-31528 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Nov. 11, 2026
Action Type Old Value New Value Added Translation Title: Linux Kernel, Description: En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: perf: Asegurarse de usar pmu_ctx -> pmu para grupos Oliver informó que x86_pmu_del() terminó realizando un acceso a memoria fuera de límites cuando group_sched_in() falla y necesita revertir. Esto debería ser manejado por las retrollamadas de transacción, pero él encontró que cuando el líder del grupo es un evento de software, se utilizan los manejadores de transacción de la PMU incorrecta. A pesar de que el caso move_group en perf_event_open() y group_sched_in() usan pmu_ctx -> pmu. Resulta que inherit usa event -> pmu para clonar los eventos, deshaciendo efectivamente el caso move_group para todos los contextos heredados. Solucione esto haciendo también que inherit use pmu_ctx -> pmu, asegurando que todos los contadores heredados terminen en el mismo contexto pmu. De manera similar, __perf_event_read() debería usar igualmente pmu_ctx -> pmu para el caso de grupo. -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Oct. 19, 2026
Action Type Old Value New Value Added CWE CWE-787 -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 16, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/35f7914e54fe7f13654c22ee045b05e4b6d8062b Added Reference https://git.kernel.org/stable/c/3a696e84a8b1fafdd774bb30d62919faf844d9e4 Added Reference https://git.kernel.org/stable/c/4b9ce671960627b2505b3f64742544ae9801df97 Added Reference https://git.kernel.org/stable/c/4c759446046500a1a6785b25725725c3ff087ace Added Reference https://git.kernel.org/stable/c/656f35b463995bee024d948440128230aacd81e1 Removed Reference https://git.kernel.org/stable/c/35f7914e54fe7f13654c22ee045b05e4b6d8062b Removed Reference https://git.kernel.org/stable/c/3a696e84a8b1fafdd774bb30d62919faf844d9e4 Removed Reference https://git.kernel.org/stable/c/4b9ce671960627b2505b3f64742544ae9801df97 Removed Reference https://git.kernel.org/stable/c/4c759446046500a1a6785b25725725c3ff087ace Removed Reference https://git.kernel.org/stable/c/656f35b463995bee024d948440128230aacd81e1 Removed Reference Type https://git.kernel.org/stable/c/35f7914e54fe7f13654c22ee045b05e4b6d8062b Types: Patch Removed Reference Type https://git.kernel.org/stable/c/3a696e84a8b1fafdd774bb30d62919faf844d9e4 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/4b9ce671960627b2505b3f64742544ae9801df97 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/4c759446046500a1a6785b25725725c3ff087ace Types: Patch Removed Reference Type https://git.kernel.org/stable/c/656f35b463995bee024d948440128230aacd81e1 Types: Patch -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Oct. 16, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-31528', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-10-16T15:10:38.614462Z'} -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': 'bd27568117664b8b3e259721393df420ed51f57b', 'lessThan': '656f35b463995bee024d948440128230aacd81e1', 'versionType': 'git'}, {'status': 'affected', 'version': 'bd27568117664b8b3e259721393df420ed51f57b', 'lessThan': '3a696e84a8b1fafdd774bb30d62919faf844d9e4', 'versionType': 'git'}, {'status': 'affected', 'version': 'bd27568117664b8b3e259721393df420ed51f57b', 'lessThan': '35f7914e54fe7f13654c22ee045b05e4b6d8062b', 'versionType': 'git'}, {'status': 'affected', 'version': 'bd27568117664b8b3e259721393df420ed51f57b', 'lessThan': '4c759446046500a1a6785b25725725c3ff087ace', 'versionType': 'git'}, {'status': 'affected', 'version': 'bd27568117664b8b3e259721393df420ed51f57b', 'lessThan': '4b9ce671960627b2505b3f64742544ae9801df97', 'versionType': 'git'}], 'programFiles': ['kernel/events/core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.2'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.2', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.6.131', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.80', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.21', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '6.19.11', 'versionType': 'semver', 'lessThanOrEqual': '6.19.*'}, {'status': 'unaffected', 'version': '7.0', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['kernel/events/core.c'], 'defaultStatus': 'affected'}] -
Initial Analysis by [email protected]
Apr. 28, 2026
Action Type Old Value New Value Added CWE CWE-125 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.21 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 6.19.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.131 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.80 Added Reference Type kernel.org: https://git.kernel.org/stable/c/35f7914e54fe7f13654c22ee045b05e4b6d8062b Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/3a696e84a8b1fafdd774bb30d62919faf844d9e4 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/4b9ce671960627b2505b3f64742544ae9801df97 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/4c759446046500a1a6785b25725725c3ff087ace Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/656f35b463995bee024d948440128230aacd81e1 Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 27, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 22, 2026
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: perf: Make sure to use pmu_ctx->pmu for groups Oliver reported that x86_pmu_del() ended up doing an out-of-bound memory access when group_sched_in() fails and needs to roll back. This *should* be handled by the transaction callbacks, but he found that when the group leader is a software event, the transaction handlers of the wrong PMU are used. Despite the move_group case in perf_event_open() and group_sched_in() using pmu_ctx->pmu. Turns out, inherit uses event->pmu to clone the events, effectively undoing the move_group case for all inherited contexts. Fix this by also making inherit use pmu_ctx->pmu, ensuring all inherited counters end up in the same pmu context. Similarly, __perf_event_read() should use equally use pmu_ctx->pmu for the group case. Added Reference https://git.kernel.org/stable/c/35f7914e54fe7f13654c22ee045b05e4b6d8062b Added Reference https://git.kernel.org/stable/c/3a696e84a8b1fafdd774bb30d62919faf844d9e4 Added Reference https://git.kernel.org/stable/c/4b9ce671960627b2505b3f64742544ae9801df97 Added Reference https://git.kernel.org/stable/c/4c759446046500a1a6785b25725725c3ff087ace Added Reference https://git.kernel.org/stable/c/656f35b463995bee024d948440128230aacd81e1