Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C19E49482E for ; Fri, 25 Sep 2026 10:31:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332299; cv=none; b=EbJlNjA35RPCRFprlkWTzuzU5DpyEenzCO1yEFFEpWycp/YP2RcL6l8SFJpHfetgcttCidZBfl4io3ZV7hUDM/et7DQSQEskH/d2CR61SU945hMhslyPXAnPvUxxqH0eZduw13hmoF0NCPMGCT84uph+rzgy3bbjRrwKcKAy66o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332299; c=relaxed/simple; bh=AL1M4fN/j1MZRfSOIN3pwhzCRzQOqRQTQLYz7cAIBOY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LlH3qYWUh5IaitMWmBb6501nrmC/PNgXl37eEk1Ge8gYDNnjSh2AFg3yeSSdyWN/jkXDqERv5gd5S4VTFhR04OXmJZ46vWp45Q2fRRqLcy20afVsUSv7vE6PvC9DF9Gx8reS2xxSAp6yECcWdDsd8g55sYkkWz1nyVC52GSbc8o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZANvF7VN; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZANvF7VN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6CE41F000FF; Fri, 25 Sep 2026 10:31:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332298; bh=cWYcwP0vZEW+FAN6hrXDN5OTVEnKS0ODXKzNqy6Djxw=; h=From:To:Cc:Subject:Date:Reply-To; b=ZANvF7VNzfFmoU8xd5opZmuU5UTPllKiqVLTi2p/0TcSlEc2U+OjDdkonBzMIFFf/ jqen/u8L+j8m0bFyTi78/0GJlCuzfxJAJVe66dp7PCbFr+r7oMcoBVzXbsYV5H034O oTE8widQOWnA0v1ffZED8irzivLZJd+OjMOkhulc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97986: virtio_input: stop callbacks before unregistering input device Date: Fri, 25 Sep 2026 12:24:49 +0200 Message-ID: <2026092520-CVE-2026-97986-1bef@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3087; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5+kn5h7i3NPu5/9Q9ShY52DxzQZabpv0HS4+cMwm368=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvGPmdTFtvuVdIebx6G/3+z8HTyyW/Sw3qU05QMK/u dXgzaeMjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIhTaGBQfVbzz9ECqnmhLJ 5jjdUdGk3e3CNIb5VSGKK76JVqpvvFxbfOFq6Zvl39VKAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-97986 to this issue. Affected and fixed versions =========================== Issue introduced in 4.1 with commit 271c865161c57cfabca45b93eaa712b19da365bc and fixed in 6.12.111 with commit 8226aeee9b9a94cd699fbb51cb230feff46cfaf2 Issue introduced in 4.1 with commit 271c865161c57cfabca45b93eaa712b19da365bc and fixed in 6.18.53 with commit a3ba86a270dd87460759214046dc7cbd409ac711 Issue introduced in 4.1 with commit 271c865161c57cfabca45b93eaa712b19da365bc and fixed in 7.2.7 with commit 5378f7945856a5ed88e6f9850bc7a68f54090135 Issue introduced in 4.1 with commit 271c865161c57cfabca45b93eaa712b19da365bc and fixed in 7.3-rc3 with commit d7808b37da0a619cf1fa541c2384e783fecc2480 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-97986 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/virtio/virtio_input.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/8226aeee9b9a94cd699fbb51cb230feff46cfaf2 https://git.kernel.org/stable/c/a3ba86a270dd87460759214046dc7cbd409ac711 https://git.kernel.org/stable/c/5378f7945856a5ed88e6f9850bc7a68f54090135 https://git.kernel.org/stable/c/d7808b37da0a619cf1fa541c2384e783fecc2480