5.5medium
gpio: omap: do not register driver in probe()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.10% (higher than 0% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: gpio: omap: do not register driver in probe() Commit 11a78b794496 ("ARM: OMAP: MPUIO wake updates") registers the omap_mpuio_driver from omap_mpuio_init(), which is called from omap_gpio_probe(). However, it neither makes sense to register drivers from probe() callbacks of other drivers, nor does the driver core allow registering drivers with a device lock already being held. The latter was revealed by commit dc23806a7c47 ("driver core: enforce device_lock for driver_match_device()") leading to a potential deadlock condition described in [1]. Additionally, the omap_mpuio_driver is never unregistered from the driver core, even if the module is unloaded. Hence, register the omap_mpuio_driver from the module initcall and unregister it in module_exit().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 11a78b7944963a8b052be46108d07a3ced9e2762 before 57bcd3feffa79544c73a1a1872472389a391cc79, from 11a78b7944963a8b052be46108d07a3ced9e2762 before 86588916e1887a5edb8a9161cd7ae81e47a7ed25, from 11a78b7944963a8b052be46108d07a3ced9e2762 before a29215961d833f4de33a09c3964d31ebc6083033, from 11a78b7944963a8b052be46108d07a3ced9e2762 before 1c04c3a4de8d4bcb9202f94c44f26c57c2572308, from adc1796eced46b48e23ec200a219d635f33a38ee before 673dafb9a86349a12a93151fd467625614dc7e12, from 11a78b7944963a8b052be46108d07a3ced9e2762 before 2211d77892913804d16c28c7415b82804ab1e54c, from cd0e0a76e40c2e77bcfc88291d00dca22b00158e before a7fa9460b86f810913b6779461d0448e7c11214c, from 11a78b7944963a8b052be46108d07a3ced9e2762 before 32f08c3ddd6dda6cbb6c9d715de10f21dccde50f and 8 more Not affected: before 2.6.22, from 5.10.251 up to 5.10.*, from 5.15.201 up to 5.15.*, from 6.1.164 up to 6.1.*, from 6.6.125 up to 6.6.*, from 6.6.126 up to 6.6.* | CVE List |
| linux linux_kernel | from 2.6.22 before 5.10.251, from 5.11 before 5.15.201, from 5.16 before 6.1.164, from 6.2 before 6.6.125, from 6.7 before 6.12.72, from 6.13 before 6.18.11, 6.19 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: gpio: omap: do not register driver in probe() Commit 11a78b794496 ("ARM: OMAP: MPUIO wake updates") registers the omap_mpuio_driver from omap_mpuio_init(), which is called from omap_gpio_probe(). However, it neither makes sense to register drivers from probe() callbacks of other drivers, nor does the driver core allow registering drivers with a device lock already being held. The latter was revealed by commit dc23806a7c47 ("driver core: enforce device_lock for driver_match_device()") leading to a potential deadlock condition described in [1]. Additionally, the omap_mpuio_driver is never unregistered from the driver core, even if the module is unloaded. Hence, register the omap_mpuio_driver from the module initcall and unregister it in module_exit().
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: gpio: omap: no registrar controlador en probe() El commit 11a78b794496 (’ARM: OMAP: actualizaciones de activación de MPUIO’) registra el omap_mpuio_driver desde omap_mpuio_init(), que es llamado desde omap_gpio_probe(). Sin embargo, ni tiene sentido registrar controladores desde las retrollamadas de probe() de otros controladores, ni el núcleo del controlador permite registrar controladores con un bloqueo de dispositivo ya mantenido. Esto último fue revelado por el commit dc23806a7c47 (’núcleo del controlador: forzar device_lock para driver_match_device()’) lo que lleva a una posible condición de interbloqueo descrita en [1]. Además, el omap_mpuio_driver nunca es dado de baja del núcleo del controlador, incluso si el módulo es descargado. Por lo tanto, registrar el omap_mpuio_driver desde la llamada de inicialización del módulo y darlo de baja en module_exit().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-31687 changed 2026-05-23 | CVE Terms of Use |
| NVD | CVE-2026-31687 changed 2026-11-11 | Public domain |