iio: chemical: atlas-sensor: fix PM reference leak in buffer postenable
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.15.221, 6.1.188, 6.6.157, 6.12.110, 6.18.51, and 1 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 0e4f336f50debeacd0f81e931e8451f2ae03f685 · fixed in c7e91ae6d7802170f53ece09a4ecc6302265d3e4; From 0e4f336f50debeacd0f81e931e8451f2ae03f685 · fixed in a595f4d3e4ee1c91c62a298730a77b16dc26b426; From 0e4f336f50debeacd0f81e931e8451f2ae03f685 · fixed in 72daa7eb7fc6202fece0bb56487d72af5c49ccdf; From 0e4f336f50debeacd0f81e931e8451f2ae03f685 · fixed in aedf8f068d9da774d5cb62e9c9d6e62b2ce64d86; From 0e4f336f50debeacd0f81e931e8451f2ae03f685 · fixed in 43bce901047e95bbf8fb63eb471460642e497604; From 0e4f336f50debeacd0f81e931e8451f2ae03f685 · fixed in 777e8ebfe6b3fa733694977f0f4cf849e07e925c; From 0e4f336f50debeacd0f81e931e8451f2ae03f685 · fixed in bcd3f72e26314edfce7eaf8d7160b3119c7b7fed
- Linux Linux
5.14
- KernelLinux
From 5.14.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.51; From 6.19.0 · fixed in 7.2.5
References 7
git.kernel.org
- stable/c/c7e91ae6d7802170f53ece09a4ecc6302265d3e4
- stable/c/a595f4d3e4ee1c91c62a298730a77b16dc26b426
- stable/c/72daa7eb7fc6202fece0bb56487d72af5c49ccdf
- stable/c/aedf8f068d9da774d5cb62e9c9d6e62b2ce64d86
- stable/c/43bce901047e95bbf8fb63eb471460642e497604
- stable/c/777e8ebfe6b3fa733694977f0f4cf849e07e925c
- stable/c/bcd3f72e26314edfce7eaf8d7160b3119c7b7fed