CVE-2026-142803

Source
https://cve.org/CVERecord?id=CVE-2026-142803
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142803.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142803
Downstream
Published
2026-12-03T03:11:32Z
Modified
2026-12-03T05:00:27Z
Summary
backlight: qcom-wled: Fix unbalanced OVP IRQ enable at probe
Details

In the Linux kernel, the following vulnerability has been resolved:

backlight: qcom-wled: Fix unbalanced OVP IRQ enable at probe

wled_configure_ovp_irq() derives the initial state of the OVP interrupt from the hardware:

    /* Keep OVP irq disabled until module is enabled */
    if (!(val & WLED3_CTRL_REG_MOD_EN_MASK))
            disable_irq(wled->ovp_irq);

but wled->brightness, which is what the rest of the driver uses to tell whether the module is on, is left at zero.

On boards where the bootloader hands the kernel a lit backlight the two disagree. MOD_EN is already set, so the interrupt is left enabled, while wled_update_status() still believes the backlight is off and takes

    if (!!brightness != !!wled->brightness)
            rc = wled_module_enable(wled, !!brightness);

on the first backlight update. wled_module_enable() then schedules wled_ovp_work(), which calls enable_irq() on the already enabled interrupt:

Unbalanced enable for IRQ 176 WARNING: CPU: 0 PID: 160 at kernel/irq/manage.c:774 __enable_irq+0x50/0x80 Hardware name: Xiaomi Pocophone F1 (DT) Workqueue: events wled_ovp_work Call trace: __enable_irq+0x50/0x80 enable_irq+0x48/0xa0 wled_ovp_work+0x18/0x24 process_one_work+0x1d0/0x350 worker_thread+0x13c/0x460 kthread+0x110/0x114 ret_from_fork+0x10/0x20

The bootloader is not the only way to get there. The readback runs after wledN_setup(), and wled4_setup() sets MOD_EN itself on the path where the sink configuration does not already match, as does the tail of wled_auto_string_detection(), which all three setup paths can reach through wled_auto_detection_at_init(). A cold-booted board with a dark panel can therefore reach the same disagreement.

Move the MOD_EN readback into wled_probe() and use it to seed wled->brightness, so the driver starts out agreeing with the hardware, and key the OVP interrupt off wled->brightness instead. The first backlight update then only reprograms the brightness registers and leaves both the module and the interrupt alone. The OVP interrupt also stays armed from probe whenever the module is already enabled, rather than being disabled at probe and only enabled once something writes brightness.

Note that a backlight update requesting brightness 0 before any non-zero one now really does turn the module off wherever MOD_EN was already set, where before it was silently ignored.

wled->brightness is seeded with default-brightness rather than the level the bootloader actually programmed, so the first update can still step the brightness. Reading that level back is version specific and is done in a follow-up, to keep this fix small enough to backport.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142803.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

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
Show 3 more events Show fewer events
Fixed
e9bff555cc77ecb80c7fb7a816b1351ea4d5c738
Fixed
6170378712385dc329bf70ea1da6e9cd87b46f32
Fixed
5eda6b51461932f9fd835ef9e4574650c69c4fe8

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142803.json"

Linux / Kernel

Package

Name
Kernel

Affected 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"