gpio: davinci: Validate the obtained number of IRQs
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ eb3744a2dd01cb07ce9f556d56d6fe451f0c313a · < 2d83492259ad746b655f196cd5d1be4b3d0a3782| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
gpio: davinci: Validate the obtained number of IRQs
Value of pdata->gpio_unbanked is taken from Device Tree. In case of broken DT due to any error this value can be any. Without this value validation there can be out of chips->irqs array boundaries access in davinci_gpio_probe().
Validate the obtained nirq value so that it won't exceed the maximum number of IRQs per bank.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
From the CVE record · Linux
The davinci GPIO driver did not validate an IRQ count taken from the Device Tree. A malformed Device Tree can cause an out-of-bounds access to the IRQ array during driver probing. The input does not establish whether an attacker can control the Device Tree or whether authentication or user interaction is required.
Engineers running the Linux kernel with the davinci GPIO driver should check their systems; affected versions are not specified.