Description
In the Linux kernel, the following vulnerability has been resolved: iio: light: gp2ap002: fix runtime PM leak on read error gp2ap002_read_raw() calls pm_runtime_get_sync() before reading the lux value, but if gp2ap002_get_lux() fails, it returns directly. This skips the pm_runtime_put_autosuspend() call at the "out" label, permanently leaking a runtime PM reference and preventing the device from autosuspending. Replace the direct return with a "goto out" to ensure the reference is properly dropped on the error path.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
f6dbf83c17cb223ceabd7c42d441414f3e0e8a86 to < 62e0d74821a02f0e0c5c79b99ae64dc83a9a90f5affectedf6dbf83c17cb223ceabd7c42d441414f3e0e8a86 to < 7110201c6b21455240c63388f30113f3baafacfcaffectedf6dbf83c17cb223ceabd7c42d441414f3e0e8a86 to < 2593f0c6ea37df168975694a3b17e7086f11453eaffectedf6dbf83c17cb223ceabd7c42d441414f3e0e8a86 to < f350883989ced96d6da7f582f9a6f9c6ffc94e34affectedf6dbf83c17cb223ceabd7c42d441414f3e0e8a86 to < 29137052c4485c74bc2d1b0717f69ca4de14274faffectedf6dbf83c17cb223ceabd7c42d441414f3e0e8a86 to < 0c655d067ac69ee24e2e9d706c54179ea58a43dbaffectedf6dbf83c17cb223ceabd7c42d441414f3e0e8a86 to < 2ebaea7f3089decb01a8294d89d7e0cf288146c4affectedf6dbf83c17cb223ceabd7c42d441414f3e0e8a86 to < 38b72267b7e22768a1f26d9935de4e1752a1dc85affectedf3e84bf3f86bb3b7bd50666bb8ef7a203a656ca3affected5.7.6 to < 5.8affected
Linux Linux
Default version status: affected
5.8affected0 to < 5.8unaffected5.10.261 to ≤ 5.10.*unaffected5.15.212 to ≤ 5.15.*unaffected6.1.178 to ≤ 6.1.*unaffected6.6.145 to ≤ 6.6.*unaffected6.12.96 to ≤ 6.12.*unaffected6.18.39 to ≤ 6.18.*unaffected7.1.4 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/62e0d74821a02f0e0c5c79b99ae64dc83a9a90f5 ↗
- https://git.kernel.org/stable/c/7110201c6b21455240c63388f30113f3baafacfc ↗
- https://git.kernel.org/stable/c/2593f0c6ea37df168975694a3b17e7086f11453e ↗
- https://git.kernel.org/stable/c/f350883989ced96d6da7f582f9a6f9c6ffc94e34 ↗
- https://git.kernel.org/stable/c/29137052c4485c74bc2d1b0717f69ca4de14274f ↗
- https://git.kernel.org/stable/c/0c655d067ac69ee24e2e9d706c54179ea58a43db ↗
- https://git.kernel.org/stable/c/2ebaea7f3089decb01a8294d89d7e0cf288146c4 ↗
- https://git.kernel.org/stable/c/38b72267b7e22768a1f26d9935de4e1752a1dc85 ↗