CVE-2026-64214
Gravedad:
Pendiente de análisis
Tipo:
No Disponible / Otro tipo
Fecha de publicación:
24/07/2026
Última modificación:
24/07/2026
Descripción
*** Pendiente de traducción *** In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
powerpc/time: Remove redundant preempt_disable|enable() calls from arch_irq_work_raise()<br />
<br />
A kernel panic is observed when handling machine check exceptions from<br />
real mode.<br />
<br />
BUG: Unable to handle kernel data access on read at 0xc00000006be21300<br />
Oops: Kernel access of bad area, sig: 11 [#1]<br />
MSR: 8000000000001003 CR: 88222248 XER: 00000005<br />
CFAR: c00000000003ffc4 DAR: c00000006be21300 DSISR: 40000000 IRQMASK: 0<br />
NIP [c000000000029e40] arch_irq_work_raise+0x10/0x70<br />
LR [c00000000003ffc8] machine_check_queue_event+0xa8/0x150<br />
Call Trace:<br />
[c0000000179d3c70] [c00000000003ff64] machine_check_queue_event+0x44/0x150<br />
[c0000000179d3d30] [c0000000000084e0] machine_check_early_common+0x1f0/0x2c0<br />
<br />
The crash occurs because arch_irq_work_raise() calls preempt_disable()<br />
from machine check exception (MCE) handlers running in real mode. In<br />
this context, accessing the preempt_count can fault, leading to the panic.<br />
<br />
The preempt_disable()/preempt_enable() pair in arch_irq_work_raise()<br />
was originally added by commit 0fe1ac48bef0 ("powerpc/perf_event: Fix<br />
oops due to perf_event_do_pending call") to avoid races while raising<br />
irq work from exception context.<br />
<br />
Later, commit 471ba0e686cb ("irq_work: Do not raise an IPI when<br />
queueing work on the local CPU") added preemption protection in<br />
irq_work_queue() path, while commit 20b876918c06 ("irq_work: Use per<br />
cpu atomics instead of regular atomics") added equivalent<br />
protection in irq_work_queue_on() before reaching arch_irq_work_raise():<br />
<br />
irq_work_queue() / irq_work_queue_on()<br />
-> preempt_disable()<br />
-> __irq_work_queue_local()<br />
-> irq_work_raise()<br />
-> arch_irq_work_raise()<br />
<br />
As a result, callers other than mce_irq_work_raise() already execute<br />
with preemption disabled, making the additional<br />
preempt_disable()/preempt_enable() pair in arch_irq_work_raise()<br />
redundant.<br />
<br />
The arch_irq_work_raise() function executes in NMI context when called<br />
from MCE handler. Hence we will not be preempted or scheduled out since<br />
we are in NMI context with MSR[EE]=0. Therefore, it is safe to remove<br />
the preempt_disable()/preempt_enable() calls from here.<br />
<br />
Remove it to avoid accessing preempt_count from real mode context.<br />
<br />
[Maddy: Fixed the commit title]
Impacto
Referencias a soluciones, herramientas e información
- https://git.kernel.org/stable/c/31467b23823ffec1f6fff407f8e3ca9af8b7491a
- https://git.kernel.org/stable/c/51860e423592893cd7bfa7287d99a3aff4dc3a9d
- https://git.kernel.org/stable/c/6dcd072a5ae3aed336e4a67a7d4cc5205b240065
- https://git.kernel.org/stable/c/72d8d1c36452a4d3ee134b1da48de7518c1329f9
- https://git.kernel.org/stable/c/8079acc5ee5235a627e4586d4f42082a9000ea64
- https://git.kernel.org/stable/c/a09d07ac45e283c9861a9ceea06f56d0ba851d22



