7.8high
gpio: davinci: Validate the obtained number of IRQs
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from eb3744a2dd01cb07ce9f556d56d6fe451f0c313a before a8d78984fdc105bc1a38b73e98d32b1bc4222684, from eb3744a2dd01cb07ce9f556d56d6fe451f0c313a before cd75721984337c38a12aeca33ba301d31ca4b3fd, from eb3744a2dd01cb07ce9f556d56d6fe451f0c313a before e44a83bf15c4db053ac6dfe96a23af184c9136d9, from eb3744a2dd01cb07ce9f556d56d6fe451f0c313a before 70b48899f3f23f98a52c5b1060aefbdc7ba7957b, from eb3744a2dd01cb07ce9f556d56d6fe451f0c313a before 89d7008af4945808677662a630643b5ea89c6e8d, from eb3744a2dd01cb07ce9f556d56d6fe451f0c313a before 2d83492259ad746b655f196cd5d1be4b3d0a3782, from eb3744a2dd01cb07ce9f556d56d6fe451f0c313a before c542e51306d5f1eba3af84daa005826223382470, from eb3744a2dd01cb07ce9f556d56d6fe451f0c313a before 7aa9b96e9a73e4ec1771492d0527bd5fc5ef9164 and 1 more Not affected: before 4.19, from 4.19.317 up to 4.19.*, from 5.4.279 up to 5.4.*, from 5.10.221 up to 5.10.*, from 5.15.162 up to 5.15.*, from 6.1.97 up to 6.1.* | CVE List |
| linux linux_kernel | from 4.19 before 4.19.317, from 4.20 before 5.4.279, from 5.5 before 5.10.221, from 5.11 before 5.15.162, from 5.16 before 6.1.97, from 6.2 before 6.6.37, from 6.7 before 6.9.8, 6.10 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux se ha resuelto la siguiente vulnerabilidad: gpio: davinci: valida el número de IRQ obtenidos. El valor de pdata->gpio_unbanked se toma del árbol de dispositivos. En caso de DT roto debido a algún error, este valor puede ser cualquiera. Sin esta validación de valor, puede haber acceso sin chips->irqs a los límites de la matriz en davinci_gpio_probe(). Valide el valor nirq obtenido para que no exceda el número máximo de IRQ por banco. Encontrado por el Centro de verificación de Linux (linuxtesting.org) con SVACE.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-42092 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2024-42092 changed 2026-06-17 | Public domain |