iio: accel: kxsd9: fix runtime PM imbalance on write_raw() error
3Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackepss 0.2%
exploitation probability
0.2%top 93% of all CVEs
observed exploitation
nono source reports it
In the Linux kernel, the following vulnerability has been resolved:
iio: accel: kxsd9: fix runtime PM imbalance on write_raw() error
kxsd9_write_raw() takes a runtime PM reference with pm_runtime_get_sync()
but returns -EINVAL directly when a scale with a non-zero integer part is
requested, skipping the matching pm_runtime_put_autosuspend(). This leaks
a runtime PM usage-counter reference on every such write, after which the
device can no longer autosuspend.
Set the error code and fall through to the existing put instead of
returning early.
Affected products
Linux · LinuxReferences
https://git.kernel.org/stable/c/13a91e8631cfeb68e5b7fd6687f194f5a86e83fehttps://git.kernel.org/stable/c/191fcfeb729ededd8dd2a999c6bf351ddfa0cec7https://git.kernel.org/stable/c/223703d6e8bed50b6a0b47e160877909518d94b9https://git.kernel.org/stable/c/36154171385a8a2444a4b3c6eaa0c5294cb02478https://git.kernel.org/stable/c/44a5fd874bb6873bdaec59f722c1d57832fbc9dfhttps://git.kernel.org/stable/c/6293211d142605bec435229ef0aa3668b8964164https://git.kernel.org/stable/c/a93fd69c1ab0854ac4f5b8439c26dfadb25dfd20https://git.kernel.org/stable/c/eeece4a85ece6f3837c75ef26a9b2bf5a1d0fcfc