Skip to main content
← All vulnerabilities
CVE-2024-42140

riscv: kexec: Avoid deadlock in kexec crash path

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.15.163, 6.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • Linux Linux

    From 5.15.82 · fixed in 5.15.163; From 6.0.12 · fixed in 6.1

  • Linux Linux

    6.1

References 5

git.kernel.org