irqchip/irq-riscv-imsic-early: Fix fwnode leak on state setup failure
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/irq-riscv-imsic-early: Fix fwnode leak on state setup failure
imsic_early_acpi_init() allocates a firmware node before setting up the IMSIC state. If imsic_setup_state() fails, the function returns without freeing the allocated fwnode.
Free the fwnode and clear the global pointer on this error path, matching the cleanup already done when imsic_early_probe() fails.
[ tglx: Use a common cleanup path instead of copying code around ]
From the CVE record · Linux
The Linux kernel's RISC-V IMSIC early ACPI initialization can leak a firmware node if IMSIC state setup fails. The input does not describe an attacker action or specify whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with RISC-V IMSIC support should check their deployments; affected versions are not specified.