{"id":"CVE-2026-80659","summary":"mmc: vub300: defer reset until cmd_mutex is unlocked","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: vub300: defer reset until cmd_mutex is unlocked\n\nvub300_cmndwork_thread() holds cmd_mutex while it sends a command and\nwaits for the command response.  If the response wait times out,\n__vub300_command_response() kills the command URBs and then synchronously\nresets the USB device through usb_reset_device().\n\nThat reset path re-enters the driver through vub300_pre_reset(), which\nalso takes cmd_mutex.  The worker therefore tries to acquire the same\nmutex recursively while it is still holding it from the command path.\n\nThis issue was found by our static analysis tool and then manually\nreviewed against the current tree.\n\nThe grounded PoC kept the real worker and timeout/reset carrier:\n\n  vub300_cmndwork_thread()\n  __vub300_command_response()\n  usb_lock_device_for_reset()\n  usb_reset_device()\n  vub300_pre_reset()\n\nLockdep reported the same-task recursive acquisition on cmd_mutex:\n\n  WARNING: possible recursive locking detected\n  ... (&test_vub300.cmd_mutex) ... at: usb_reset_device... [vuln_msv]\n  ... (&test_vub300.cmd_mutex) ... at: vub300_cmndwork_thread+0x12/0x20 [vuln_msv]\n  Workqueue: vub300_cmd_wq vub300_cmndwork_thread [vuln_msv]\n  *** DEADLOCK ***\n\nReturn a flag from __vub300_command_response() when the timeout path needs\na device reset, then perform the reset after vub300_cmndwork_thread() has\ncleared the in-flight command state and dropped cmd_mutex.  The reset is\nstill attempted before mmc_request_done(), preserving the existing request\ncompletion ordering while avoiding the recursive lock.","modified":"2026-08-30T03:48:16.275852680Z","published":"2026-08-28T06:49:04.389Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80659.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2e6b9a394206c76dd417c991312f349435ef35e6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7ee7a77ec2f446109ab52cc80ace7acc22ab6211"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8344611477c9241f45f20981990780fc5f0996f8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8672b8bdbd2063b3fcbd75f729e4706fcdad2257"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9f5e04235a0b59e6e30af9f45511addf2604d757"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bf9848a22a8e50d39d5e8d871581f0a8110f16b3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c2e1d33929565fa14c48d8a5a45edc3ebfc941b2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee5fb641c4ccac8406c668d3e947eb20ce44f233"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80659.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80659"},{"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":"88095e7b473a3d9ec3b9c60429576e9cbd327c89"},{"fixed":"8672b8bdbd2063b3fcbd75f729e4706fcdad2257"},{"fixed":"8344611477c9241f45f20981990780fc5f0996f8"},{"fixed":"2e6b9a394206c76dd417c991312f349435ef35e6"},{"fixed":"7ee7a77ec2f446109ab52cc80ace7acc22ab6211"},{"fixed":"9f5e04235a0b59e6e30af9f45511addf2604d757"},{"fixed":"bf9848a22a8e50d39d5e8d871581f0a8110f16b3"},{"fixed":"c2e1d33929565fa14c48d8a5a45edc3ebfc941b2"},{"fixed":"ee5fb641c4ccac8406c668d3e947eb20ce44f233"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80659.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"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.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80659.json"}}],"schema_version":"1.9.0"}