CVE-2026-97986

Source
https://cve.org/CVERecord?id=CVE-2026-97986
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97986.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-97986
Downstream
Published
2026-09-25T10:23:20Z
Modified
2026-09-26T03:48:36Z
Summary
virtio_input: stop callbacks before unregistering input device
Details

In the Linux kernel, the following vulnerability has been resolved:

virtio_input: stop callbacks before unregistering input device

virtinput_remove() unregisters the input device before resetting the virtio device. virtinput_recv_events() drops vi->lock around input_event(), so clearing vi->ready does not stop a callback that passed the entry check. It can still use vi->idev, requeue buffers and kick the queue.

Reset first, as virtinput_freeze() already does. With the preceding core change, reset waits for callbacks before input_unregister_device() can free vi->idev. Recheck vi->ready after taking the lock again: keep draining completed events so an input packet is not truncated, but stop requeueing buffers and kicking the queue.

With evdev attached, input_unregister_handle() currently waits for an RCU grace period, which also waits out IRQ callbacks. This masks the lifetime bug on PCI and MMIO, but does not protect sleepable callbacks on other transports.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97986.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
271c865161c57cfabca45b93eaa712b19da365bc
Fixed
8226aeee9b9a94cd699fbb51cb230feff46cfaf2
Fixed
a3ba86a270dd87460759214046dc7cbd409ac711
Fixed
5378f7945856a5ed88e6f9850bc7a68f54090135
Fixed
d7808b37da0a619cf1fa541c2384e783fecc2480

Database specific

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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.1.0
Fixed
6.12.111
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.53
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.7

Database specific

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