Description
In the Linux kernel, the following vulnerability has been resolved: iio: hid-sensors: fix a division by zero convert_to_vtf_format() divides the micro part of a value by 10^(6 + exp). The unit exponent of a HID field is a nibble and goes down to -8. For -7 and -8 the argument of int_pow() is negative, which the unsigned parameter turns into a huge power of ten: 0 modulo 2^64. The division by it is a divide error. The exponent comes from the report descriptor of the sensor hub, the value from a write to the hysteresis attribute of the IIO device. Multiply by 10^(-exp - 6) in these two cases.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
73c6768b710a1621903f2bc179ae9c7789d41e9f to < e81fe750ace7d82bcbb88a5efcfc334dd83af771affected73c6768b710a1621903f2bc179ae9c7789d41e9f to < 2894719f48efd7134900e725a4cefde18b7ffce6affected73c6768b710a1621903f2bc179ae9c7789d41e9f to < 8d032d2c07dc58bf748977b98e178157393ee215affected73c6768b710a1621903f2bc179ae9c7789d41e9f to < 7ca1dd2fc9f896372b71323fd5197a595a44652faffected73c6768b710a1621903f2bc179ae9c7789d41e9f to < c2d74cae0186709767df39ce8ca1143c94ff109daffected73c6768b710a1621903f2bc179ae9c7789d41e9f to < fd4c92bbd3a64556e81042ff8d30545b15a3b93aaffected
Linux Linux
Default version status: affected
3.7affected0 to < 3.7unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc4 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/e81fe750ace7d82bcbb88a5efcfc334dd83af771 ↗
- https://git.kernel.org/stable/c/2894719f48efd7134900e725a4cefde18b7ffce6 ↗
- https://git.kernel.org/stable/c/8d032d2c07dc58bf748977b98e178157393ee215 ↗
- https://git.kernel.org/stable/c/7ca1dd2fc9f896372b71323fd5197a595a44652f ↗
- https://git.kernel.org/stable/c/c2d74cae0186709767df39ce8ca1143c94ff109d ↗
- https://git.kernel.org/stable/c/fd4c92bbd3a64556e81042ff8d30545b15a3b93a ↗