perf/amd/ibs: Avoid calling perf_allow_kernel() from the IBS NMI handler
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 |
|
|
6.18.337.0.107.1In the Linux kernel, the following vulnerability has been resolved:
perf/amd/ibs: Avoid calling perf_allow_kernel() from the IBS NMI handler
Calling perf_allow_kernel() from the NMI context is unsafe and could be fatal. Capture the permission at event-initialization time by storing it in event->hw.flags, and have the NMI handler rely on that cached flag instead of making the call directly.
From the CVE record · Linux
The Linux kernel's AMD IBS perf NMI handler calls perf_allow_kernel() in a context where that call is unsafe and could be fatal. The input does not specify how an attacker could trigger this condition or whether authentication, local access, or user interaction is required.
Engineers running Linux kernels with AMD IBS perf support should check their exposure; affected versions are not specified.