CVE-2026-64362

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
25/07/2026
Last modified:
25/07/2026

Description

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

Impact