{"id":"CVE-2026-31528","aliases":["CVE-2026-31528"],"related":[],"kind":"vulnerability","state":"published","title":"perf: Make sure to use pmu_ctx->pmu for groups","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf: Make sure to use pmu_ctx->pmu for groups\n\nOliver reported that x86_pmu_del() ended up doing an out-of-bound memory access\nwhen group_sched_in() fails and needs to roll back.\n\nThis *should* be handled by the transaction callbacks, but he found that when\nthe group leader is a software event, the transaction handlers of the wrong PMU\nare used. Despite the move_group case in perf_event_open() and group_sched_in()\nusing pmu_ctx->pmu.\n\nTurns out, inherit uses event->pmu to clone the events, effectively undoing the\nmove_group case for all inherited contexts. Fix this by also making inherit use\npmu_ctx->pmu, ensuring all inherited counters end up in the same pmu context.\n\nSimilarly, __perf_event_read() should use equally use pmu_ctx->pmu for the\ngroup case.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nperf: Make sure to use pmu_ctx->pmu for groups\n\nOliver reported that x86_pmu_del() ended up doing an out-of-bound memory access\nwhen group_sched_in() fails and needs to roll back.\n\nThis *should* be handled by the transaction callbacks, but he found that when\nthe group leader is a software event, the transaction handlers of the wrong PMU\nare used. Despite the move_group case in perf_event_open() and group_sched_in()\nusing pmu_ctx->pmu.\n\nTurns out, inherit uses event->pmu to clone the events, effectively undoing the\nmove_group case for all inherited contexts. Fix this by also making inherit use\npmu_ctx->pmu, ensuring all inherited counters end up in the same pmu context.\n\nSimilarly, __perf_event_read() should use equally use pmu_ctx->pmu for the\ngroup case.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nperf: Asegurarse de usar pmu_ctx  ->  pmu para grupos\n\nOliver informó que x86_pmu_del() terminó realizando un acceso a memoria fuera de límites cuando group_sched_in() falla y necesita revertir.\n\nEsto 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.\n\nResulta 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.\n\nDe manera similar, __perf_event_read() debería usar igualmente pmu_ctx  ->  pmu para el caso de grupo.","source":"nvd"}],"published":"2026-04-22T13:54:41.180Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-125","CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"bd27568117664b8b3e259721393df420ed51f57b","fixed":"656f35b463995bee024d948440128230aacd81e1","status":"affected"},{"type":"git","introduced":"bd27568117664b8b3e259721393df420ed51f57b","fixed":"3a696e84a8b1fafdd774bb30d62919faf844d9e4","status":"affected"},{"type":"git","introduced":"bd27568117664b8b3e259721393df420ed51f57b","fixed":"35f7914e54fe7f13654c22ee045b05e4b6d8062b","status":"affected"},{"type":"git","introduced":"bd27568117664b8b3e259721393df420ed51f57b","fixed":"4c759446046500a1a6785b25725725c3ff087ace","status":"affected"},{"type":"git","introduced":"bd27568117664b8b3e259721393df420ed51f57b","fixed":"4b9ce671960627b2505b3f64742544ae9801df97","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.2","status":"unaffected"},{"type":"semver","introduced":"6.6.131","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.80","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.2","fixed":"6.6.131"},{"status":"affected","introduced":"6.7","fixed":"6.12.80"},{"status":"affected","introduced":"6.13","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/656f35b463995bee024d948440128230aacd81e1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a696e84a8b1fafdd774bb30d62919faf844d9e4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/35f7914e54fe7f13654c22ee045b05e4b6d8062b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4c759446046500a1a6785b25725725c3ff087ace","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4b9ce671960627b2505b3f64742544ae9801df97","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-16T15:10:38.614Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31528","url":"https://www.cve.org/CVERecord?id=CVE-2026-31528","licence":"CVE Terms of Use","modified":"2026-10-19T18:45:55.081Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31528","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31528","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.313Z","epss":{"score":0.00134,"percentile":0.03125,"date":"2026-12-01T12:00:22.000Z"}}