CVE-2025-39774
JSON

5.5medium

iio: adc: rzg2l_adc: Set driver data before enabling runtime PM

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: iio: adc: rzg2l_adc: Set driver data before enabling runtime PM When stress-testing the system by repeatedly unbinding and binding the ADC device in a loop, and the ADC is a supplier for another device (e.g., a thermal hardware block that reads temperature through the ADC), it may happen that the ADC device is runtime-resumed immediately after runtime PM is enabled, triggered by its consumer. At this point, since drvdata is not yet set and the driver's runtime PM callbacks rely on it, a crash can occur. To avoid this, set drvdata just after it was allocated.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 89ee8174e8c8db0efc75b26f2307114b38d61354 before e7ce902db071a7b3e696a43d6e14ca57360deee6, from 89ee8174e8c8db0efc75b26f2307114b38d61354 before c69e13965f26b8058f538ea8bdbd2d7718cf1fbe, 6.14
Not affected: before 6.14, from 6.16.4 up to 6.16.*, from 6.17 up to *
CVE List
linux linux_kernelfrom 6.14 before 6.16.4, 6.17NVD

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: iio: adc: rzg2l_adc: Set driver data before enabling runtime PM When stress-testing the system by repeatedly unbinding and binding the ADC device in a loop, and the ADC is a supplier for another device (e.g., a thermal hardware block that reads temperature through the ADC), it may happen that the ADC device is runtime-resumed immediately after runtime PM is enabled, triggered by its consumer. At this point, since drvdata is not yet set and the driver's runtime PM callbacks rely on it, a crash can occur. To avoid this, set drvdata just after it was allocated.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: iio: adc: rzg2l_adc: Establecer los datos del controlador antes de habilitar el PM en tiempo de ejecución Al realizar pruebas de estrés en el sistema desvinculando y vinculando repetidamente el dispositivo ADC en un bucle, y el ADC es un proveedor para otro dispositivo (por ejemplo, un bloque de hardware térmico que lee la temperatura a través del ADC), puede ocurrir que el dispositivo ADC se reanude en tiempo de ejecución inmediatamente después de que se habilite el PM en tiempo de ejecución, activado por su consumidor. En este punto, dado que drvdata aún no está establecido y las devoluciones de llamada de PM en tiempo de ejecución del controlador dependen de él, puede ocurrir un fallo. Para evitar esto, establezca drvdata justo después de que fuera asignado.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-39774 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-39774 changed 2026-10-19Public domain