Division by zero in Linux kernel TSL2591 light sensor driver
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel from 5.14 is affected by a division by zero flaw in the IIO light driver for the TSL2591 sensor. The illuminance calculation divides by a raw channel value and by a counts-per-lux value that can both be zero, and the code assumes CH0 is greater than CH1, which does not hold in near darkness. Reading in_illuminance_input in complete darkness crashes the kernel on x86_64.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
Description from the CNA
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 'in_illuminance_input' 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 x86_64 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
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Update the Linux kernel to 5.15.227, 6.12.120, 6.18.66, 7.3.7 or 7.4-rc4, depending on the branch in use.
Written with Claude Haiku 5.5 from the sources below · 2026-12-03
- Fix · CNA Linux (Linux) Fixed in 5.15.227, 6.12.120, 6.18.66, 7.3.7, 7.4-rc4
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 7 products
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-12-03 Threatist record created from CVE-2026-142959
- 2026-12-03 Alias added: GHSA-2p9j-57cj-m77w
- 2026-12-03 Affected versions changed · Red Hat
- 2026-12-03 CVSS score added · Red Hat
References
Other 5
- https://git.kernel.org/stable/c/6c3a4e702d5d32c8bd4da085259ceb5ac1efa16b
- https://git.kernel.org/stable/c/c08c19fcd24b9d02dcbcf5db54210ade1189b942
- https://git.kernel.org/stable/c/654ab8f7d5448d3e25f628c89b5239a178d14d55
- https://git.kernel.org/stable/c/3c8c2d9b88a38b92a38b3b4c74f15994cd23ce97
- https://git.kernel.org/stable/c/bd63c89aac5672f40cdc123a856493b628fc1abb
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-142959 · CVE Program
- CVE-2026-142959 · NVD
- FIRST EPSS
- GHSA-2p9j-57cj-m77w · GitHub Advisory Database · CC BY 4.0
- CVE-2026-142959 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences