irqchip/riscv-aplic: Prevent crash when MSI domain is missing
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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 missing, which causes a NULL pointer dereference in msi_create_device_irq_domain().
Avoid this by deferring probe until the parent MSI domain is available. Use dev_err_probe() to avoid printing an error message when returning -EPROBE_DEFER.
From the CVE record · Linux
The Linux kernel’s RISC-V APLIC driver can dereference a NULL pointer if it is probed before the IMSIC driver, leaving the parent MSI domain unavailable. This can cause a crash; the input does not specify an attacker path, authentication requirement, or user interaction.
Operators running Linux kernels with the RISC-V APLIC driver should check their kernel; affected versions were not provided.