CVE-2026-64503: iio: accel: kxsd9: fix runtime PM imbalance on write_raw() error

Greg Kroah-Hartman <[email protected]> Sat, 25 Jul 2026 10:52:00 +0200
Newsgroups org.kernel.vger.linux-cve-announce
Message-ID <2026072553-CVE-2026-64503-51c2@gregkh>
From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-64503 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 4.9 with commit 9a9a369d6178dd4e263c49085ce1b37e1e8f63a0 and fixed in 5.10.261 with commit a93fd69c1ab0854ac4f5b8439c26dfadb25dfd20
	Issue introduced in 4.9 with commit 9a9a369d6178dd4e263c49085ce1b37e1e8f63a0 and fixed in 5.15.212 with commit eeece4a85ece6f3837c75ef26a9b2bf5a1d0fcfc
	Issue introduced in 4.9 with commit 9a9a369d6178dd4e263c49085ce1b37e1e8f63a0 and fixed in 6.1.178 with commit 191fcfeb729ededd8dd2a999c6bf351ddfa0cec7
	Issue introduced in 4.9 with commit 9a9a369d6178dd4e263c49085ce1b37e1e8f63a0 and fixed in 6.6.145 with commit 36154171385a8a2444a4b3c6eaa0c5294cb02478
	Issue introduced in 4.9 with commit 9a9a369d6178dd4e263c49085ce1b37e1e8f63a0 and fixed in 6.12.96 with commit 223703d6e8bed50b6a0b47e160877909518d94b9
	Issue introduced in 4.9 with commit 9a9a369d6178dd4e263c49085ce1b37e1e8f63a0 and fixed in 6.18.39 with commit 6293211d142605bec435229ef0aa3668b8964164
	Issue introduced in 4.9 with commit 9a9a369d6178dd4e263c49085ce1b37e1e8f63a0 and fixed in 7.1.4 with commit 13a91e8631cfeb68e5b7fd6687f194f5a86e83fe
	Issue introduced in 4.9 with commit 9a9a369d6178dd4e263c49085ce1b37e1e8f63a0 and fixed in 7.2-rc3 with commit 44a5fd874bb6873bdaec59f722c1d57832fbc9df

Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to
older supported kernel versions.  The official CVE entry at
	https://cve.org/CVERecord/?id=CVE-2026-64503
will be updated if fixes are backported, please check that for the most
up to date information about this issue.


Affected files
==============

The file(s) affected by this issue are:
	drivers/iio/accel/kxsd9.c


Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes.  Individual
changes are never tested alone, but rather are part of a larger kernel
release.  Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all.  If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
	https://git.kernel.org/stable/c/a93fd69c1ab0854ac4f5b8439c26dfadb25dfd20
	https://git.kernel.org/stable/c/eeece4a85ece6f3837c75ef26a9b2bf5a1d0fcfc
	https://git.kernel.org/stable/c/191fcfeb729ededd8dd2a999c6bf351ddfa0cec7
	https://git.kernel.org/stable/c/36154171385a8a2444a4b3c6eaa0c5294cb02478
	https://git.kernel.org/stable/c/223703d6e8bed50b6a0b47e160877909518d94b9
	https://git.kernel.org/stable/c/6293211d142605bec435229ef0aa3668b8964164
	https://git.kernel.org/stable/c/13a91e8631cfeb68e5b7fd6687f194f5a86e83fe
	https://git.kernel.org/stable/c/44a5fd874bb6873bdaec59f722c1d57832fbc9df