{"id":"CVE-2026-142959","summary":"iio: light: tsl2591: don't divide by zero","details":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: light: tsl2591: don't divide by zero\n\nThe TSL2591 has two raw light channels - CH0 and CH1. The algorithm for\ncalculating illumination from the raw channels requires division by CH0\n(which can be zero) and by \"counts per lux\" (CPL) value which is also zero\nfor (gain = LOW, integration time \u003c= 400 ms).\n\nFurthermore, the algorithm assumes CH0 \u003e CH1, which can be violated in\nalmost complete darkness.\n\nAs a result, reading from 'in_illuminance_input' results in\ndivision-by-zero whenever CH0 is 0 (complete darkness) or whenever the\nparameters result in CPL being zero. This results in kernel oops on\nx86_64 and in reading the value as 0 on arm64.\n\nFix that by:\n- reporting CH0 \u003c= CH1 as zero (catches also CH0 = 0)\n- updating the lux algorithm to only do the division at the end","modified":"2026-12-03T11:00:19.903697374Z","published":"2026-12-03T09:16:48.075Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142959.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3c8c2d9b88a38b92a38b3b4c74f15994cd23ce97"},{"type":"WEB","url":"https://git.kernel.org/stable/c/654ab8f7d5448d3e25f628c89b5239a178d14d55"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6c3a4e702d5d32c8bd4da085259ceb5ac1efa16b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bd63c89aac5672f40cdc123a856493b628fc1abb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c08c19fcd24b9d02dcbcf5db54210ade1189b942"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142959.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142959"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2335f0d7c790157bebf76fae963ba41bcba45fdb"},{"fixed":"6c3a4e702d5d32c8bd4da085259ceb5ac1efa16b"},{"fixed":"c08c19fcd24b9d02dcbcf5db54210ade1189b942"},{"fixed":"654ab8f7d5448d3e25f628c89b5239a178d14d55"},{"fixed":"3c8c2d9b88a38b92a38b3b4c74f15994cd23ce97"},{"fixed":"bd63c89aac5672f40cdc123a856493b628fc1abb"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142959.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.14.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142959.json"}}],"schema_version":"1.9.2"}