{"id":"CVE-2024-42140","summary":"riscv: kexec: Avoid deadlock in kexec crash path","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: kexec: Avoid deadlock in kexec crash path\n\nIf the kexec crash code is called in the interrupt context, the\nmachine_kexec_mask_interrupts() function will trigger a deadlock while\ntrying to acquire the irqdesc spinlock and then deactivate irqchip in\nirq_set_irqchip_state() function.\n\nUnlike arm64, riscv only requires irq_eoi handler to complete EOI and\nkeeping irq_set_irqchip_state() will only leave this possible deadlock\nwithout any use. So we simply remove it.","modified":"2026-03-20T12:37:39.641334Z","published":"2024-07-30T07:46:34.260Z","related":["MGASA-2024-0277","MGASA-2024-0278"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42140.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/484dd545271d02d1571e1c6b62ea7df9dbe5e692"},{"type":"WEB","url":"https://git.kernel.org/stable/c/653deee48a4682ea17a05b96fb6842795ab5943c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7692c9b6baacdee378435f58f19baf0eb69e4155"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bb80a7911218bbab2a69b5db7d2545643ab0073d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c562ba719df570c986caf0941fea2449150bcbc4"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42140.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42140"},{"type":"PACKAGE","url":"https://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"},{"last_affected":"7594956fec8902dfc18150bf1dca0940cd4ad025"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-42140.json"}}],"schema_version":"1.7.5"}