iio: dac: m62332: Fix regulator reference count imbalance
- 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.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 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: dac: m62332: Fix regulator reference count imbalance m62332_set_value() enables the Vcc regulator on every write of a non-zero value and disables it on every write of zero, without tracking the channel's current state. Because the regulator is reference counted, changing a channel directly from one non-zero value to another enables it more than once, while a later write of zero disables it only once. The reference count never returns to zero and the regulator is left enabled indefinitely. Only enable the regulator on the transition from zero to non-zero, and only disable it on the transition from non-zero to zero, using the previously stored channel value to detect the edge. Balance the regulator on the I2C error path so the reference count stays consistent if the write fails.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From b87b0c0f81e8d11c881b726b886b7502ab67d884 · fixed in bac0ed8bee651aa841375edf72c6ab1d10ac80c6; From b87b0c0f81e8d11c881b726b886b7502ab67d884 · fixed in 9263b9ad968a563337a60e0eb66e35186e1faf9a; From b87b0c0f81e8d11c881b726b886b7502ab67d884 · fixed in 1d3a7d7dd3adee19e00be2b2237140f0fe169484; From b87b0c0f81e8d11c881b726b886b7502ab67d884 · fixed in f5acb824277a97a5210c454872202bf7f08c75d4; From b87b0c0f81e8d11c881b726b886b7502ab67d884 · fixed in ae18d2d2ef27a4d04fda6e30c23774513dc9be1e; From b87b0c0f81e8d11c881b726b886b7502ab67d884 · fixed in 08ac8d2976d57aa943d64e351c4d0bd8bb0c6de9; From b87b0c0f81e8d11c881b726b886b7502ab67d884 · fixed in 9fe22f563b2a0fdb11fd3711a8c39c023629c08a; From b87b0c0f81e8d11c881b726b886b7502ab67d884 · fixed in a130404ce0b69ca1438126bd81c1985d3b4d2e6f
- Linux Linux
4.2
- KernelLinux
From 4.2.0 · fixed in 5.10.270; From 5.11.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 8
git.kernel.org
- stable/c/bac0ed8bee651aa841375edf72c6ab1d10ac80c6
- stable/c/9263b9ad968a563337a60e0eb66e35186e1faf9a
- stable/c/1d3a7d7dd3adee19e00be2b2237140f0fe169484
- stable/c/f5acb824277a97a5210c454872202bf7f08c75d4
- stable/c/ae18d2d2ef27a4d04fda6e30c23774513dc9be1e
- stable/c/08ac8d2976d57aa943d64e351c4d0bd8bb0c6de9
- stable/c/9fe22f563b2a0fdb11fd3711a8c39c023629c08a
- stable/c/a130404ce0b69ca1438126bd81c1985d3b4d2e6f