Critical NULL Pointer Dereference in Linux Kernel's APLIC Driver
Summary
DEBIAN-CVE-2024-56682: In the Linux kernel, the following vulnerability has been resolved: irqchip/riscv-aplic: Prevent crash when MSI domain is missing If the APLIC driver is probed before the IMSIC driver, the parent MSI domain will be missi... Affects linux versions < 6.12.3-1. Fixed in 6.12.3-1. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The Linux kernel is the core component of many operating systems, responsible for managing hardware resources and providing essential services to software applications. It is highly modular, allowing for various drivers to be loaded dynamically. The APLIC (Advanced Programmable Interrupt Controller) driver is designed to manage interrupt requests in RISC-V architecture. This vulnerability arises when the APLIC driver is loaded before the IMSIC (Interrupt Management System for Interrupt Controllers) driver, leading to a critical failure in the system.
Vulnerability Detail
In the Linux kernel, a vulnerability exists in the APLIC driver where a NULL pointer dereference occurs if the driver is probed before the IMSIC driver. This situation leads to a crash, as the parent MSI (Message Signaled Interrupt) domain is missing, causing the system to fail during operation. The vulnerability is identified as DEBIAN-CVE-2024-56682 and affects Debian versions 13 and 14. The issue can be exploited if the system is not properly configured, potentially leading to system instability and denial of service.
How To Fix
Minimum fixed version
6.12.3-1
This is the first release that contains the fix.
sudo apt-get install --only-upgrade linux
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
Currently, there are no specific workarounds mentioned for this vulnerability. However, ensuring that the IMSIC driver is loaded before the APLIC driver may help mitigate the issue until a proper fix is applied.
Conclusion
The vulnerability identified as DEBIAN-CVE-2024-56682 in the Linux kernel's APLIC driver poses a significant risk due to a NULL pointer dereference that can lead to system crashes. It is crucial to update to the patched version 6.12.3-1 to mitigate this risk. Users are encouraged to monitor their systems for vulnerabilities using tools like Vulert.
See every vulnerability recorded for linux →
FAQ
A NULL pointer dereference occurs when a program attempts to access memory at a location that has not been initialized, leading to a crash or unexpected behavior.
You can use tools like Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.
The consequences include potential system crashes and instability, which can lead to denial of service and affect the overall performance of the system.
Yes, this vulnerability specifically affects Debian versions 13 and 14 of the Linux kernel.
If you cannot update your system immediately, ensure that the IMSIC driver is loaded before the APLIC driver to minimize the risk of encountering this vulnerability.
References
Related vulnerabilities
Recent vulnerabilities recorded for linux.