CVE-2026-89939: iio: chemical: atlas-sensor: fix PM reference leak in buffer postenable
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iio: chemical: atlas-sensor: fix PM reference leak in buffer postenable
atlas_buffer_postenable() acquires a runtime PM reference with pm_runtime_resume_and_get() but returns the result of atlas_set_interrupt() directly. If atlas_set_interrupt() fails, the runtime PM reference is leaked and the device can never autosuspend.
Add pm_runtime_put_autosuspend() on the error path to balance the reference.
The Linux kernel CVE team has assigned CVE-2026-89939 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.14 with commit 0e4f336f50debeacd0f81e931e8451f2ae03f685 and fixed in 5.15.221 with commit c7e91ae6d7802170f53ece09a4ecc6302265d3e4 Issue introduced in 5.14 with commit 0e4f336f50debeacd0f81e931e8451f2ae03f685 and fixed in 6.1.188 with commit a595f4d3e4ee1c91c62a298730a77b16dc26b426 Issue introduced in 5.14 with commit 0e4f336f50debeacd0f81e931e8451f2ae03f685 and fixed in 6.6.157 with commit 72daa7eb7fc6202fece0bb56487d72af5c49ccdf Issue introduced in 5.14 with commit 0e4f336f50debeacd0f81e931e8451f2ae03f685 and fixed in 6.12.110 with commit aedf8f068d9da774d5cb62e9c9d6e62b2ce64d86 Issue introduced in 5.14 with commit 0e4f336f50debeacd0f81e931e8451f2ae03f685 and fixed in 6.18.51 with commit 43bce901047e95bbf8fb63eb471460642e497604 Issue introduced in 5.14 with commit 0e4f336f50debeacd0f81e931e8451f2ae03f685 and fixed in 7.2.5 with commit 777e8ebfe6b3fa733694977f0f4cf849e07e925c Issue introduced in 5.14 with commit 0e4f336f50debeacd0f81e931e8451f2ae03f685 and fixed in 7.3-rc1 with commit bcd3f72e26314edfce7eaf8d7160b3119c7b7fed
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-89939
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/chemical/atlas-sensor.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/c7e91ae6d7802170f53ece09a4ecc6302265d3e4 https://git.kernel.org/stable/c/a595f4d3e4ee1c91c62a298730a77b16dc26b426 https://git.kernel.org/stable/c/72daa7eb7fc6202fece0bb56487d72af5c49ccdf https://git.kernel.org/stable/c/aedf8f068d9da774d5cb62e9c9d6e62b2ce64d86 https://git.kernel.org/stable/c/43bce901047e95bbf8fb63eb471460642e497604 https://git.kernel.org/stable/c/777e8ebfe6b3fa733694977f0f4cf849e07e925c https://git.kernel.org/stable/c/bcd3f72e26314edfce7eaf8d7160b3119c7b7fed