Bug 2301505 (CVE-2024-42140) - CVE-2024-42140 kernel: riscv: kexec: Avoid deadlock in kexec crash path
Summary: CVE-2024-42140 kernel: riscv: kexec: Avoid deadlock in kexec crash path
Keywords:
Status: NEW
Alias: CVE-2024-42140
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2302000
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-30 08:37 UTC by OSIDB Bzimport
Modified: 2024-09-06 14:35 UTC (History)
4 users (show)

Fixed In Version: kernel 5.15.163, kernel 6.1.98, kernel 6.6.39, kernel 6.9.9, kernel 6.10
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-30 08:37:33 UTC
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.

Comment 1 Mauro Matteo Cascella 2024-07-31 10:27:43 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024073030-CVE-2024-42140-65eb@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-31 10:28:05 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2302000]


Note You need to log in before you can comment on or make changes to this bug.