{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-42140","id":"CVE-2024-42140","title":"riscv: kexec: Avoid deadlock in kexec crash path","description":"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","descriptionLong":"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.","published":"2024-07-30T07:46:34.260Z","updated":"2026-11-17T07:02:59.311840159Z","reserved":"2024-07-29T15:50:41.189Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"12f237200c169a8667cf9dca7a40df8d7917b9fd","lessThan":"bb80a7911218bbab2a69b5db7d2545643ab0073d","status":"affected","versionType":"git"},{"version":"b17d19a5314a37f7197afd1a0200affd21a7227d","lessThan":"653deee48a4682ea17a05b96fb6842795ab5943c","status":"affected","versionType":"git"},{"version":"b17d19a5314a37f7197afd1a0200affd21a7227d","lessThan":"7692c9b6baacdee378435f58f19baf0eb69e4155","status":"affected","versionType":"git"},{"version":"b17d19a5314a37f7197afd1a0200affd21a7227d","lessThan":"484dd545271d02d1571e1c6b62ea7df9dbe5e692","status":"affected","versionType":"git"},{"version":"b17d19a5314a37f7197afd1a0200affd21a7227d","lessThan":"c562ba719df570c986caf0941fea2449150bcbc4","status":"affected","versionType":"git"},{"version":"7594956fec8902dfc18150bf1dca0940cd4ad025","status":"affected","versionType":"git"},{"version":"5.15.82","lessThan":"5.15.163","status":"affected","versionType":"semver"},{"version":"6.0.12","lessThan":"6.1","status":"affected","versionType":"semver"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.1","status":"affected"},{"version":"0","lessThan":"6.1","status":"unaffected","versionType":"semver"},{"version":"5.15.163","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.98","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.39","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.9.9","lessThanOrEqual":"6.9.*","status":"unaffected","versionType":"semver"},{"version":"6.10","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-667"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/bb80a7911218bbab2a69b5db7d2545643ab0073d","tags":["x_transferred","Mailing List","Patch","web"]},{"url":"https://git.kernel.org/stable/c/653deee48a4682ea17a05b96fb6842795ab5943c","tags":["x_transferred","Mailing List","Patch","web"]},{"url":"https://git.kernel.org/stable/c/7692c9b6baacdee378435f58f19baf0eb69e4155","tags":["x_transferred","Mailing List","Patch","web"]},{"url":"https://git.kernel.org/stable/c/484dd545271d02d1571e1c6b62ea7df9dbe5e692","tags":["x_transferred","Mailing List","Patch","web"]},{"url":"https://git.kernel.org/stable/c/c562ba719df570c986caf0941fea2449150bcbc4","tags":["x_transferred","Mailing List","Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42140.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42140","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00199,"epssPercentile":0.09833,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-42140","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42140","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-42140","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-42140","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}