Description
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.
Published: 2026-09-25
Score: 7.0 High
EPSS: < 1% Very Low
KEV: No
Impact: Use‑after‑free leading to kernel instability
Action: Apply patch
AI Analysis

Impact

The vulnerability resides in the virtio_input driver of the Linux kernel. During removal of a virtio input device the driver calls input_unregister_device before the underlying virtio device is reset. Because virtinput_recv_events clears the ready flag after dropping the lock around input_event, callbacks that started before removal can still access the freed input device handle, requeue buffers, and trigger the queue. This race condition results in a use‑after‑free that can corrupt kernel memory, cause a panic, or cause other disruptive effects.

Affected Systems

The flaw affects any Linux kernel release that contains the buggy virtio_input implementation prior to the fix committed in the referenced patches (5378f7945856, 8226aeee9b9a, a3ba86a270dd, d7808b37da0). Systems running a virtual machine that relies on virtio input devices—such as many cloud or virtualization environments—are at risk. The fix is included in kernel versions following those commits; upgrading to a patched kernel removes the vulnerability.

Risk and Exploitability

The CVSS score of 7.0 indicates high severity, and the EPSS score of < 1% indicates a very low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog, suggesting limited public exploitation to date. Based on the description, it is inferred that the attack appears to require local or near‑local access to trigger virtio input events during device removal, making it a high‑severity denial‑of‑service risk if an attacker can control the device or its removal. In environments where privileged users can force module unloading or hot‑unplug devices, the risk is higher; otherwise the likelihood of exploitation remains low.

Generated by OpenCVE AI on October 1, 2026 at 05:58 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the virtio_input patch series (5378f7945856, 8226aeee9b9a, a3ba86a270dd, d7808b37da0).
  • If a kernel upgrade is not immediately possible, disable the virtio_input module or prevent its loading (for example, by adding 'blacklist virtio_input' to /etc/modprobe.d).
  • Monitor system logs for kernel panics, Oops messages, or abnormal input device activity; if symptoms appear, expedite kernel upgrade or consider disabling the driver until a permanent fix is available.

Generated by OpenCVE AI on October 1, 2026 at 05:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DLA Debian DLA DLA-4841-1 linux security update
Debian DSA Debian DSA DSA-6528-1 linux security update
History

Sat, 03 Oct 2026 11:15:00 +0000


Thu, 01 Oct 2026 04:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416
CWE-670

Wed, 30 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Moderate


Fri, 25 Sep 2026 21:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416
CWE-670

Fri, 25 Sep 2026 10:30:00 +0000

Type Values Removed Values Added
Description 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.
Title virtio_input: stop callbacks before unregistering input device
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:11:53.304Z

Reserved: 2026-09-25T10:18:58.208Z

Link: CVE-2026-97986

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:26.683

Modified: 2026-10-19T10:17:49.960

Link: CVE-2026-97986

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-97986 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T06:00:13Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference