CVE-2026-142959: iio: light: tsl2591: don't divide by zero
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 perform division only at the end and report zero when CH0 <= CH1, preventing division by zero.
Event History
Frequently Asked Questions
Which systems are affected in practice?
Systems using the TSL2591 light sensor driver are affected when the in_illuminance_input value is read under triggering sensor or configuration conditions. The issue concerns the driver's illumination calculation rather than the two raw light channels themselves.
What conditions trigger the failure?
A read can trigger division by zero when CH0 is zero, such as in complete darkness. It can also occur when gain is LOW and integration time is 400 ms or less, because the counts-per-lux value becomes zero; CH0 less than or equal to CH1 is also handled as a zero illumination result by the fix.
What is the observable impact on affected systems?
On x86_64, the division by zero results in a kernel oops. On arm64, the illuminance read returns 0 instead.