0.0
NA
CVE-2026-64365
HID: letsketch: fix UAF on inrange_timer at driver unbind
Description

In the Linux kernel, the following vulnerability has been resolved: HID: letsketch: fix UAF on inrange_timer at driver unbind letsketch_driver does not provide a .remove callback, but letsketch_probe() arms a per-device timer: timer_setup(&data->inrange_timer, letsketch_inrange_timeout, 0); The timer is re-armed from letsketch_raw_event() with a 100 ms timeout on every pen-in-range report, and its callback dereferences data->input_tablet to deliver a synthetic BTN_TOOL_PEN release. letsketch_data is allocated with devm_kzalloc(), and its input_dev fields are devm-allocated via letsketch_setup_input_tablet(). On device unbind (USB unplug or rmmod), the HID core runs its default teardown and devm cleanup frees both letsketch_data and the input devices. Because no .remove callback exists, nothing drains the timer first: if raw_event armed it within ~100 ms of the unbind, the pending timer fires on freed memory. This is a UAF read of data and of data->input_tablet, followed by input_report_key() / input_sync() into the freed input_dev. The same problem can occur on the probe error path: if hid_hw_start() enabled I/O on an always-poll-quirk device and then failed, raw_event may have armed the timer before devm releases data. Fix by adding a .remove callback that calls hid_hw_stop() first. hid_hw_stop() synchronously kills the URBs that deliver raw_event(), so once it returns no path can re-arm the timer. timer_shutdown_sync() then drains any in-flight callback and permanently disables further mod_timer() calls. Apply the same timer_shutdown_sync() in the probe error path so the timer is guaranteed not to outlive data.

INFO

Published Date :

July 25, 2026, 10:17 a.m.

Last Modified :

Aug. 17, 2026, 5:17 a.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-64365 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
Solution
Fix a Use-After-Free vulnerability in the Linux kernel's HID driver by adding a remove callback.
  • Add a .remove callback to the driver.
  • Call hid_hw_stop() in the remove callback.
  • Use timer_shutdown_sync() to drain pending timers.
  • Ensure timer safety in the probe error path.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-64365 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-64365 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-64365 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-64365 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Aug. 17, 2026

    Action Type Old Value New Value
    Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '2bb6e7143cf70ed281822d26c1848b2897ac36e9', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '523db788c0f84612707638e266e8957ca7e3a756', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '17f5928d7010bc9e002930326b59e60e40c09ee3', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '3eca1a8165b5e7996e699e9df76cb4645e184d42', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': 'df3d8aa1a9392da3de66398e7a03422463806b21', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '46c8beeccd8ab2c863827254a85ea877654a3534', 'versionType': 'git'}], 'programFiles': ['drivers/hid/hid-letsketch.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc3', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/hid/hid-letsketch.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '2bb6e7143cf70ed281822d26c1848b2897ac36e9', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '523db788c0f84612707638e266e8957ca7e3a756', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '17f5928d7010bc9e002930326b59e60e40c09ee3', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '3eca1a8165b5e7996e699e9df76cb4645e184d42', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': 'df3d8aa1a9392da3de66398e7a03422463806b21', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '46c8beeccd8ab2c863827254a85ea877654a3534', 'versionType': 'git'}], 'programFiles': ['drivers/hid/hid-letsketch.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/hid/hid-letsketch.c'], 'defaultStatus': 'affected'}]
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jul. 25, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '2bb6e7143cf70ed281822d26c1848b2897ac36e9', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '523db788c0f84612707638e266e8957ca7e3a756', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '17f5928d7010bc9e002930326b59e60e40c09ee3', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '3eca1a8165b5e7996e699e9df76cb4645e184d42', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': 'df3d8aa1a9392da3de66398e7a03422463806b21', 'versionType': 'git'}, {'status': 'affected', 'version': '33a5c2793451770cb6dcf0cc35c76cfd4b045513', 'lessThan': '46c8beeccd8ab2c863827254a85ea877654a3534', 'versionType': 'git'}], 'programFiles': ['drivers/hid/hid-letsketch.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '5.17'}, {'status': 'unaffected', 'version': '0', 'lessThan': '5.17', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.1.178', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.145', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.96', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.39', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.4', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc3', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/hid/hid-letsketch.c'], 'defaultStatus': 'affected'}]
    Added Description In the Linux kernel, the following vulnerability has been resolved: HID: letsketch: fix UAF on inrange_timer at driver unbind letsketch_driver does not provide a .remove callback, but letsketch_probe() arms a per-device timer: timer_setup(&data->inrange_timer, letsketch_inrange_timeout, 0); The timer is re-armed from letsketch_raw_event() with a 100 ms timeout on every pen-in-range report, and its callback dereferences data->input_tablet to deliver a synthetic BTN_TOOL_PEN release. letsketch_data is allocated with devm_kzalloc(), and its input_dev fields are devm-allocated via letsketch_setup_input_tablet(). On device unbind (USB unplug or rmmod), the HID core runs its default teardown and devm cleanup frees both letsketch_data and the input devices. Because no .remove callback exists, nothing drains the timer first: if raw_event armed it within ~100 ms of the unbind, the pending timer fires on freed memory. This is a UAF read of data and of data->input_tablet, followed by input_report_key() / input_sync() into the freed input_dev. The same problem can occur on the probe error path: if hid_hw_start() enabled I/O on an always-poll-quirk device and then failed, raw_event may have armed the timer before devm releases data. Fix by adding a .remove callback that calls hid_hw_stop() first. hid_hw_stop() synchronously kills the URBs that deliver raw_event(), so once it returns no path can re-arm the timer. timer_shutdown_sync() then drains any in-flight callback and permanently disables further mod_timer() calls. Apply the same timer_shutdown_sync() in the probe error path so the timer is guaranteed not to outlive data.
    Added Reference https://git.kernel.org/stable/c/17f5928d7010bc9e002930326b59e60e40c09ee3
    Added Reference https://git.kernel.org/stable/c/2bb6e7143cf70ed281822d26c1848b2897ac36e9
    Added Reference https://git.kernel.org/stable/c/3eca1a8165b5e7996e699e9df76cb4645e184d42
    Added Reference https://git.kernel.org/stable/c/46c8beeccd8ab2c863827254a85ea877654a3534
    Added Reference https://git.kernel.org/stable/c/523db788c0f84612707638e266e8957ca7e3a756
    Added Reference https://git.kernel.org/stable/c/df3d8aa1a9392da3de66398e7a03422463806b21
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.