VDB

CVE-2024-42140

CVE-2024-42140 PUBLISHED

riscv: kexec: Avoid deadlock in kexec crash path

Reported by linux · Published July 30, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.9.9, 6.6.39, 6.1.98, 5.15.163
LinuxLinuxc562ba719df570c986caf0941fea2449150bcbc4, bb80a7911218bbab2a69b5db7d2545643ab0073d, 7692c9b6baacdee378435f58f19baf0eb69e4155, 653deee48a4682ea17a05b96fb6842795ab5943c, 6.1, 484dd545271d02d1571e1c6b62ea7df9dbe5e692

Affected products

VendorProductVersions
LinuxLinux12f237200c169a8667cf9dca7a40df8d7917b9fd, b17d19a5314a37f7197afd1a0200affd21a7227d, b17d19a5314a37f7197afd1a0200affd21a7227d
LinuxLinux6.1, 0, 5.15.163
LinuxLinux6.0.12, 6.6.39, 6.9.9
linuxlinux_kernel6.1, 6.0.12, 6.1

Timeline

  • Jul 29, 2024 CVE Published
  • Jul 30, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (6 in total, the first dated here)
  • Jan 6, 2026 Security Advisory (349 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (231 in total, the first dated here)
  • Jun 17, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-42140
vulnetix vdb fixes CVE-2024-42140

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-42140/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›