In the Linux kernel, the following vulnerability has been resolved:
HID: appletb-kbd: run inactivity autodim from workqueues
The autodim code in hid-appletb-kbd takes backlight_device->ops_lock via backlight_device_set_brightness() -> mutex_lock() from two different atomic contexts:
* appletb_inactivity_timer() is a struct timer_list callback, so it runs in softirq context. Every expiry triggers
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:591 Call Trace: <IRQ> __might_resched __mutex_lock backlight_device_set_brightness appletb_inactivity_timer call_timer_fn run_timer_softirq
* reset_inactivity_timer() is called from appletb_kbd_hid_event() and appletb_kbd_inp_event(). On real USB hardware these run in softirq/IRQ context (URB completion and input-event dispatch). When the Touch Bar has already been dimmed or turned off, the reset path calls backlight_device_set_brightness() directly to restore brightness, producing the same warning.
Both call sites hit the same mutex_lock()-from-atomic bug. Fix them together by moving the blocking work onto the system workqueue:
* Convert the inactivity timer from struct timer_list to struct delayed_work; the callback (appletb_inactivity_work) now runs in process context where mutex_lock() is legal. * Add a dedicated struct work_struct restore_brightness_work and have reset_inactivity_timer() schedule it instead of calling backlight_device_set_brightness() directly.
Cancel both works synchronously during driver tear-down alongside the existing backlight reference drop.
The semantics are unchanged (same delays, same state transitions on dim, turn-off and user activity); only the execution context of the sleeping call changes. The timer field and callback are renamed to match their new type; reset_inactivity_timer() keeps its name because it is invoked from input event paths that read naturally as "reset the inactivity timer".
CVSS Details
- CVSS 3.1 Base Score: 5.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Ubuntu | — | Upgrade linux-image-7.0.0-1015-raspi-realtimeUpgrade linux-image-7.0.0-1015-raspiUpgrade linux-image-nvidia-64k-7.0Upgrade linux-image-virtual-hwe-26.04Upgrade linux-image-nvidia-7.0Upgrade linux-image-oem-24.04bUpgrade linux-image-aws-64k-7.0Upgrade linux-image-nvidia-bos-7.0Upgrade linux-image-7.0.0-1016-nvidiaUpgrade linux-image-realtime-7.0Upgrade linux-image-7.0.0-1009-aws-64kUpgrade linux-image-oracleUpgrade linux-image-7.0.0-1008-oracle-64kUpgrade linux-image-ibmUpgrade linux-image-7.0.0-1003-gke-64kUpgrade linux-image-nvidia-bos-64k-7.0Upgrade linux-image-azure-fde-7.0Upgrade linux-image-gcp-7.0Upgrade linux-image-7.0.0-1010-azureUpgrade linux-image-7.0.0-28-realtimeUpgrade linux-image-ibm-7.0Upgrade linux-image-gke-hwe-26.04Upgrade linux-image-7.0.0-28-realtime-64kUpgrade linux-image-virtual-7.0Upgrade linux-image-7.0.0-1009-awsUpgrade linux-image-7.0.0-1009-oemUpgrade linux-image-7.0.0-28-genericUpgrade linux-image-7.0.0-1009-azure-fdeUpgrade linux-image-oem-24.04Upgrade linux-image-gke-64kUpgrade linux-image-generic-64kUpgrade linux-image-7.0.0-2016-nvidia-bos-64kUpgrade linux-image-aws-7.0Upgrade linux-image-7.0.0-28-generic-64kUpgrade linux-image-raspi-realtime-7.0Upgrade linux-image-genericUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-7.0.0-2016-nvidia-bosUpgrade linux-image-gke-64k-hwe-26.04Upgrade linux-image-gkeUpgrade linux-image-7.0.0-1011-gcp-64kUpgrade linux-image-7.0.0-1008-gcp-64kUpgrade linux-image-gke-7.0Upgrade linux-image-7.0.0-1008-gcpUpgrade linux-image-generic-64k-hwe-26.04Upgrade linux-image-nvidiaUpgrade linux-image-nvidia-bosUpgrade linux-image-oracle-7.0Upgrade linux-image-azureUpgrade linux-image-raspi-realtimeUpgrade linux-image-oem-24.04cUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-raspiUpgrade linux-image-nvidia-hwe-26.04Upgrade linux-image-gcp-64k-7.0Upgrade linux-image-realtime-64k-hwe-26.04Upgrade linux-image-raspi-7.0Upgrade linux-image-generic-7.0Upgrade linux-image-gcp-64kUpgrade linux-image-nvidia-64k-hwe-26.04Upgrade linux-image-nvidia-64kUpgrade linux-image-gke-64k-7.0Upgrade linux-image-generic-hwe-26.04Upgrade linux-image-7.0.0-1014-azureUpgrade linux-image-7.0.0-1011-gcpUpgrade linux-image-realtime-hwe-26.04Upgrade linux-image-oem-24.04dUpgrade linux-image-oem-7.0Upgrade linux-image-gcpUpgrade linux-image-7.0.0-1008-oracleUpgrade linux-image-oem-24.04aUpgrade linux-image-realtime-64k-7.0Upgrade linux-image-oem-26.04aUpgrade linux-image-realtimeUpgrade linux-image-7.0.0-1010-ibmUpgrade linux-image-oem-26.04Upgrade linux-image-virtual-hwe-24.04Upgrade linux-image-virtualUpgrade linux-image-azure-7.0Upgrade linux-image-awsUpgrade linux-image-oracle-64kUpgrade linux-image-generic-64k-7.0Upgrade linux-image-azure-fdeUpgrade linux-image-aws-64kUpgrade linux-image-7.0.0-1016-nvidia-64kUpgrade linux-image-7.0.0-1003-gkeUpgrade linux-image-realtime-64kUpgrade linux-image-oracle-64k-7.0Upgrade linux-image-nvidia-bos-64k | Jul 20, 2026 | May 28, 2026 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub