CVE-2024-42140: riscv: kexec: Avoid deadlock in kexec crash path

Published Jul 30, 2024
·
Updated

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.

Affected Software

8 affected componentsFixes available
Linux Linux kernel>=5.15.82<5.15.163
Linux Linux kernel>=6.0.12<6.1.98
Linux Linux kernel>=6.2<6.6.39
Linux Linux kernel>=6.7<6.9.9
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1
debian/linux-6.1
6.1.129-1~deb11u1
Microsoft azl3 kernel 6.6.35.1-5
Microsoft azl3 kernel 6.6.47.1-1

Event History

Jul 30, 2024
CVE Published
via MITRE·07:46 AM
Data Sourced
via MITRE·07:46 AM
Description
Data Sourced
via NVD·08:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 11, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
May 5, 2025
Data Sourced
via Ubuntu·12:35 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-42140?

CVE-2024-42140 is considered a high severity vulnerability due to the potential for deadlock during kexec crash operations.

2

How do I fix CVE-2024-42140?

To fix CVE-2024-42140, update your Linux kernel to at least version 5.10.223-1, 5.10.226-1, 6.1.123-1, or later versions that have addressed the issue.

3

What systems are affected by CVE-2024-42140?

CVE-2024-42140 affects various versions of the Linux kernel, specifically those between versions 5.15.82 and 5.15.163 or 6.0.12 and 6.1.98.

4

What is the impact of CVE-2024-42140?

The impact of CVE-2024-42140 includes potential system unresponsive behavior due to deadlock in the kexec crash handling process.

5

When was CVE-2024-42140 disclosed?

CVE-2024-42140 was disclosed as part of the Linux kernel vulnerability announcements in 2024.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203