CVE-2024-42140

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-42140
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42140.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-42140
Downstream
Related
Published
2024-07-30T07:46:34.260Z
Modified
2025-11-28T02:34:07.435647Z
Summary
riscv: kexec: Avoid deadlock in kexec crash path
Details

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 machinekexecmaskinterrupts() function will trigger a deadlock while trying to acquire the irqdesc spinlock and then deactivate irqchip in irqsetirqchipstate() function.

Unlike arm64, riscv only requires irqeoi handler to complete EOI and keeping irqsetirqchipstate() will only leave this possible deadlock without any use. So we simply remove it.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42140.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
12f237200c169a8667cf9dca7a40df8d7917b9fd
Fixed
bb80a7911218bbab2a69b5db7d2545643ab0073d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b17d19a5314a37f7197afd1a0200affd21a7227d
Fixed
653deee48a4682ea17a05b96fb6842795ab5943c
Fixed
7692c9b6baacdee378435f58f19baf0eb69e4155
Fixed
484dd545271d02d1571e1c6b62ea7df9dbe5e692
Fixed
c562ba719df570c986caf0941fea2449150bcbc4
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
7594956fec8902dfc18150bf1dca0940cd4ad025

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.15.163
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.98
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.6.39
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.9.9