CVE-2026-64362 (GCVE-0-2026-64362)

Vulnerability from cvelistv5 – Published: 2026-07-25 08:50 – Updated: 2026-07-25 08:50
VLAI
Title
HID: lg-g15: cancel pending work on remove to fix a use-after-free
Summary
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().
Severity
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 97b741aba918c4143f4208d2421d08ff215c1b49 , < 3b9a3919aac6977262f04d5365c0456877522a44 (git)
Affected: 97b741aba918c4143f4208d2421d08ff215c1b49 , < 4aef9676c26dff8723b56834951cfc6b618f0986 (git)
Affected: 97b741aba918c4143f4208d2421d08ff215c1b49 , < acce9dee807f21184fff19ad17c8ed464247e7f7 (git)
Affected: 97b741aba918c4143f4208d2421d08ff215c1b49 , < 33cd1a000daf929356aacf2b191d31714ff0615e (git)
Affected: 97b741aba918c4143f4208d2421d08ff215c1b49 , < dfc6e61f83113cc18346b6988f07271c0063357d (git)
Affected: 97b741aba918c4143f4208d2421d08ff215c1b49 , < 4d0d51bc12d246accbfbb94de05d729c68c9b8fb (git)
Affected: 97b741aba918c4143f4208d2421d08ff215c1b49 , < 8131f4226688c4be5f30874d167e44dab838eb09 (git)
Affected: 97b741aba918c4143f4208d2421d08ff215c1b49 , < 7705b4140d188ce22656f6e541ae7ef834c7e11a (git)
Create a notification for this product.
Linux Linux Affected: 5.5
Unaffected: 0 , < 5.5 (semver)
Unaffected: 5.10.261 , ≤ 5.10.* (semver)
Unaffected: 5.15.212 , ≤ 5.15.* (semver)
Unaffected: 6.1.178 , ≤ 6.1.* (semver)
Unaffected: 6.6.145 , ≤ 6.6.* (semver)
Unaffected: 6.12.96 , ≤ 6.12.* (semver)
Unaffected: 6.18.39 , ≤ 6.18.* (semver)
Unaffected: 7.1.4 , ≤ 7.1.* (semver)
Unaffected: 7.2-rc3 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/hid/hid-lg-g15.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "3b9a3919aac6977262f04d5365c0456877522a44",
              "status": "affected",
              "version": "97b741aba918c4143f4208d2421d08ff215c1b49",
              "versionType": "git"
            },
            {
              "lessThan": "4aef9676c26dff8723b56834951cfc6b618f0986",
              "status": "affected",
              "version": "97b741aba918c4143f4208d2421d08ff215c1b49",
              "versionType": "git"
            },
            {
              "lessThan": "acce9dee807f21184fff19ad17c8ed464247e7f7",
              "status": "affected",
              "version": "97b741aba918c4143f4208d2421d08ff215c1b49",
              "versionType": "git"
            },
            {
              "lessThan": "33cd1a000daf929356aacf2b191d31714ff0615e",
              "status": "affected",
              "version": "97b741aba918c4143f4208d2421d08ff215c1b49",
              "versionType": "git"
            },
            {
              "lessThan": "dfc6e61f83113cc18346b6988f07271c0063357d",
              "status": "affected",
              "version": "97b741aba918c4143f4208d2421d08ff215c1b49",
              "versionType": "git"
            },
            {
              "lessThan": "4d0d51bc12d246accbfbb94de05d729c68c9b8fb",
              "status": "affected",
              "version": "97b741aba918c4143f4208d2421d08ff215c1b49",
              "versionType": "git"
            },
            {
              "lessThan": "8131f4226688c4be5f30874d167e44dab838eb09",
              "status": "affected",
              "version": "97b741aba918c4143f4208d2421d08ff215c1b49",
              "versionType": "git"
            },
            {
              "lessThan": "7705b4140d188ce22656f6e541ae7ef834c7e11a",
              "status": "affected",
              "version": "97b741aba918c4143f4208d2421d08ff215c1b49",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/hid/hid-lg-g15.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.5"
            },
            {
              "lessThan": "5.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.261",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.212",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.178",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.145",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.96",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.39",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2-rc3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.261",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.212",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.178",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.145",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.96",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.39",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.4",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2-rc3",
                  "versionStartIncluding": "5.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nHID: lg-g15: cancel pending work on remove to fix a use-after-free\n\nlg_g15_data is allocated with devm and holds a work item. The report\nhandlers schedule that work straight from device input.\nlg_g15_event() and lg_g15_v2_event() do it on the backlight cycle key,\nand lg_g510_leds_event() does it too. The worker dereferences the\nlg_g15_data back through container_of.\n\nThe driver had no remove callback and never cancelled the work. So if a\nreport scheduled the work and the keyboard was then unplugged, devres\nfreed lg_g15_data while the work was still pending or running, and the\nworker touched freed memory. This is a use-after-free. It is reachable\nas a race on device unplug.\n\nAdd a remove callback that cancels the work before devres frees the\nstate. g15-\u003ework is only initialized for the models that schedule it\n(G15, G15 v2, G510). The G13 and Z-10 leave it zeroed, so guard the\ncancel on g15-\u003ework.func to avoid cancelling a work that was never set\nup. The g15 NULL test mirrors the one already in lg_g15_raw_event()."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-07-25T08:50:18.008Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/3b9a3919aac6977262f04d5365c0456877522a44"
        },
        {
          "url": "https://git.kernel.org/stable/c/4aef9676c26dff8723b56834951cfc6b618f0986"
        },
        {
          "url": "https://git.kernel.org/stable/c/acce9dee807f21184fff19ad17c8ed464247e7f7"
        },
        {
          "url": "https://git.kernel.org/stable/c/33cd1a000daf929356aacf2b191d31714ff0615e"
        },
        {
          "url": "https://git.kernel.org/stable/c/dfc6e61f83113cc18346b6988f07271c0063357d"
        },
        {
          "url": "https://git.kernel.org/stable/c/4d0d51bc12d246accbfbb94de05d729c68c9b8fb"
        },
        {
          "url": "https://git.kernel.org/stable/c/8131f4226688c4be5f30874d167e44dab838eb09"
        },
        {
          "url": "https://git.kernel.org/stable/c/7705b4140d188ce22656f6e541ae7ef834c7e11a"
        }
      ],
      "title": "HID: lg-g15: cancel pending work on remove to fix a use-after-free",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-64362",
    "datePublished": "2026-07-25T08:50:18.008Z",
    "dateReserved": "2026-07-19T15:36:31.783Z",
    "dateUpdated": "2026-07-25T08:50:18.008Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-64362",
      "date": "2026-07-26",
      "epss": "0.00177",
      "percentile": "0.07471"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2026-64362\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-07-25T10:17:18.820\",\"lastModified\":\"2026-07-25T10:17:18.820\",\"vulnStatus\":\"Received\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nHID: lg-g15: cancel pending work on remove to fix a use-after-free\\n\\nlg_g15_data is allocated with devm and holds a work item. The report\\nhandlers schedule that work straight from device input.\\nlg_g15_event() and lg_g15_v2_event() do it on the backlight cycle key,\\nand lg_g510_leds_event() does it too. The worker dereferences the\\nlg_g15_data back through container_of.\\n\\nThe driver had no remove callback and never cancelled the work. So if a\\nreport scheduled the work and the keyboard was then unplugged, devres\\nfreed lg_g15_data while the work was still pending or running, and the\\nworker touched freed memory. This is a use-after-free. It is reachable\\nas a race on device unplug.\\n\\nAdd a remove callback that cancels the work before devres frees the\\nstate. g15-\u003ework is only initialized for the models that schedule it\\n(G15, G15 v2, G510). The G13 and Z-10 leave it zeroed, so guard the\\ncancel on g15-\u003ework.func to avoid cancelling a work that was never set\\nup. The g15 NULL test mirrors the one already in lg_g15_raw_event().\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/hid/hid-lg-g15.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"97b741aba918c4143f4208d2421d08ff215c1b49\",\"lessThan\":\"3b9a3919aac6977262f04d5365c0456877522a44\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"97b741aba918c4143f4208d2421d08ff215c1b49\",\"lessThan\":\"4aef9676c26dff8723b56834951cfc6b618f0986\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"97b741aba918c4143f4208d2421d08ff215c1b49\",\"lessThan\":\"acce9dee807f21184fff19ad17c8ed464247e7f7\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"97b741aba918c4143f4208d2421d08ff215c1b49\",\"lessThan\":\"33cd1a000daf929356aacf2b191d31714ff0615e\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"97b741aba918c4143f4208d2421d08ff215c1b49\",\"lessThan\":\"dfc6e61f83113cc18346b6988f07271c0063357d\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"97b741aba918c4143f4208d2421d08ff215c1b49\",\"lessThan\":\"4d0d51bc12d246accbfbb94de05d729c68c9b8fb\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"97b741aba918c4143f4208d2421d08ff215c1b49\",\"lessThan\":\"8131f4226688c4be5f30874d167e44dab838eb09\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"97b741aba918c4143f4208d2421d08ff215c1b49\",\"lessThan\":\"7705b4140d188ce22656f6e541ae7ef834c7e11a\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/hid/hid-lg-g15.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.5\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.5\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.261\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.212\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.178\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.145\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.96\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.39\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.1.4\",\"lessThanOrEqual\":\"7.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"7.2-rc3\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{},\"references\":[{\"url\":\"https://git.kernel.org/stable/c/33cd1a000daf929356aacf2b191d31714ff0615e\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/3b9a3919aac6977262f04d5365c0456877522a44\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/4aef9676c26dff8723b56834951cfc6b618f0986\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/4d0d51bc12d246accbfbb94de05d729c68c9b8fb\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/7705b4140d188ce22656f6e541ae7ef834c7e11a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/8131f4226688c4be5f30874d167e44dab838eb09\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/acce9dee807f21184fff19ad17c8ed464247e7f7\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"},{\"url\":\"https://git.kernel.org/stable/c/dfc6e61f83113cc18346b6988f07271c0063357d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}]}}",
    "suse_vex": {
      "aggregate_severity": "not set",
      "current_release_date": "2026-07-25T16:00:58Z",
      "cve": "CVE-2026-64362",
      "id": "CVE-2026-64362",
      "initial_release_date": "2026-07-25T16:00:58Z",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-64362",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2026-64362.json",
      "version": "2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…