# CVE-2026-64365: HID: letsketch: fix UAF on inrange\_timer at driver unbind

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.18% (percentile 4, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-07-25T08:50:20.039Z
- **Modified:** 2026-11-06T17:18:52.057Z

## Who should check

- Anyone running Linux \>= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, \< 2bb6e7143cf70ed281822d26c1848b2897ac36e9; \>= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, \< 523db788c0f84612707638e266e8957ca7e3a756; \>= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, \< 17f5928d7010bc9e002930326b59e60e40c09ee3; \>= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, \< 3eca1a8165b5e7996e699e9df76cb4645e184d42; \>= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, \< df3d8aa1a9392da3de66398e7a03422463806b21; \>= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, \< 46c8beeccd8ab2c863827254a85ea877654a3534
- Anyone running Linux 5.17

## 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

- Linux: \>= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, \< 2bb6e7143cf70ed281822d26c1848b2897ac36e9; \>= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, \< 523db788c0f84612707638e266e8957ca7e3a756; \>= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, \< 17f5928d7010bc9e002930326b59e60e40c09ee3; \>= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, \< 3eca1a8165b5e7996e699e9df76cb4645e184d42; \>= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, \< df3d8aa1a9392da3de66398e7a03422463806b21; \>= 33a5c2793451770cb6dcf0cc35c76cfd4b045513, \< 46c8beeccd8ab2c863827254a85ea877654a3534 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 46c8beeccd8ab2c863827254a85ea877654a3534 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/2bb6e7143cf70ed281822d26c1848b2897ac36e9>
- patch: <https://git.kernel.org/stable/c/523db788c0f84612707638e266e8957ca7e3a756>
- patch: <https://git.kernel.org/stable/c/17f5928d7010bc9e002930326b59e60e40c09ee3>
- patch: <https://git.kernel.org/stable/c/3eca1a8165b5e7996e699e9df76cb4645e184d42>
- patch: <https://git.kernel.org/stable/c/df3d8aa1a9392da3de66398e7a03422463806b21>
- patch: <https://git.kernel.org/stable/c/46c8beeccd8ab2c863827254a85ea877654a3534>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64365>

HTML: <https://flawdb.com/CVE-2026-64365> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64365>
