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 C06612BB0A for ; Sat, 2 Mar 2024 21:54:21 +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=1709416461; cv=none; b=aD2QN7hxcfrQ0Lrl8GiZ/WU6PX0/14wBuwwC2RxdR7bHkDFs7dX8THSZpKh1W0OAHaVdCVpnwEQYn/+LoWOpLRs2wQPVh4m18aSquCHMfvpDmj81BjW9xDfhSndyB6QtYcPGU6v67CE6sb7pKK63/Jr9ga5w/GyulmmrfbX00gA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709416461; c=relaxed/simple; bh=HgGA3Ux2ZkuIuxWnrtGvxUMnh7I2HHy0cnyaPUE9lYM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t2iR4UxzCRokb8hMAT9spJ9+ki5Ls8xRLl+pthyiFil2HI3FUgN6TxdCInzKLi/lmHf+pOXfIxkhtA87gGZQbDuO9G0Nh1c6MMfSzQeuuiFGHLRwJxR5Wtrhi5j2q2yOvkIty3uTxIoyJRkhHDlGWS8NzkZoXo4HI0+Kyv6eQNw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fOeyee+d; 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="fOeyee+d" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45039C43390; Sat, 2 Mar 2024 21:54:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709416461; bh=HgGA3Ux2ZkuIuxWnrtGvxUMnh7I2HHy0cnyaPUE9lYM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fOeyee+dEfe4wQjNlwUrAgE0mwqV4NTWrnjBc28IXXM4Q2ZlPJOzna7jblLCTUpHu IUHrE2vlJXAvSQ7TTyHOKn0Z5NX9qnkURVCj1G29AhGx6Ex7No21zu8fCssEOY0AVh mZMT5v3TTqH2SFOR1KPrZSND5olJZ99trmAHkepc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52520: platform/x86: think-lmi: Fix reference leak Date: Sat, 2 Mar 2024 22:53:04 +0100 Message-ID: <2024030252-CVE-2023-52520-0a4e@gregkh> X-Mailer: git-send-email 2.44.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=2498; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HgGA3Ux2ZkuIuxWnrtGvxUMnh7I2HHy0cnyaPUE9lYM=; b=owGbwMvMwCRo6H6F97bub03G02pJDKmP528tUzv7TCxO32qHJ+Pf3mNiwvF/g35vWR6UOZEt+ 86LDRn/O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAisn4MC2ZczdaTPLI1wqvy 5vxFpRxtNrNV9BkWbO6NyVvyUEU7YFf+tJcBEy/uaJBlAwA= 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: platform/x86: think-lmi: Fix reference leak If a duplicate attribute is found using kset_find_obj(), a reference to that attribute is returned which needs to be disposed accordingly using kobject_put(). Move the setting name validation into a separate function to allow for this change without having to duplicate the cleanup code for this setting. As a side note, a very similar bug was fixed in commit 7295a996fdab ("platform/x86: dell-sysman: Fix reference leak"), so it seems that the bug was copied from that driver. Compile-tested only. The Linux kernel CVE team has assigned CVE-2023-52520 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 1bcad8e510b2 and fixed in 5.15.136 with commit 124cf0ea4b82 Issue introduced in 5.14 with commit 1bcad8e510b2 and fixed in 6.1.59 with commit af21c9119a37 Issue introduced in 5.14 with commit 1bcad8e510b2 and fixed in 6.5.8 with commit c6e3023579de Issue introduced in 5.14 with commit 1bcad8e510b2 and fixed in 6.6 with commit 528ab3e605ca Please see https://www.kernel.org or 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-52520 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/platform/x86/think-lmi.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/124cf0ea4b82e1444ec8c7420af4e7db5558c293 https://git.kernel.org/stable/c/af21c9119a37cecb7ff27ce0c2f3cf721e9d0ec4 https://git.kernel.org/stable/c/c6e3023579de8d33256771ac0745239029e81106 https://git.kernel.org/stable/c/528ab3e605cabf2f9c9bd5944d3bfe15f6e94f81