AZL-117800: CVE-2026-142959 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
iio: light: tsl2591: don't divide by zero
The TSL2591 has two raw light channels - CH0 and CH1. The algorithm for calculating illumination from the raw channels requires division by CH0 (which can be zero) and by "counts per lux" (CPL) value which is also zero for (gain = LOW, integration time <= 400 ms).
Furthermore, the algorithm assumes CH0 > CH1, which can be violated in almost complete darkness.
As a result, reading from 'inilluminanceinput' results in division-by-zero whenever CH0 is 0 (complete darkness) or whenever the parameters result in CPL being zero. This results in kernel oops on x8664 and in reading the value as 0 on arm64.
Fix that by: - reporting CH0 <= CH1 as zero (catches also CH0 = 0) - updating the lux algorithm to only do the division at the end
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Update the TSL2591 lux algorithm to report zero when CH0 <= CH1 and perform division only at the end of the calculation.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the TSL2591 IIO light sensor driver are exposed when software reads the in_illuminance_input attribute. The issue depends on sensor readings and configuration conditions that can produce a zero divisor.
What conditions trigger the faulty calculation?
A read can trigger division by zero when CH0 is zero, such as in complete darkness. It can also occur when the gain is LOW and the integration time is 400 ms or less, causing the counts-per-lux value to be zero; the calculation also does not safely handle CH0 being less than or equal to CH1.
What is the observed impact on affected architectures?
On x86_64, the division by zero results in a kernel oops. On arm64, the illuminance read returns 0 instead.
How can I check whether the vulnerable path is being exercised?
Check whether the system uses a TSL2591 sensor and whether in_illuminance_input is being read. Reads performed in complete darkness, or with LOW gain and an integration time of 400 ms or less, exercise the documented triggering conditions.