irqchip/mchp-eic: Fix error code in mchp_eic_domain_alloc()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 00fa3461c86dd289b441d4d5a6bb236064bd207b · < 7dbc0d40d8347bd9de55c904f59ea44bcc8dedb7| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
irqchip/mchp-eic: Fix error code in mchp_eic_domain_alloc()
If irq_domain_translate_twocell() sets "hwirq" to >= MCHP_EIC_NIRQ (2) then it results in an out of bounds access.
The code checks for invalid values, but doesn't set the error code. Return -EINVAL in that case, instead of returning success.
From the CVE record · Linux
The Linux kernel's mchp-eic interrupt controller code can access memory out of bounds when irq_domain_translate_twocell() sets hwirq to 2 or higher. The input does not specify how an attacker could trigger this condition or whether access, authentication, or user interaction is required.
Engineers running the Linux kernel should check whether their builds include the affected mchp-eic code; affected versions are not specified.