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 A1C3753C3AF for ; Thu, 17 Sep 2026 16:40:00 +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=1789663201; cv=none; b=Z6iI3Bu9KBIc1WLX0NW2zUKS9Xem+BFRH/xhUKQi3stDASO479UR8IZtpTTr3Lbz75DFCuUuk8TdtKfg9GkXXFs94N+JHigq0fL5o9iCjxRY7wX41nQZCl08vo7ZT/BiTQIDaO74s+cQ0n7VS+E5xuRNVGzBBHc4JvnXH5uhh5c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663201; c=relaxed/simple; bh=B3xPWXRB5+gzNiEBV7pBtc7etfJVPuNsjFZcRZEC9Jo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rwxUKKvxfLEH79nZD4NOfwklduz7DhttYERkoDE6VVK2ePQMMdiY2MXUz23QC0CKpM1mNI6Z6/X++exdSYNt4Naw47TxMzjCJOQHJUGzR7JbIIIp1hgyRPDvURspv67uxFxGxyitfuLiY3XCfpjg6YjOFADJBS9TD4OyAgnuyqI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eh/F/FzS; 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="eh/F/FzS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0096B1F000FF; Thu, 17 Sep 2026 16:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789663200; bh=lajyPCLHopLovXSwxuWa/L32BgiOquls3gqIfEiirXU=; h=From:To:Cc:Subject:Date:Reply-To; b=eh/F/FzSLvNR9TkwJ8YBM4dTtWJirp5L/Hj/I+IlyEj9jAmSD6CJW5Q7gS59c6qqt c19NqGLIIc4OgtYhafAIXPt+rSdJgpiZ7OzJE+A//9qan1/hiIzUUdZ/y3UQ6rd94Z uskoXp5+534dBR6enNHUWjzj0kAHBH/53oXsRN9I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93163: hwrng: core - fix rng list on registration error Date: Thu, 17 Sep 2026 17:17:20 +0100 Message-ID: <2026091758-CVE-2026-93163-532e@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=2751; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U29+7o2lcY3D43f7LKqxJripRKs/hGgFJl62tVC1e98=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBK6pH1F/JKZo0aN10uTr/aKa3xs9P3g6Bj6cfcBfQ GZO18T5HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRSBeGeYplgi/Er357s5jb wuz1+icLNRvvMjAsmLcsaGJnJeOHTZP4WXZNk1vaqJ64AwA= 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: core - fix rng list on registration error hwrng_register(rng) does the following: 1. Checks if rng has name and read methods set 2. Checks if the name already exists 3. Adds rng to global rng_list 4. May try to set rng to current_rng If step 4 fails, it returns an error. However, it does not remove the rng from rng_list, causing a dangling reference which can result in use-after-free if the caller frees rng, since registration failed. Add a list_del_init() cleanup step. The Linux kernel CVE team has assigned CVE-2026-93163 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit 2bbb6983887fefc8026beab01198d30f47b7bd22 and fixed in 6.12.110 with commit de4f1bcb61a73cc896decdbd27d61a34add93b53 Issue introduced in 4.14 with commit 2bbb6983887fefc8026beab01198d30f47b7bd22 and fixed in 6.18.52 with commit cf293c9c7424de0d04b51367d07f40570ce80231 Issue introduced in 4.14 with commit 2bbb6983887fefc8026beab01198d30f47b7bd22 and fixed in 7.2.6 with commit bee8d1fcdc8f389b595b0a4cf6fe8440f499458a Issue introduced in 4.14 with commit 2bbb6983887fefc8026beab01198d30f47b7bd22 and fixed in 7.3-rc1 with commit 3a5834db2b1ce25649f330e78efe1ccde78967fd Issue introduced in 4.9.320 with commit 42802952a2725f85f7e36ee3b29593af5fe87197 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-93163 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/core.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/de4f1bcb61a73cc896decdbd27d61a34add93b53 https://git.kernel.org/stable/c/cf293c9c7424de0d04b51367d07f40570ce80231 https://git.kernel.org/stable/c/bee8d1fcdc8f389b595b0a4cf6fe8440f499458a https://git.kernel.org/stable/c/3a5834db2b1ce25649f330e78efe1ccde78967fd