CVE-2026-64340·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: USB: legousbtower: fix use-after-free on disconnect race mutex_unlock() may access the mutex structure after releasing the lock and therefore cannot be used to manage lifetime of objects directly (unlike spinlocks and refcounts). [1][2] Use a kref to release the driver data to avoid use-after-free in mutex_unlock() when release() races with disconnect(). [1] a51749ab34d9 ("locking/mutex: Document that mutex_unlock() is non-atomic") [2] 2b9d9e0a9ba0 ("locking/mutex: Clarify that mutex_unlock(), and most other sleeping locks, can still use the lock object after it's unlocked")
- 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-64340 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 USB legousbtower driver that can occur during device disconnection. This issue affects kernel versions 6.19 through 7.1.3 and requires a kernel upgrade followed by a system reboot to take effect.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version: uname -r
- Verify if legousbtower module is loaded: lsmod | grep legousbtower
- Review kernel logs for USB disconnection errors: dmesg | grep -i 'legousbtower\|use.after.free\|use_after_free'
- Confirm patched version is running: uname -r | grep -E '7\.1\.[4-9]|7\.[2-9]|[8-9]\.'
FAQ
What is CVE-2026-64340?
CVE-2026-64340 is a use-after-free vulnerability in the Linux kernel's USB legousbtower driver where mutex operations incorrectly manage object lifetime, causing kernel memory safety issues when the device disconnects while operations are in flight.
Is CVE-2026-64340 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2026-64340?
Linux kernel versions 6.19 through 7.1.3 are vulnerable. Version 7.1.4 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-64340?
Run 'uname -r' to see your kernel version; if it shows 6.19.x through 7.1.3, your system is vulnerable. Then verify if legousbtower is present with 'lsmod | grep legousbtower'.
Does Defensia detect CVE-2026-64340?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-64340 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0b57e5ddbd89df3bc367463de3d2ca66f99a1a5e
- https://git.kernel.org/stable/c/11d069f85851997b4ea0adf242ed9672dc749b8f
- https://git.kernel.org/stable/c/62fc8eb1b1481051f7bab4aa93d79809053dd09f
- https://git.kernel.org/stable/c/6462de75d2e370c7e74dcfb7b4ae79eb5a6a55ee
- https://git.kernel.org/stable/c/766738ecf2b819e54d38763c8d1c8ae6cff14b39
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-64340. Free for 1 server.
Get started free