7.1high
driver core: fix potential NULL pointer dereference in dev_uevent()
- Severity
- 7.1high CVSS:3.1 by Linux
- Exploit likelihood
- 0.21% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: driver core: fix potential NULL pointer dereference in dev_uevent() If userspace reads "uevent" device attribute at the same time as another threads unbinds the device from its driver, change to dev->driver from a valid pointer to NULL may result in crash. Fix this by using READ_ONCE() when fetching the pointer, and take bus' drivers klist lock to make sure driver instance will not disappear while we access it. Use WRITE_ONCE() when setting the driver pointer to ensure there is no tearing.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 16574dccd8f62dc1b585325f8a6a0aab10047ed8 before abe56be73eb10a677d16066f65ff9d30251f5eee, from 16574dccd8f62dc1b585325f8a6a0aab10047ed8 before 2b344e779d9afd0fcb5ee4000e4d0fc7d8d867eb, from 16574dccd8f62dc1b585325f8a6a0aab10047ed8 before 3781e4b83e174364998855de777e184cf0b62c40, from 16574dccd8f62dc1b585325f8a6a0aab10047ed8 before 18daa52418e7e4629ed1703b64777294209d2622, 2.6.22 Not affected: before 2.6.22, from 6.6.89 up to 6.6.*, from 6.12.26 up to 6.12.*, from 6.14.5 up to 6.14.*, from 6.15 up to * | CVE List |
| linux linux_kernel | before 6.6.89, from 6.7 before 6.12.26, from 6.13 before 6.14.5, 6.15 | NVD |
All scores
| Linux | 7.1high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
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: driver core: fix potential NULL pointer dereference in dev_uevent() If userspace reads "uevent" device attribute at the same time as another threads unbinds the device from its driver, change to dev->driver from a valid pointer to NULL may result in crash. Fix this by using READ_ONCE() when fetching the pointer, and take bus' drivers klist lock to make sure driver instance will not disappear while we access it. Use WRITE_ONCE() when setting the driver pointer to ensure there is no tearing.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: núcleo del controlador: se corrige una posible desreferencia de puntero nulo en dev_uevent(). Si el espacio de usuario lee el atributo de dispositivo "uevent" al mismo tiempo que otro subproceso desvincula el dispositivo de su controlador, cambiar de un puntero válido a nulo en dev->driver puede provocar un fallo. Se soluciona esto usando READ_ONCE() al obtener el puntero y bloqueando la lista de k de los controladores del bus para garantizar que la instancia del controlador no desaparezca al acceder a ella. Use WRITE_ONCE() al configurar el puntero del controlador para evitar cortes.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-37800 changed 2026-10-15 | CVE Terms of Use |
| NVD | CVE-2025-37800 changed 2026-10-15 | Public domain |