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=1795154437; b=VU6u1D6jZjYFHzmc2Mk64YzH7YQLUOl2R46PcTCkS4UHyOhCCbHL5lVn3gJY32bUtIdN m+76ns1Hl3WnoXK3ieebOS1Un+n5jtiJzIGeFPTbhPwI4r1JgBnarn4rZjGrKFznxIX7u w97T3i2RqSLHUle0JHKc5hF18aZ2twQhV1gQW6YylHi0qHj8bEfJk6eqCf5hHkfAzYd1V iXDRyfdBIK1lJlYQ3FqTDLan3+uusNnALpqAKgIjMx7JQAvcve1SDFX31/tirdaElhjLg J3k188Ahu7LH9/KsuSYu8RngM3/TTKbeQ60DSmX15puDU8/Q4sbbqu2rgE9/tRzwhrw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154437; 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=9rwNwwPYy0X28ixERY4Itpy/KoAOwYC44t2BPzFLUMQ=; b=EJopeE9ZLsi2aUP175nTu91BmQZy7zHVOxLfDAlrpFON3xj58zY6CY0CWCWqWAhhf14b jThYXISg6ZNc91F07SvSU8dlKPqHjXMsynqAtpXyjgIVyGiO9P0Ho/ZjefvQTY5oPi8CO o+v9+hbNV9tqC2j4Azgv1ErTFhdl2JZggdpMPelX1X0mi0Jv4vrLfKC8UvVbcpn6qDXU8 44sUPCGlxZqDImTozmFLkj4kF7orz1dnmZfMGvaNnnPElajMOZRXPTmDeEeTke/qwBH2P dZe3dTYnKAN+hd2GI4GOpOvN3+5KI1izIci5GE85u7bW7JQCazDQvM1e8GwcEVTGaTw== 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=R6Ypp1Aa; 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 AF4F0606A325 for ; Fri, 20 Nov 2026 06:00:37 +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=R6Ypp1Aa Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9CA81F000CA; Fri, 20 Nov 2026 06:00:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154437; bh=9rwNwwPYy0X28ixERY4Itpy/KoAOwYC44t2BPzFLUMQ=; h=From:To:Cc:Subject:Date:Reply-To; b=R6Ypp1AaAdR5ftP4AusXnLxJisgqVRvq7bwFC3FV2W4t68rAgKqPhO7jYuUTb5jcW h5y7A6/q42/V12S5EV7U8yBtMdKk1OwDfQ1tcUo+craE/Sb1nnTOhdb2e1Mz/0OoY1 fC2wpHMOThwR5sluS3NRWjqS9Czju4DrfDVFPP/k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99716: hwmon: (coretemp) Set nr_cores only after core_data allocation succeeds Date: Fri, 20 Nov 2026 06:51:42 +0100 Message-ID: <2026112008-CVE-2026-99716-2973@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=2592; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=unzEB8Z2vuiukH4+XpqzG+tTJdPHekreBqwhlcLoUe4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/709gudl1t+NWZFtA5a6IoumBh9MND9UvnMHxZznXQ anlWRN8OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAive0M8yte/PD+8v1xtDmX xpujy38wMwb3ZTAsONK/WIv7k0Vw05Mn/bZtd9c2nxU8BgA= 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: hwmon: (coretemp) Set nr_cores only after core_data allocation succeeds In init_temp_data(), pdata->nr_cores is populated from topology_num_cores_per_package() before allocating pdata->core_data. If that allocation fails, init_temp_data() returns NULL with pdata->core_data still NULL and pdata->nr_cores set to a positive value. coretemp_add_core() logs the error without failing coretemp_cpu_online(), so the CPU still comes online with pdata->hwmon_dev registered. When the CPU is later taken offline (or the module is unloaded), coretemp_cpu_offline() calls get_temp_data(pd, cpu), which loops up to pdata->nr_cores and dereferences the NULL pdata->core_data pointer. Store the core count in a local variable and assign pdata->nr_cores only after pdata->core_data is allocated, preserving the invariant that pdata->nr_cores is zero whenever pdata->core_data is NULL. The Linux kernel CVE team has assigned CVE-2026-99716 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 1a793caf6f6991716cb07583ed7c27de84ef0cba and fixed in 7.3.5 with commit 2fb99a03cb8c4a5907c55968d1aa8df6c885e347 Issue introduced in 6.9 with commit 1a793caf6f6991716cb07583ed7c27de84ef0cba and fixed in 7.4-rc2 with commit 95638f1f05ced75a82e83f610cd01b636d2a21b1 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-99716 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/hwmon/coretemp.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/2fb99a03cb8c4a5907c55968d1aa8df6c885e347 https://git.kernel.org/stable/c/95638f1f05ced75a82e83f610cd01b636d2a21b1