CVE-2026-143260: perf/amd/ibs: Fix kernel address leak via REGS_USER and REGS_INTR
In the Linux kernel, the following vulnerability has been resolved:
perf/amd/ibs: Fix kernel address leak via REGSUSER and REGSINTR
IBS hardware captures a sample and raises an NMI. Since the NMI can be delivered with a delay, a privilege change may occur between sample capture and NMI delivery. Because IBS only provides the sample RIP, the kernel records GPRs from the NMI ptregs, which may reflect kernel mode if a privilege switch occurred in the interim. This can leak kernel addresses to unprivileged users through PERFSAMPLEREGSUSER and/or PERFSAMPLEREGSINTR.
Fix this by using interrupt regs while preparing PERFSAMPLEREGSUSER and PERFSAMPLEREGSINTR. With the change, when IBS samples a user mode instruction but the NMI is delivered in kernel mode, PERFSAMPLEREGSUSER will source its register state from taskptregs(current) and PERFSAMPLEREGSINTR will be omitted from the data sent to userspace.
In addition to fixing the kernel address leak, this change also ensures GPR snapshot consistency, which resolves the DWARF unwinding issue with IBS.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this information leak?
Systems using the Linux kernel on AMD processors with IBS sampling, where unprivileged users can access perf events that request PERF_SAMPLE_REGS_USER or PERF_SAMPLE_REGS_INTR, are exposed. The leak occurs when IBS captures a user-mode sample but its NMI is delivered after execution has transitioned into kernel mode.
What does an attacker need to do to exploit the issue?
An attacker needs to collect AMD IBS perf samples and request user or interrupt register snapshots through PERF_SAMPLE_REGS_USER and/or PERF_SAMPLE_REGS_INTR. The vulnerable timing condition requires a privilege transition between hardware sample capture and delayed NMI delivery.
What changes after applying the fix?
For a user-mode IBS sample whose NMI arrives in kernel mode, PERF_SAMPLE_REGS_USER uses register state from task_pt_regs(current). PERF_SAMPLE_REGS_INTR is omitted from data returned to userspace in that situation, preventing kernel-mode register contents from being exposed.