{"id":"CVE-2026-64340","summary":"USB: legousbtower: fix use-after-free on disconnect race","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nUSB: legousbtower: fix use-after-free on disconnect race\n\nmutex_unlock() may access the mutex structure after releasing the lock\nand therefore cannot be used to manage lifetime of objects directly\n(unlike spinlocks and refcounts). [1][2]\n\nUse a kref to release the driver data to avoid use-after-free in\nmutex_unlock() when release() races with disconnect().\n\n[1] a51749ab34d9 (\"locking/mutex: Document that mutex_unlock() is\n                   non-atomic\")\n[2] 2b9d9e0a9ba0 (\"locking/mutex: Clarify that mutex_unlock(), and most\n                   other sleeping locks, can still use the lock object\n                   after it's unlocked\")","modified":"2026-08-18T03:31:02.774331439Z","published":"2026-07-25T08:50:03.896Z","related":["openSUSE-SU-2026:11476-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64340.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0b57e5ddbd89df3bc367463de3d2ca66f99a1a5e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/11d069f85851997b4ea0adf242ed9672dc749b8f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/62fc8eb1b1481051f7bab4aa93d79809053dd09f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6462de75d2e370c7e74dcfb7b4ae79eb5a6a55ee"},{"type":"WEB","url":"https://git.kernel.org/stable/c/766738ecf2b819e54d38763c8d1c8ae6cff14b39"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9ba62966461a8e3cc593b62c56ec62eb2d80436d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ab2bfd7bec4f134b377ec42f513e90c35db94160"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b4222c05066b252b451f9c8c4730b5b60824ea66"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64340.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64340"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.9.0"}