5.5medium
riscv: kexec: Avoid deadlock in kexec crash path
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: riscv: kexec: Avoid deadlock in kexec crash path If the kexec crash code is called in the interrupt context, the machine_kexec_mask_interrupts() function will trigger a deadlock while trying to acquire the irqdesc spinlock and then deactivate irqchip in irq_set_irqchip_state() function. Unlike arm64, riscv only requires irq_eoi handler to complete EOI and keeping irq_set_irqchip_state() will only leave this possible deadlock without any use. So we simply remove it.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 12f237200c169a8667cf9dca7a40df8d7917b9fd before bb80a7911218bbab2a69b5db7d2545643ab0073d, from b17d19a5314a37f7197afd1a0200affd21a7227d before 653deee48a4682ea17a05b96fb6842795ab5943c, from b17d19a5314a37f7197afd1a0200affd21a7227d before 7692c9b6baacdee378435f58f19baf0eb69e4155, from b17d19a5314a37f7197afd1a0200affd21a7227d before 484dd545271d02d1571e1c6b62ea7df9dbe5e692, from b17d19a5314a37f7197afd1a0200affd21a7227d before c562ba719df570c986caf0941fea2449150bcbc4, 7594956fec8902dfc18150bf1dca0940cd4ad025, from 5.15.82 before 5.15.163, from 6.0.12 before 6.1 and 1 more Not affected: before 6.1, from 5.15.163 up to 5.15.*, from 6.1.98 up to 6.1.*, from 6.6.39 up to 6.6.*, from 6.9.9 up to 6.9.*, from 6.10 up to * | CVE List |
| linux linux_kernel | from 5.15.82 before 5.15.163, from 6.0.12 before 6.1.98, from 6.2 before 6.6.39, from 6.7 before 6.9.9 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: riscv: kexec: Avoid deadlock in kexec crash path If the kexec crash code is called in the interrupt context, the machine_kexec_mask_interrupts() function will trigger a deadlock while trying to acquire the irqdesc spinlock and then deactivate irqchip in irq_set_irqchip_state() function. Unlike arm64, riscv only requires irq_eoi handler to complete EOI and keeping irq_set_irqchip_state() will only leave this possible deadlock without any use. So we simply remove it.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: riscv: kexec: evitar interbloqueo en la ruta de bloqueo de kexec Si se llama al código de bloqueo de kexec en el contexto de interrupción, la función machine_kexec_mask_interrupts() activará un interbloqueo al intentar adquirir el spinlock irqdesc y luego desactive irqchip en la función irq_set_irqchip_state(). A diferencia de arm64, riscv solo requiere que el controlador irq_eoi complete la EOI y mantener irq_set_irqchip_state() solo dejará este posible punto muerto sin ningún uso. Así que simplemente lo eliminamos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-42140 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2024-42140 changed 2026-06-17 | Public domain |