{"id":"CVE-2024-42140","aliases":["CVE-2024-42140"],"related":[],"kind":"vulnerability","state":"published","title":"riscv: kexec: Avoid deadlock in kexec crash path","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: riscv: kexec: evitar interbloqueo en la ruta de bloqueo de kexec Si se llama al código de bloqueo de kexec en el contexto de interrupción, la función machine_kexec_mask_interrupts() activará un interbloqueo al intentar adquirir el spinlock irqdesc y luego desactive irqchip en la función irq_set_irqchip_state(). A diferencia de arm64, riscv solo requiere que el controlador irq_eoi complete la EOI y mantener irq_set_irqchip_state() solo dejará este posible punto muerto sin ningún uso. Así que simplemente lo eliminamos.","source":"nvd"}],"published":"2024-07-30T07:46:34.260Z","modified":"2026-06-17T07:48:54.967Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-667"],"affected":[{"ranges":[{"type":"git","introduced":"12f237200c169a8667cf9dca7a40df8d7917b9fd","fixed":"bb80a7911218bbab2a69b5db7d2545643ab0073d","status":"affected"},{"type":"git","introduced":"b17d19a5314a37f7197afd1a0200affd21a7227d","fixed":"653deee48a4682ea17a05b96fb6842795ab5943c","status":"affected"},{"type":"git","introduced":"b17d19a5314a37f7197afd1a0200affd21a7227d","fixed":"7692c9b6baacdee378435f58f19baf0eb69e4155","status":"affected"},{"type":"git","introduced":"b17d19a5314a37f7197afd1a0200affd21a7227d","fixed":"484dd545271d02d1571e1c6b62ea7df9dbe5e692","status":"affected"},{"type":"git","introduced":"b17d19a5314a37f7197afd1a0200affd21a7227d","fixed":"c562ba719df570c986caf0941fea2449150bcbc4","status":"affected"},{"type":"git","version":"7594956fec8902dfc18150bf1dca0940cd4ad025","status":"affected"},{"type":"semver","introduced":"5.15.82","fixed":"5.15.163","status":"affected"},{"type":"semver","introduced":"6.0.12","fixed":"6.1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.1","status":"unaffected"},{"type":"semver","introduced":"5.15.163","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.98","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.39","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.9.9","lastAffected":"6.9.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.10","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15.82","fixed":"5.15.163"},{"status":"affected","introduced":"6.0.12","fixed":"6.1.98"},{"status":"affected","introduced":"6.2","fixed":"6.6.39"},{"status":"affected","introduced":"6.7","fixed":"6.9.9"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bb80a7911218bbab2a69b5db7d2545643ab0073d","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/653deee48a4682ea17a05b96fb6842795ab5943c","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7692c9b6baacdee378435f58f19baf0eb69e4155","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/484dd545271d02d1571e1c6b62ea7df9dbe5e692","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c562ba719df570c986caf0941fea2449150bcbc4","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:15:56.730Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-42140","url":"https://www.cve.org/CVERecord?id=CVE-2024-42140","licence":"CVE Terms of Use","modified":"2026-05-23T15:52:21.966Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-42140","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42140","licence":"Public domain","modified":"2026-06-17T07:48:54.967Z"}],"updatedAt":"2026-11-25T22:58:43.414Z","epss":{"score":0.00199,"percentile":0.10235,"date":"2026-12-01T12:00:22.000Z"}}