CVE-2026-64340

Source
https://cve.org/CVERecord?id=CVE-2026-64340
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64340.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-64340
Downstream
Related
Published
2026-07-25T08:50:03.896Z
Modified
2026-08-18T03:31:02.774331439Z
Summary
USB: legousbtower: fix use-after-free on disconnect race
Details

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 mutexunlock() is non-atomic") [2] 2b9d9e0a9ba0 ("locking/mutex: Clarify that mutexunlock(), and most other sleeping locks, can still use the lock object after it's unlocked")

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64340.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
18bcbcfe9ca2308ebffb40068b51803da9315d97
Fixed
11d069f85851997b4ea0adf242ed9672dc749b8f
Fixed
b4222c05066b252b451f9c8c4730b5b60824ea66
Fixed
6462de75d2e370c7e74dcfb7b4ae79eb5a6a55ee
Fixed
0b57e5ddbd89df3bc367463de3d2ca66f99a1a5e
Fixed
ab2bfd7bec4f134b377ec42f513e90c35db94160
Fixed
766738ecf2b819e54d38763c8d1c8ae6cff14b39
Fixed
9ba62966461a8e3cc593b62c56ec62eb2d80436d
Fixed
62fc8eb1b1481051f7bab4aa93d79809053dd09f

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64340.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.25
Fixed
5.10.261
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.212
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.178
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.96
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.39
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.4

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64340.json"