CVE-2024-42140

riscv: kexec: Avoid deadlock in kexec crash path

MEDIUM
5.5
CVSS Score
Published: July 30, 2024 at 07:46 AM UTC
Updated: June 17, 2026 at 07:48 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.0.125.15.82 ≤ v < 5.15.1636.0.12 ≤ v < 6.16.0.12 ≤ v < 6.1.986.1 ≤ v < 6.1.986.1 ≤ v < 6.106.1 ≤ v < 6.6.396.1 ≤ v < 6.9.96.2 ≤ v < 6.6.396.7 ≤ v < 6.9.912f237200c169a8667cf9dca7a40df8d7917b9fd5.15.826.0.126.17594956fec8902dfc18150bf1dca0940cd4ad025b17d19a5314a37f7197afd1a0200affd21a7227d
Vendor states this is fixed in 484dd545271d02d1571e1c6b62ea7df9dbe5e692 (fixed)
Vendor states this is fixed in 653deee48a4682ea17a05b96fb6842795ab5943c (fixed)
Vendor states this is fixed in 7692c9b6baacdee378435f58f19baf0eb69e4155 (fixed)
Vendor states this is fixed in bb80a7911218bbab2a69b5db7d2545643ab0073d (fixed)
Vendor states this is fixed in c562ba719df570c986caf0941fea2449150bcbc4 (fixed)
Vendor states this is fixed in 5.15.163 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)
Vendor states this is fixed in 6.1.98 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.39 (unaffected)
Vendor states this is fixed in 6.9.9 (unaffected)

References (6)

Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/484dd545271d02d1571e1c6b62ea7df9dbe5e692
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/653deee48a4682ea17a05b96fb6842795ab5943c
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7692c9b6baacdee378435f58f19baf0eb69e4155
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bb80a7911218bbab2a69b5db7d2545643ab0073d
Mailing ListPatch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c562ba719df570c986caf0941fea2449150bcbc4
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-667

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card