CVE-2026-64365
HID: letsketch: fix UAF on inrange_timer at driver unbind
Mitigation
- Upgrade Linux to 46c8beeccd8ab2c863827254a85ea877654a3534 or later.
Who should check
- Anyone running Linux >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 2bb6e7143cf70ed281822d26c1848b2897ac36e9; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 523db788c0f84612707638e266e8957ca7e3a756; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 17f5928d7010bc9e002930326b59e60e40c09ee3; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 3eca1a8165b5e7996e699e9df76cb4645e184d42; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < df3d8aa1a9392da3de66398e7a03422463806b21; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 46c8beeccd8ab2c863827254a85ea877654a3534
- Anyone running Linux 5.17
Vulnerability facts
- Affected
- Linux >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 2bb6e7143cf70ed281822d26c1848b2897ac36e9; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 523db788c0f84612707638e266e8957ca7e3a756; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 17f5928d7010bc9e002930326b59e60e40c09ee3; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 3eca1a8165b5e7996e699e9df76cb4645e184d42; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < df3d8aa1a9392da3de66398e7a03422463806b21; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 46c8beeccd8ab2c863827254a85ea877654a3534; Linux 5.17
- Fixed in
- Linux 2bb6e7143cf70ed281822d26c1848b2897ac36e9, Linux 523db788c0f84612707638e266e8957ca7e3a756, Linux 17f5928d7010bc9e002930326b59e60e40c09ee3, Linux 3eca1a8165b5e7996e699e9df76cb4645e184d42, Linux 46c8beeccd8ab2c863827254a85ea877654a3534
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.18% chance of exploitation in 30 days (percentile 4, 2026-11-26)
- CWE
- CWE-416
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 2bb6e7143cf70ed281822d26c1848b2897ac36e9; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 523db788c0f84612707638e266e8957ca7e3a756; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 17f5928d7010bc9e002930326b59e60e40c09ee3; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 3eca1a8165b5e7996e699e9df76cb4645e184d42; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < df3d8aa1a9392da3de66398e7a03422463806b21; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 46c8beeccd8ab2c863827254a85ea877654a3534 | — | cvelist |
| Linux | 5.17 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-64365. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-64365.md Affected: Linux >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 2bb6e7143cf70ed281822d26c1848b2897ac36e9; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 523db788c0f84612707638e266e8957ca7e3a756; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 17f5928d7010bc9e002930326b59e60e40c09ee3; >= 33a5c2793451770cb6dcf0c… Fixed in: Linux 2bb6e7143cf70ed281822d26c1848b2897ac36e9, Linux 523db788c0f84612707638e266e8957ca7e3a756, Linux 17f5928d7010bc9e002930326b59e60e40c09ee3, Linux 3eca1a8165b5e7996e699e9df76cb4645e184d42, Linux 46c8beeccd8ab2c863827254a85ea877654a3534 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/2bb6e7143cf70ed281822d26c1848b2897ac36e9
- https://git.kernel.org/stable/c/523db788c0f84612707638e266e8957ca7e3a756
- https://git.kernel.org/stable/c/17f5928d7010bc9e002930326b59e60e40c09ee3
- https://git.kernel.org/stable/c/3eca1a8165b5e7996e699e9df76cb4645e184d42
- https://git.kernel.org/stable/c/df3d8aa1a9392da3de66398e7a03422463806b21
- https://git.kernel.org/stable/c/46c8beeccd8ab2c863827254a85ea877654a3534
FAQ
Is CVE-2026-64365 being exploited?
There is no confirmed exploitation: CVE-2026-64365 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.18% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-64365?
High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-64365?
Linux >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 2bb6e7143cf70ed281822d26c1848b2897ac36e9; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 523db788c0f84612707638e266e8957ca7e3a756; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 17f5928d7010bc9e002930326b59e60e40c09ee3; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 3eca1a8165b5e7996e699e9df76cb4645e184d42; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < df3d8aa1a9392da3de66398e7a03422463806b21; >= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, < 46c8beeccd8ab2c863827254a85ea877654a3534; Linux 5.17.
Is there a fix for CVE-2026-64365?
Yes. Fixed in Linux 2bb6e7143cf70ed281822d26c1848b2897ac36e9, Linux 523db788c0f84612707638e266e8957ca7e3a756, Linux 17f5928d7010bc9e002930326b59e60e40c09ee3, Linux 3eca1a8165b5e7996e699e9df76cb4645e184d42, Linux 46c8beeccd8ab2c863827254a85ea877654a3534. Upgrade Linux to 46c8beeccd8ab2c863827254a85ea877654a3534 or later.
How do I check if I'm affected by CVE-2026-64365?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.