CVE-2026-64365·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.1.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.13% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-64365 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.13%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 7.1.4
Fixed in: 7.1.4
How to fix this CVE
Update your Linux kernel to version 7.1.4 or later to resolve a use-after-free vulnerability in the HID letsketch driver. This flaw occurs when a device is unplugged or the driver is unloaded while a timer callback is pending, causing the kernel to access freed memory. Apply the update through your distribution's package manager to eliminate the risk of kernel memory corruption.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r — if the output shows 6.19 through 7.1.3, your system is vulnerable
- Verify if the letsketch HID driver is loaded: lsmod | grep letsketch — if letsketch appears, the vulnerable component is active on your system
- Search kernel logs for letsketch-related errors: dmesg | grep -i letsketch or journalctl -b | grep -i letsketch — look for segmentation faults, use-after-free warnings, or input device errors
- After patching, confirm the fix: uname -r should show 7.1.4 or later, and verify with dmesg | tail -20 to ensure no new kernel errors appear
FAQ
What is CVE-2026-64365?
This is a use-after-free vulnerability in the Linux kernel's HID letsketch driver that occurs when a USB device is disconnected while a timer callback is still pending, causing the kernel to dereference freed memory structures and potentially leading to system instability or data corruption.
Is CVE-2026-64365 being actively exploited?
No, this vulnerability is not currently listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available. However, it remains a high-severity flaw that should be patched promptly.
What versions of Kernel are affected by CVE-2026-64365?
Linux kernel versions 6.19 through 7.1.3 are vulnerable. The fix is included in kernel 7.1.4 and all subsequent releases.
How do I check if my server is vulnerable to CVE-2026-64365?
Run uname -r to check your kernel version — if it outputs a version between 6.19 and 7.1.3, your system is vulnerable. You can also run lsmod | grep letsketch to confirm the letsketch driver is loaded.
Does Defensia detect CVE-2026-64365?
Yes — Defensia's CVE advisory scanner compares installed kernel package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-64365 will appear in your dashboard with remediation steps and version requirements.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/17f5928d7010bc9e002930326b59e60e40c09ee3
- https://git.kernel.org/stable/c/2bb6e7143cf70ed281822d26c1848b2897ac36e9
- https://git.kernel.org/stable/c/3eca1a8165b5e7996e699e9df76cb4645e184d42
- https://git.kernel.org/stable/c/46c8beeccd8ab2c863827254a85ea877654a3534
- https://git.kernel.org/stable/c/523db788c0f84612707638e266e8957ca7e3a756
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-64365. Free for 1 server.
Get started free