CVE-2024-42140: riscv: kexec: Avoid deadlock in kexec crash path
Vulnerability summary
CVE-2024-42140 is a medium (CVSS 5.5) Improper Locking vulnerability in linux. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 9.7% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 19 · Related 16Timeline
- 30-07-2024PublishedVulnerability first disclosed.
- 23-05-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.20%
Chance of exploitation in the next 30 days
Percentile
10%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.20% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu117 products
- linux< 5.15.0-121.131 | < 6.8.0-48.48
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 5.15.0-1069.75 | < 6.8.0-1018.20
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 12f237200c169a8667cf9dca7a40df8d7917b9fd, < bb80a7911218bbab2a69b5db7d2545643ab0073d | ≥ b17d19a5314a37f7197afd1a0200affd21a7227d, < 653deee48a4682ea17a05b96fb6842795ab5943c | ≥ b17d19a5314a37f7197afd1a0200affd21a7227d, < 7692c9b6baacdee378435f58f19baf0eb69e4155 | ≥ b17d19a5314a37f7197afd1a0200affd21a7227d, < 484dd545271d02d1571e1c6b62ea7df9dbe5e692 | ≥ b17d19a5314a37f7197afd1a0200affd21a7227d, < c562ba719df570c986caf0941fea2449150bcbc4 | 7594956fec8902dfc18150bf1dca0940cd4ad025 | ≥ 5.15.82, < 5.15.163 | ≥ 6.0.12, < 6.1 | 6.1
- linux_kernel≥ 5.15.82, < 5.15.163 | ≥ 6.0.12, < 6.1.98 | ≥ 6.2, < 6.6.39 | ≥ 6.7, < 6.9.9
Debian1 product
- linux< 6.1.98-1 | < 6.9.9-1
3 vendors · 120 products