iio: dac: m62332: Fix regulator reference count imbalance
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f5acb824277a97a5210c454872202bf7f08c75d4, Kernel 08ac8d2976d57aa943d64e351c4d0bd8bb0c6de9, Kernel 1d3a7d7dd3adee19e00be2b2237140f0fe169484 and 12 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=b87b0c0f81e8d11c881b726b886b7502ab67d884 <f5acb824277a97a5210c454872202bf7f08c75d4, >=b87b0c0f81e8d11c881b726b886b7502ab67d884 <08ac8d2976d57aa943d64e351c4d0bd8bb0c6de9, >=b87b0c0f81e8d11c881b726b886b7502ab67d884 <1d3a7d7dd3adee19e00be2b2237140f0fe169484, >=b87b0c0f81e8d11c881b726b886b7502ab67d884 <9263b9ad968a563337a60e0eb66e35186e1faf9a, >=b87b0c0f81e8d11c881b726b886b7502ab67d884 <9fe22f563b2a0fdb11fd3711a8c39c023629c08a, >=b87b0c0f81e8d11c881b726b886b7502ab67d884 <a130404ce0b69ca1438126bd81c1985d3b4d2e6f, >=b87b0c0f81e8d11c881b726b886b7502ab67d884 <ae18d2d2ef27a4d04fda6e30c23774513dc9be1e, >=b87b0c0f81e8d11c881b726b886b7502ab67d884 <bac0ed8bee651aa841375edf72c6ab1d10ac80c6, =4.2 | f5acb824277a97a5210c454872202bf7f08c75d4, 08ac8d2976d57aa943d64e351c4d0bd8bb0c6de9, 1d3a7d7dd3adee19e00be2b2237140f0fe169484, 9263b9ad968a563337a60e0eb66e35186e1faf9a, 9fe22f563b2a0fdb11fd3711a8c39c023629c08a, a130404ce0b69ca1438126bd81c1985d3b4d2e6f, ae18d2d2ef27a4d04fda6e30c23774513dc9be1e, bac0ed8bee651aa841375edf72c6ab1d10ac80c6 |
| linux-kernel: Kernel | >=5.11.0 <5.15.221, >=5.16.0 <6.1.188, >=6.13.0 <6.18.51, >=6.19.0 <7.2.5, >=6.2.0 <6.6.157, >=6.7.0 <6.12.110, >=4.2.0 <5.10.270 | 5.15.221, 6.1.188, 6.18.51, 7.2.5, 6.6.157, 6.12.110, 5.10.270 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket