---
id: CVE-2026-97987
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  virtio_input: reset device if input_register_device() fails

  Probe marks the device DRIVER_OK with virtio_device_ready() before
  calling input_register_device()
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  virtio_input: reset device if input_register_device() fails

  Probe marks the device DRIVER_OK with virtio_device_ready() before
  calling input_register_device(). If regi…
severity: medium
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 271c865161c57cfabca45b93eaa712b19da365bc <
    087b9ee4d36968329c846e6846e4e50f66532888
  - >-
    Linux >= 271c865161c57cfabca45b93eaa712b19da365bc <
    16c90260ae7ae32d7ac9128fb5da404c37154765
  - >-
    Linux >= 271c865161c57cfabca45b93eaa712b19da365bc <
    9a7e107734137f098f9b81e5615aa5a02c5395c7
  - >-
    Linux >= 271c865161c57cfabca45b93eaa712b19da365bc <
    8407da8974326c1ffdfe6a5a9bfc8fed3212bbdf
  - >-
    Linux >= 271c865161c57cfabca45b93eaa712b19da365bc <
    668ebfea7ba623450b12fdeaa0d080464d0c0a14
  - >-
    Linux >= 271c865161c57cfabca45b93eaa712b19da365bc <
    81489b32a21c9360f8750d1fb600155d27452e19
  - Linux 4.1
published: '2026-09-25'
updated: '2026-10-03'
sourceUpdated: '2026-10-03T11:18:22.610'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-97987'
references:
  - url: 'https://git.kernel.org/stable/c/087b9ee4d36968329c846e6846e4e50f66532888'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/16c90260ae7ae32d7ac9128fb5da404c37154765'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/668ebfea7ba623450b12fdeaa0d080464d0c0a14'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/81489b32a21c9360f8750d1fb600155d27452e19'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8407da8974326c1ffdfe6a5a9bfc8fed3212bbdf'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9a7e107734137f098f9b81e5615aa5a02c5395c7'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-97987.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-97987'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2541157'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-97987'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-97987'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-97987.mbox
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00173
epssPercentile: 0.06641
ingestedAt: '2026-09-25T11:06:38.866Z'
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cvssSource: vendor
cwe:
  - CWE-825
---

## Overview

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

virtio_input: reset device if input_register_device() fails

Probe marks the device DRIVER_OK with virtio_device_ready() before
calling input_register_device(). If registration fails, the error path
cleared vi->ready and called del_vqs() while the device was still live,
so the device could keep DMA to queues that were already torn down.

Match remove/freeze: call virtio_reset_device() on that path before
tearing down the virtqueues.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, … · updated 2026-10-17 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-97987.json)
