CVE-2026-64362CWE-416

CVE-2026-64362

High · published July 25, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
2.1
In the wild
Unconfirmed
What it is

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().

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00126 · 2.1th percentile
Weakness
CWE-416 · Use After Free
Published
2026-07-25T14:17Z
Affected products (9)
ProductVersionsFixed in
linux/linux_kernel≥ 5.5, < 5.10.2615.10.261
linux/linux_kernel≥ 5.11, < 5.15.2125.15.212
linux/linux_kernel≥ 5.16, < 6.1.1786.1.178
linux/linux_kernel≥ 6.2, < 6.6.1456.6.145
linux/linux_kernel≥ 6.7, < 6.12.966.12.96
linux/linux_kernel≥ 6.13, < 6.18.396.18.39
linux/linux_kernel≥ 6.19, < 7.1.47.1.4
linux/linux_kernelall versions—
linux/linux_kernelall versions—
References (8)
EPSS history
Timeline
  • 25 JUL 08:50Z
    HID: lg-g15: cancel pending work on remove to fix a use-after-free
    cvelistv5