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

CVE-2026-64362
HIGH 7.8

En bref

Source
NVD
EPSS
EPSS 0.13 % · centile 2 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Analyzed

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

Faiblesses (CWE)

  • CWE-416 — Utilisation après libération

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 97b741aba918c4143f4208d2421d08ff215c1b49 < 3b9a3919aac6977262f04d5365c0456877522a44 ; affected 97b741aba918c4143f4208d2421d08ff215c1b49 < 4aef9676c26dff8723b56834951cfc6b618f0986 ; affected 97b741aba918c4143f4208d2421d08ff215c1b49 < acce9dee807f21184fff19ad17c8ed464247e7f7 ; affected 97b741aba918c4143f4208d2421d08ff215c1b49 < 33cd1a000daf929356aacf2b191d31714ff0615e ; affected 97b741aba918c4143f4208d2421d08ff215c1b49 < dfc6e61f83113cc18346b6988f07271c0063357d ; affected 97b741aba918c4143f4208d2421d08ff215c1b49 < 4d0d51bc12d246accbfbb94de05d729c68c9b8fb
Linux · Linuxaffected 5.5 ; unaffected 0 < 5.5 ; unaffected 5.10.261 ≤ 5.10.* ; unaffected 5.15.212 ≤ 5.15.* ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD