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 2E8CB14B07B for ; Wed, 19 Jun 2024 13:38:15 +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=1718804295; cv=none; b=QxM3mtNRGceklqco7aTYSQcCniCGePZ3IU0DUgGuPJ7IN89sc7xYqhOz5wKWKCOoSH8CU6ZZVVCcLeYO9QdDPYXsJvB6wf14titc8VaBOcyTKxxq76ZQXoJ8QHLgFGQvwYUL5Zfqtvv7bjRLKuFwIAXWwkTv4cSp2YmF4mIAHRQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718804295; c=relaxed/simple; bh=yDcCA2Gqd6J1gMJY6aN/8AEOM9XQNevr3b9izmF3nmM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CsrChLSjeAamJCUaGTw/9Lb/D72ZeIw+ozWBvS/ucpNHXNU0ppJYHLMzT6jQGZEE4vSmax58LktKCXyejHkiPHXeZgKVCVCUsAtAOj/Ru2NSkLi0HcHZAZNWey9B0rgKS5j2epWM4b/c+ojf8lkB89i+SBf0eeiXgjBenWSk5sE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LmyBdbwV; 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="LmyBdbwV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6BDDC2BBFC; Wed, 19 Jun 2024 13:38:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718804295; bh=yDcCA2Gqd6J1gMJY6aN/8AEOM9XQNevr3b9izmF3nmM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LmyBdbwV4lLWJqroYDqqNx2nTF9iRmSHGr/BLGRHWC61ZEqtR3nqUWdoJ1M3BnDyh naON8qn1Xt7e2zkJbp5bJ9cYj0/iYFaZviGPgwNWog9d1RoccKPI6ufJVIKu1Y73HV gHieRhTtY2YG34v2hw+LPldP3GMzMnR9suPr5fWE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38571: thermal/drivers/tsens: Fix null pointer dereference Date: Wed, 19 Jun 2024 15:36:20 +0200 Message-ID: <2024061957-CVE-2024-38571-fbe7@gregkh> X-Mailer: git-send-email 2.45.2 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=2663; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yDcCA2Gqd6J1gMJY6aN/8AEOM9XQNevr3b9izmF3nmM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlF9/ZmbpnpJVqbZNqVxKhVf1lAeuWjtfOfezmKh/5fc CNAbsPXjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIzDeG+dX7N3T/LT/YVuS/ aOPyc/I7MrM2NDDMFfr1XrKg6bVgW9ySgqIJpydv3MNyCwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: thermal/drivers/tsens: Fix null pointer dereference compute_intercept_slope() is called from calibrate_8960() (in tsens-8960.c) as compute_intercept_slope(priv, p1, NULL, ONE_PT_CALIB) which lead to null pointer dereference (if DEBUG or DYNAMIC_DEBUG set). Fix this bug by adding null pointer check. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2024-38571 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit dfc1193d4dbd and fixed in 5.15.161 with commit 27600e0c5272 Issue introduced in 5.13 with commit dfc1193d4dbd and fixed in 6.1.93 with commit 11c731386ed8 Issue introduced in 5.13 with commit dfc1193d4dbd and fixed in 6.6.33 with commit 2d5ca6e4a287 Issue introduced in 5.13 with commit dfc1193d4dbd and fixed in 6.8.12 with commit 06d17744b77b Issue introduced in 5.13 with commit dfc1193d4dbd and fixed in 6.9.3 with commit fcf5f1b5f308 Issue introduced in 5.13 with commit dfc1193d4dbd and fixed in 6.10-rc1 with commit d998ddc86a27 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-2024-38571 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/qcom/tsens.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/27600e0c5272a262b0903e35ae1df37d33c5c1ad https://git.kernel.org/stable/c/11c731386ed82053c2759b6fea1a82ae946e5e0f https://git.kernel.org/stable/c/2d5ca6e4a2872e92a32fdfd87e04dd7d3ced7278 https://git.kernel.org/stable/c/06d17744b77bc6cb29a6c785f4fad8c4163ee653 https://git.kernel.org/stable/c/fcf5f1b5f308f2eb422f6aca55d295b25890906b https://git.kernel.org/stable/c/d998ddc86a27c92140b9f7984ff41e3d1d07a48f