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

Published Dec 3, 2026
·
Updated

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

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

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

/ Keep OVP irq disabled until module is enabled / if (!(val & WLED3CTRLREGMODENMASK)) disableirq(wled->ovpirq);

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. MODEN is already set, so the interrupt is left enabled, while wledupdatestatus() still believes the backlight is off and takes

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

on the first backlight update. wledmoduleenable() then schedules wledovpwork(), which calls enableirq() on the already enabled interrupt:

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

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

Move the MODEN readback into wledprobe() 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 MODEN 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.

Affected Software

1 affected component
Linux Linux kernel

Event History

Dec 3, 2026
CVE Published
via MITRE·03:11 AM
Data Sourced
via MITRE·03:11 AM
Description

Frequently Asked Questions

1

Which systems are most likely to encounter this issue?

Systems using the qcom-wled backlight driver are affected when the bootloader hands control to Linux with the backlight already lit and the hardware module-enable bit set. The reported example is a Xiaomi Pocophone F1 device, but the condition is tied to driver behavior and boot state.

2

What triggers the warning after boot?

A first backlight update can cause the driver to enable the WLED module because its stored brightness is zero, even though the hardware is already enabled. That path schedules OVP work which calls enable_irq() for an interrupt that was never disabled, producing an unbalanced IRQ-enable warning.

3

How can I tell whether a system is affected?

Check kernel logs after boot and the first backlight update for an "Unbalanced enable for IRQ" warning, with a stack trace involving __enable_irq(), wled_ovp_work(), and the qcom-wled driver. The condition is associated with a backlight that was already on before the kernel initialized the driver.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203