Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154265; b=xZaxO0GuaTMQi0EIFNY0n9VazJCY9D9GzC5xxeEDh3ivgNFvxe/C6cfvP8D941L5CIRi kqDB2E3fhdsK25OTjOciVPeEXTMsNOE4QDH/e0dU9hxgNRhxHz1CyLctWrztukVNRjR4P Cm5i2pzea+ouuwxJL8ca/wpJ/t2/E6QUL8JUM1NlDH9HdEPJ4iOPVeTrkxQyuLaMwgtHv 8BJPJAQqUsiEsUpo7+Q7lfAel1385VDTk0/HfZ6nrYPgT2Un80roh5D05t39xsCeFC1Yf B91CmsxJSkKXMEISz/kO0X/cAyCTIZk3IKOOEsGl/jiZGvDerj5agTKqQWRBOt6HuyQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154265; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=2O5NEMWghud0EkZhYMtWuiGOiVyLPX9GgYwuBvNo3PA=; b=aFo+mPbCrwRx2heS8OtuEUr1SVVPsOdYkyO5CGKaLljXfIdELYpn/BF2r6dgCXRcdIRw Lipgy25H2984NX4RTNUWMPXCurN1lGZFyDW5mlgiTuM2z53ZpNYY/85YdmEPw+n3LExTc x9ZGDNBCKuHWvtPmCKbLzJPDN1+hTqqD2a70/eUT3Vgd+YxL2exeInEK8aXfDF3hR+h2w razByWqf+ZBEaQlo3jZfp0kjiFbd86Z2WGx4GGd73lFvBdo49CQspgvQubVnJZvIEnhDT GKziOYfT/0wFtpi4f/zbiGCG7M1nW/B+EhK+GUekwtqGIW74riuU3TeJ9DZgLC5dhaQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=WvPRwjW+; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6AD360A2618 for ; Fri, 20 Nov 2026 05:57:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=WvPRwjW+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9F2C1F000D4; Fri, 20 Nov 2026 05:57:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154265; bh=2O5NEMWghud0EkZhYMtWuiGOiVyLPX9GgYwuBvNo3PA=; h=From:To:Cc:Subject:Date:Reply-To; b=WvPRwjW++Wk6K+cjdRd9nROMHe9Q7AuDw2lVEJUnSZUe4OJ9XtFSv3MEOXwzTnm/5 i44kxtc6Sj/oNrjLqQIZMTZKVjHkjRQBaVbZPUmeC2FmhWvWskLvPxAEIO6gOiQ8zL GMrlLhLJd3+dRkojhTLnrVjPqD64jMW8rBZaDYkQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99684: hwrng: virtio - prevent use-after-free after a failed restore Date: Fri, 20 Nov 2026 06:51:10 +0100 Message-ID: <2026112056-CVE-2026-99684-8e8d@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2718; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=omt+OEzPxgFxtJ/doDvBk6d0WszQrH9pkq+f4M+CkFk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/77f8ftfAIajlb1gVsdvRPfX3kQdGgn9fTzew8aj0X X/PYmNjRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE9x7DghlS8ddc/M03ndtq uCG2w3FW+v/npxkWNJRurev8M6t5t7jzo9kHFZasYTfdAQA= 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: hwrng: virtio - prevent use-after-free after a failed restore remove_common() frees the driver data during freeze, but does not clear vdev->priv, which points to freed memory. If probe_common() then fails during restore, a later remove or freeze can dereference the dangling pointer. Clear vdev->priv on the probe_common() error cleanup path and before freeing the driver data in remove_common(). Also reset the device and return early from remove_common() if vdev->priv is already NULL for a safe teardown after a failed restore. The Linux kernel CVE team has assigned CVE-2026-99684 to this issue. Affected and fixed versions =========================== Issue introduced in 3.16 with commit 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce and fixed in 6.12.118 with commit ec81f97c6b13b839e5800cdade1e5b187b9b2738 Issue introduced in 3.16 with commit 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce and fixed in 6.18.64 with commit 42f2f4ee9d6e75b8b55b9108f6f5cf254425db64 Issue introduced in 3.16 with commit 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce and fixed in 7.3.5 with commit b18bda055c0d3e44fdf419e2739d92ea92a6f1d2 Issue introduced in 3.16 with commit 08e53fbdb85c0f6f45c0f7c1ea3defc1752a95ce and fixed in 7.4-rc2 with commit 0f7bf47f5a0cc26320aa4b14f4504d03a07f4b74 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-99684 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/char/hw_random/virtio-rng.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/ec81f97c6b13b839e5800cdade1e5b187b9b2738 https://git.kernel.org/stable/c/42f2f4ee9d6e75b8b55b9108f6f5cf254425db64 https://git.kernel.org/stable/c/b18bda055c0d3e44fdf419e2739d92ea92a6f1d2 https://git.kernel.org/stable/c/0f7bf47f5a0cc26320aa4b14f4504d03a07f4b74