CVE-2026-64362

Source
https://cve.org/CVERecord?id=CVE-2026-64362
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64362.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-64362
Downstream
Published
2026-07-25T08:50:18.008Z
Modified
2026-07-27T04:03:21.448528629Z
Summary
HID: lg-g15: cancel pending work on remove to fix a use-after-free
Details

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

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

lgg15data is allocated with devm and holds a work item. The report handlers schedule that work straight from device input. lgg15event() and lgg15v2event() do it on the backlight cycle key, and lgg510ledsevent() does it too. The worker dereferences the lgg15data 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 lgg15data 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 lgg15raw_event().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64362.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
97b741aba918c4143f4208d2421d08ff215c1b49
Fixed
3b9a3919aac6977262f04d5365c0456877522a44
Fixed
4aef9676c26dff8723b56834951cfc6b618f0986
Fixed
acce9dee807f21184fff19ad17c8ed464247e7f7
Fixed
33cd1a000daf929356aacf2b191d31714ff0615e
Fixed
dfc6e61f83113cc18346b6988f07271c0063357d
Fixed
4d0d51bc12d246accbfbb94de05d729c68c9b8fb
Fixed
8131f4226688c4be5f30874d167e44dab838eb09
Fixed
7705b4140d188ce22656f6e541ae7ef834c7e11a

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.261
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.212
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.178
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

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