{"id":"CVE-2026-97986","aliases":["CVE-2026-97986"],"related":[],"kind":"vulnerability","state":"published","title":"virtio_input: stop callbacks before unregistering input device","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio_input: stop callbacks before unregistering input device\n\nvirtinput_remove() unregisters the input device before resetting the\nvirtio device. virtinput_recv_events() drops vi->lock around input_event(),\nso clearing vi->ready does not stop a callback that passed the entry check.\nIt can still use vi->idev, requeue buffers and kick the queue.\n\nReset first, as virtinput_freeze() already does. With the preceding core\nchange, reset waits for callbacks before input_unregister_device() can\nfree vi->idev. Recheck vi->ready after taking the lock again: keep draining\ncompleted events so an input packet is not truncated, but stop requeueing\nbuffers and kicking the queue.\n\nWith evdev attached, input_unregister_handle() currently waits for an RCU\ngrace period, which also waits out IRQ callbacks. This masks the lifetime\nbug on PCI and MMIO, but does not protect sleepable callbacks on other\ntransports.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nvirtio_input: stop callbacks before unregistering input device\n\nvirtinput_remove() unregisters the input device before resetting the\nvirtio device. virtinput_recv_events() drops vi->lock around input_event(),\nso clearing vi->ready does not stop a callback that passed the entry check.\nIt can still use vi->idev, requeue buffers and kick the queue.\n\nReset first, as virtinput_freeze() already does. With the preceding core\nchange, reset waits for callbacks before input_unregister_device() can\nfree vi->idev. Recheck vi->ready after taking the lock again: keep draining\ncompleted events so an input packet is not truncated, but stop requeueing\nbuffers and kicking the queue.\n\nWith evdev attached, input_unregister_handle() currently waits for an RCU\ngrace period, which also waits out IRQ callbacks. This masks the lifetime\nbug on PCI and MMIO, but does not protect sleepable callbacks on other\ntransports.","source":"cvelist"}],"published":"2026-09-25T10:23:20.801Z","modified":"2026-10-19T10:17:49.960Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"271c865161c57cfabca45b93eaa712b19da365bc","fixed":"3ae729b1f8ab81d1244061872db2fb0ebb110d2a","status":"affected"},{"type":"git","introduced":"271c865161c57cfabca45b93eaa712b19da365bc","fixed":"81073bca2062c916c818f2744fbab545a5c4982b","status":"affected"},{"type":"git","introduced":"271c865161c57cfabca45b93eaa712b19da365bc","fixed":"8226aeee9b9a94cd699fbb51cb230feff46cfaf2","status":"affected"},{"type":"git","introduced":"271c865161c57cfabca45b93eaa712b19da365bc","fixed":"a3ba86a270dd87460759214046dc7cbd409ac711","status":"affected"},{"type":"git","introduced":"271c865161c57cfabca45b93eaa712b19da365bc","fixed":"5378f7945856a5ed88e6f9850bc7a68f54090135","status":"affected"},{"type":"git","introduced":"271c865161c57cfabca45b93eaa712b19da365bc","fixed":"d7808b37da0a619cf1fa541c2384e783fecc2480","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.1","status":"unaffected"},{"type":"semver","introduced":"6.1.189","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.53","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.7","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/3ae729b1f8ab81d1244061872db2fb0ebb110d2a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/81073bca2062c916c818f2744fbab545a5c4982b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8226aeee9b9a94cd699fbb51cb230feff46cfaf2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a3ba86a270dd87460759214046dc7cbd409ac711","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5378f7945856a5ed88e6f9850bc7a68f54090135","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d7808b37da0a619cf1fa541c2384e783fecc2480","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-97986","url":"https://www.cve.org/CVERecord?id=CVE-2026-97986","licence":"CVE Terms of Use","modified":"2026-10-19T09:11:53.304Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-97986","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97986","licence":"Public domain","modified":"2026-10-19T10:17:49.960Z"}],"updatedAt":"2026-11-25T22:59:41.013Z","epss":{"score":0.00173,"percentile":0.06971,"date":"2026-12-01T12:00:22.000Z"}}