Description
In the Linux kernel, the following vulnerability has been resolved: iio: light: ltrf216a: fix runtime PM reference leak in error path ltrf216a_get_lux() acquires a runtime PM reference by calling ltrf216a_set_power_state(data, true). However, if ltrf216a_read_data() fails, the function returns immediately without dropping the reference. This leaves the runtime PM usage count unbalanced, preventing the device from autosuspending after a failed read. Fix this by releasing the runtime PM reference before returning from 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
83f0bcd40d5cf88870d2f2bb8b97c772b92a3d1f to < 4bf5525c6ff4a9f8df35bcc227a918b6396b2cb5affected83f0bcd40d5cf88870d2f2bb8b97c772b92a3d1f to < c4f003d8578f5718fe1ec332bc89f9ff69fd205baffected83f0bcd40d5cf88870d2f2bb8b97c772b92a3d1f to < 0614928a3eda35bddd8c2f02311e286b59bbe746affected83f0bcd40d5cf88870d2f2bb8b97c772b92a3d1f to < 80e7381e8cccb543397572af153865f34aaf4353affected83f0bcd40d5cf88870d2f2bb8b97c772b92a3d1f to < c132aef0e757a39036b1d40faf0569f2e343b13eaffected
Linux Linux
Default version status: affected
6.1affected0 to < 6.1unaffected6.6.160 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.51 to ≤ 6.18.*unaffected7.2.5 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/4bf5525c6ff4a9f8df35bcc227a918b6396b2cb5 ↗
- https://git.kernel.org/stable/c/c4f003d8578f5718fe1ec332bc89f9ff69fd205b ↗
- https://git.kernel.org/stable/c/0614928a3eda35bddd8c2f02311e286b59bbe746 ↗
- https://git.kernel.org/stable/c/80e7381e8cccb543397572af153865f34aaf4353 ↗
- https://git.kernel.org/stable/c/c132aef0e757a39036b1d40faf0569f2e343b13e ↗