{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-142959",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-12-03T03:10:28.339Z",
        "datePublished": "2026-12-03T09:16:48.075Z",
        "dateUpdated": "2026-12-03T09:16:48.075Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-03T09:16:48.075Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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 <= 400 ms).\n\nFurthermore, the algorithm assumes CH0 > 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 <= CH1 as zero (catches also CH0 = 0)\n- updating the lux algorithm to only do the division at the end"
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/iio/light/tsl2591.c"
                    ],
                    "versions": [
                        {
                            "version": "2335f0d7c790157bebf76fae963ba41bcba45fdb",
                            "lessThan": "6c3a4e702d5d32c8bd4da085259ceb5ac1efa16b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2335f0d7c790157bebf76fae963ba41bcba45fdb",
                            "lessThan": "c08c19fcd24b9d02dcbcf5db54210ade1189b942",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2335f0d7c790157bebf76fae963ba41bcba45fdb",
                            "lessThan": "654ab8f7d5448d3e25f628c89b5239a178d14d55",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2335f0d7c790157bebf76fae963ba41bcba45fdb",
                            "lessThan": "3c8c2d9b88a38b92a38b3b4c74f15994cd23ce97",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2335f0d7c790157bebf76fae963ba41bcba45fdb",
                            "lessThan": "bd63c89aac5672f40cdc123a856493b628fc1abb",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/iio/light/tsl2591.c"
                    ],
                    "versions": [
                        {
                            "version": "5.14",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.14",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.227",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.120",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.66",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.7",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc4",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.14",
                                    "versionEndExcluding": "5.15.227"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.14",
                                    "versionEndExcluding": "6.12.120"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.14",
                                    "versionEndExcluding": "6.18.66"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.14",
                                    "versionEndExcluding": "7.3.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.14",
                                    "versionEndExcluding": "7.4-rc4"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/6c3a4e702d5d32c8bd4da085259ceb5ac1efa16b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c08c19fcd24b9d02dcbcf5db54210ade1189b942"
                },
                {
                    "url": "https://git.kernel.org/stable/c/654ab8f7d5448d3e25f628c89b5239a178d14d55"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3c8c2d9b88a38b92a38b3b4c74f15994cd23ce97"
                },
                {
                    "url": "https://git.kernel.org/stable/c/bd63c89aac5672f40cdc123a856493b628fc1abb"
                }
            ],
            "title": "iio: light: tsl2591: don't divide by zero",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}