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 621AE192B77 for ; Tue, 30 Jul 2024 07:51:32 +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=1722325892; cv=none; b=Ig9bHOa0W/gUpSIv2AmDSRDx6ddE+toq8Un6WEXtlI//Os6548F9g75tGBcO7OWsPbyKiV+turADu6cf9Ff6V+zox0ynYklqJYdv5IegOmUu9pruYwtY7s17A4un1EZjg09hzXKoToSA4NDWBoqFwaqI35f++ubdx9wFj6/h7o0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325892; c=relaxed/simple; bh=MrmsTtkH9uYi8lFNY8aLqgiUQf/vTx2ebnZSUQzhI2w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=okAAlDyiCLKoERiUf3SmG+AZgOaAByVn3hqyNWDeuiHjQFANnuz5qBu/O1Cu04Y9jyrtiR6h8ogKf+nRxB+gmocGYQ7LSUKnGMappX6ukqNEZpDeW9tPpts3pkK+1PNwGJfA+90gzh80bj0RM/eS1H5nxkC3wS8qdNWVbvV/SvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sOII+kIe; 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="sOII+kIe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC44DC32782; Tue, 30 Jul 2024 07:51:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325892; bh=MrmsTtkH9uYi8lFNY8aLqgiUQf/vTx2ebnZSUQzhI2w=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sOII+kIeaaM82DGJxPoYpAmyjHQDDQ2B9iBooBSzsVI4MexcHjkCr6XWTTndMFxAu X5RkeZ2r1n+4um3eIrBvrxShX6i2TCb0H74CyzFDBehM0ACdzyuica9Kveg4Dn2YI2 PlCEDCBhjmTo9RIuj2TxecaYb2poPDOXUxLLKjQw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42147: crypto: hisilicon/debugfs - Fix debugfs uninit process issue Date: Tue, 30 Jul 2024 09:48:05 +0200 Message-ID: <2024073032-CVE-2024-42147-805a@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=2152; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MrmsTtkH9uYi8lFNY8aLqgiUQf/vTx2ebnZSUQzhI2w=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZk3JOhUd8HuSap1gyYSOTBEPtydmmvL7XDYfZ5q93 HfSu9NNHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR8okMC44f1DkZ9G/21tDJ d86tzMhp2RK3yIRhftG2ow4VR3af6XTQmrC18P9UkXw+GwA= 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: crypto: hisilicon/debugfs - Fix debugfs uninit process issue During the zip probe process, the debugfs failure does not stop the probe. When debugfs initialization fails, jumping to the error branch will also release regs, in addition to its own rollback operation. As a result, it may be released repeatedly during the regs uninit process. Therefore, the null check needs to be added to the regs uninit process. The Linux kernel CVE team has assigned CVE-2024-42147 to this issue. Affected and fixed versions =========================== Fixed in 6.1.98 with commit eda60520cfe3 Fixed in 6.6.39 with commit 7fc8d9a525b5 Fixed in 6.9.9 with commit e0a2d2df9ba7 Fixed in 6.10 with commit 8be091338971 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-42147 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/crypto/hisilicon/debugfs.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/eda60520cfe3aba9f088c68ebd5bcbca9fc6ac3c https://git.kernel.org/stable/c/7fc8d9a525b5c3f8dfa5ed50901e764d8ede7e1e https://git.kernel.org/stable/c/e0a2d2df9ba7bd6bd7e0a9b6a5e3894f7e8445b3 https://git.kernel.org/stable/c/8be0913389718e8d27c4f1d4537b5e1b99ed7739