{"id":"CVE-2026-142803","summary":"backlight: qcom-wled: Fix unbalanced OVP IRQ enable at probe","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbacklight: qcom-wled: Fix unbalanced OVP IRQ enable at probe\n\nwled_configure_ovp_irq() derives the initial state of the OVP interrupt\nfrom the hardware:\n\n        /* Keep OVP irq disabled until module is enabled */\n        if (!(val & WLED3_CTRL_REG_MOD_EN_MASK))\n                disable_irq(wled-\u003eovp_irq);\n\nbut wled-\u003ebrightness, which is what the rest of the driver uses to tell\nwhether the module is on, is left at zero.\n\nOn boards where the bootloader hands the kernel a lit backlight the two\ndisagree. MOD_EN is already set, so the interrupt is left enabled, while\nwled_update_status() still believes the backlight is off and takes\n\n        if (!!brightness != !!wled-\u003ebrightness)\n                rc = wled_module_enable(wled, !!brightness);\n\non the first backlight update. wled_module_enable() then schedules\nwled_ovp_work(), which calls enable_irq() on the already enabled\ninterrupt:\n\n  Unbalanced enable for IRQ 176\n  WARNING: CPU: 0 PID: 160 at kernel/irq/manage.c:774 __enable_irq+0x50/0x80\n  Hardware name: Xiaomi Pocophone F1 (DT)\n  Workqueue: events wled_ovp_work\n  Call trace:\n   __enable_irq+0x50/0x80\n   enable_irq+0x48/0xa0\n   wled_ovp_work+0x18/0x24\n   process_one_work+0x1d0/0x350\n   worker_thread+0x13c/0x460\n   kthread+0x110/0x114\n   ret_from_fork+0x10/0x20\n\nThe bootloader is not the only way to get there. The readback runs after\nwledN_setup(), and wled4_setup() sets MOD_EN itself on the path where the\nsink configuration does not already match, as does the tail of\nwled_auto_string_detection(), which all three setup paths can reach\nthrough wled_auto_detection_at_init(). A cold-booted board with a dark\npanel can therefore reach the same disagreement.\n\nMove the MOD_EN readback into wled_probe() and use it to seed\nwled-\u003ebrightness, so the driver starts out agreeing with the hardware,\nand key the OVP interrupt off wled-\u003ebrightness instead. The first\nbacklight update then only reprograms the brightness registers and\nleaves both the module and the interrupt alone. The OVP interrupt also\nstays armed from probe whenever the module is already enabled, rather\nthan being disabled at probe and only enabled once something writes\nbrightness.\n\nNote that a backlight update requesting brightness 0 before any non-zero\none now really does turn the module off wherever MOD_EN was already set,\nwhere before it was silently ignored.\n\nwled-\u003ebrightness is seeded with default-brightness rather than the level\nthe bootloader actually programmed, so the first update can still step\nthe brightness. Reading that level back is version specific and is done\nin a follow-up, to keep this fix small enough to backport.","modified":"2026-12-03T05:00:27.771022803Z","published":"2026-12-03T03:11:32.087Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142803.json","cna_assigner":"Linux"},"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/5eda6b51461932f9fd835ef9e4574650c69c4fe8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5edd1bbb350920c02ec4ae09d1b88df98bac863d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6170378712385dc329bf70ea1da6e9cd87b46f32"},{"type":"WEB","url":"https://git.kernel.org/stable/c/96e864355a4124d32b213575682772fe733d9ccb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d3b5bebfa3cc646e72c5d060299cea76b13fdf69"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e9bff555cc77ecb80c7fb7a816b1351ea4d5c738"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ea70832926599f8f427d6da71b414bb924347704"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef4a0e652e58cb00520ae7081c1e6eaf0da10e55"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142803.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142803"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"8663c188beeacf35d4865185a6713d6e8ded4fea"},{"fixed":"5edd1bbb350920c02ec4ae09d1b88df98bac863d"},{"fixed":"96e864355a4124d32b213575682772fe733d9ccb"},{"fixed":"d3b5bebfa3cc646e72c5d060299cea76b13fdf69"},{"fixed":"ea70832926599f8f427d6da71b414bb924347704"},{"fixed":"ef4a0e652e58cb00520ae7081c1e6eaf0da10e55"},{"fixed":"e9bff555cc77ecb80c7fb7a816b1351ea4d5c738"},{"fixed":"6170378712385dc329bf70ea1da6e9cd87b46f32"},{"fixed":"5eda6b51461932f9fd835ef9e4574650c69c4fe8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142803.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.61"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142803.json"}}],"schema_version":"1.9.2"}