CVE-2026-64362

HID: lg-g15: cancel pending work on remove to fix a use-after-free

HIGH
7.8
CVSS Score
Published: July 25, 2026 at 08:50 AM UTC
Updated: September 4, 2026 at 04:16 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.1%

Description

In the Linux kernel, the following vulnerability has been resolved: HID: lg-g15: cancel pending work on remove to fix a use-after-free lg_g15_data is allocated with devm and holds a work item. The report handlers schedule that work straight from device input. lg_g15_event() and lg_g15_v2_event() do it on the backlight cycle key, and lg_g510_leds_event() does it too. The worker dereferences the lg_g15_data back through container_of. The driver had no remove callback and never cancelled the work. So if a report scheduled the work and the keyboard was then unplugged, devres freed lg_g15_data while the work was still pending or running, and the worker touched freed memory. This is a use-after-free. It is reachable as a race on device unplug. Add a remove callback that cancels the work before devres frees the state. g15->work is only initialized for the models that schedule it (G15, G15 v2, G510). The G13 and Z-10 leave it zeroed, so guard the cancel on g15->work.func to avoid cancelling a work that was never set up. The g15 NULL test mirrors the one already in lg_g15_raw_event().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.2125.16 ≤ v < 6.1.1785.5 ≤ v < 5.10.2615.5 ≤ v < 5.15.2125.5 ≤ v < 6.1.1785.5 ≤ v < 6.12.965.5 ≤ v < 6.18.395.5 ≤ v < 6.6.1455.5 ≤ v < 7.1.45.5 ≤ v < 7.26.13 ≤ v < 6.18.396.19 ≤ v < 7.1.46.2 ≤ v < 6.6.1456.7 ≤ v < 6.12.967.2 rc17.2 rc297b741aba918c4143f4208d2421d08ff215c1b49
Vendor states this is fixed in 33cd1a000daf929356aacf2b191d31714ff0615e (fixed)
Vendor states this is fixed in 3b9a3919aac6977262f04d5365c0456877522a44 (fixed)
Vendor states this is fixed in 4aef9676c26dff8723b56834951cfc6b618f0986 (fixed)
Vendor states this is fixed in 4d0d51bc12d246accbfbb94de05d729c68c9b8fb (fixed)
Vendor states this is fixed in 7705b4140d188ce22656f6e541ae7ef834c7e11a (fixed)
Vendor states this is fixed in 8131f4226688c4be5f30874d167e44dab838eb09 (fixed)
Vendor states this is fixed in acce9dee807f21184fff19ad17c8ed464247e7f7 (fixed)
Vendor states this is fixed in dfc6e61f83113cc18346b6988f07271c0063357d (fixed)
Vendor states this is fixed in 5.10.261 (unaffected)
Vendor states this is fixed in 5.15.212 (unaffected)
Vendor states this is fixed in 5.5 (unaffected)
Vendor states this is fixed in 6.1.178 (unaffected)
Vendor states this is fixed in 6.12.96 (unaffected)
Vendor states this is fixed in 6.18.39 (unaffected)
Vendor states this is fixed in 6.6.145 (unaffected)
Vendor states this is fixed in 7.1.4 (unaffected)
Vendor states this is fixed in 7.2 (unaffected)

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card