Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 563AF2F90EA for ; Mon, 15 Sep 2025 14:26:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946406; cv=none; b=C4jkg/cSB4cm2Ao4/R+cmNrXRvbDFYxG8jhAM+KDlkonfDvh/GYj2QHfc/2TU0w9EfsqenGU4JKhzimsvtUv0jPtXH3axqyUEateBGfAy8asp+upTWyrOD+q1C+ppOW0fNnhU9LAghRHqkHCbRMF4aK/qSL4p3AdDNKu9A3eNKg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946406; c=relaxed/simple; bh=h6KC70Lhct4YXwXjFbOk+U77oNjtW/hFulGrnPvOwYI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gyc4h6s6ShbWWgXrXDW6SYEnjm/MSnMDTR6cUIBLzIAu9tkoxh7LW+sGWF0vGwz4Och8DLCkRGFqXHLOUhw8LX1ndOerWd3LB5q0pr26RzGoKUoG8Lqi3XF5tdjjmj2mihTJjG/S87YDzYSeLd9vr4CiFWDAOZLa0yIsbXU8eME= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=18tLSsRG; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="18tLSsRG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACFB3C4CEF1; Mon, 15 Sep 2025 14:26:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946406; bh=h6KC70Lhct4YXwXjFbOk+U77oNjtW/hFulGrnPvOwYI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=18tLSsRG6gnCeuXARhOGFTmWirOC+Ia7XkH9iwh/Nbo7zIr6Fti/Z7y09Rhb2ROCt K/HGfnm5w9zYE7DRlnPRWq1SZS6ROklH9Xf8kjIUCfmRXBy+YT7ncVDwfuoS5bkTxe RXOlJx68B9MFxVtfGWRaDHj5SnV0t0QiooAi1GSo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53242: thermal/drivers/hisi: Drop second sensor hi3660 Date: Mon, 15 Sep 2025 16:22:16 +0200 Message-ID: <2025091516-CVE-2023-53242-b7c5@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3012; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=05BhAYxAsPmnLfdEK8gEfYBF44AWwa6lBw35qc9Mn7s=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFO54zdvxO6gqJjr9m0z5X5UFE+rPS/YZPy42PHfZY 6FEzr7FHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRjJ0Mc7hFq59dEDHcEvl4 VsGZyYbnra2N5zAs2KFUe+RCzot2+ZZlso5HOY7lB3SUAQA= 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: thermal/drivers/hisi: Drop second sensor hi3660 The commit 74c8e6bffbe1 ("driver core: Add __alloc_size hint to devm allocators") exposes a panic "BRK handler: Fatal exception" on the hi3660_thermal_probe funciton. This is because the function allocates memory for only one sensors array entry, but tries to fill up a second one. Fix this by removing the unneeded second access. The Linux kernel CVE team has assigned CVE-2023-53242 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit 7d3a2a2bbadb4bf5856ed394ba09b8fbb7a80460 and fixed in 5.4.235 with commit 3cf2181e438f43ed24e12424fe36d156cca233b9 Issue introduced in 4.20 with commit 7d3a2a2bbadb4bf5856ed394ba09b8fbb7a80460 and fixed in 5.10.173 with commit e02bc492883abf751fd1a8d89fc025fbce6744c6 Issue introduced in 4.20 with commit 7d3a2a2bbadb4bf5856ed394ba09b8fbb7a80460 and fixed in 5.15.99 with commit f5aaf140ab1c02889c088e1b1098adad600541af Issue introduced in 4.20 with commit 7d3a2a2bbadb4bf5856ed394ba09b8fbb7a80460 and fixed in 6.1.16 with commit 9f6756cd09889c7201ee31e6f76fbd914fb0b80d Issue introduced in 4.20 with commit 7d3a2a2bbadb4bf5856ed394ba09b8fbb7a80460 and fixed in 6.2.3 with commit 68e675a9b69cfc34dd915d91a4650e3ee53421f4 Issue introduced in 4.20 with commit 7d3a2a2bbadb4bf5856ed394ba09b8fbb7a80460 and fixed in 6.3 with commit 15cc25829a97c3957e520e971868aacc84341317 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-2023-53242 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/thermal/hisi_thermal.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/3cf2181e438f43ed24e12424fe36d156cca233b9 https://git.kernel.org/stable/c/e02bc492883abf751fd1a8d89fc025fbce6744c6 https://git.kernel.org/stable/c/f5aaf140ab1c02889c088e1b1098adad600541af https://git.kernel.org/stable/c/9f6756cd09889c7201ee31e6f76fbd914fb0b80d https://git.kernel.org/stable/c/68e675a9b69cfc34dd915d91a4650e3ee53421f4 https://git.kernel.org/stable/c/15cc25829a97c3957e520e971868aacc84341317