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 17AD125634 for ; Thu, 8 Aug 2024 08:49:24 +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=1723106965; cv=none; b=rp2+tyF+6pQQY3F4tm1/RWQ7Z+VRo5mPyVc1tf4dRbRCRfDgVqR1uhw/eyDr8281ZsHg5cka2YBaFFMDzic7l0UBmc5Wbz4y3qQrrZd5c5xGzt7R6LMVRtEZsbqc7cSM4qeG43GmRt5uCowug5zBlbF/HP4FTwP3jSBlgti6RdQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723106965; c=relaxed/simple; bh=/uS78WkiEDo05DH2EH4xWrSYYrrwVoXfsvrrrZ9N/wY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g2B0bVr8+PAQqkS2ctN+9bbHV3awZM2FWCiS7dmCdK1BrR/anWhMIQC1D6ibYOxvYWF9B0RchxJpIu8O0HApxcq56BEI5vbz2zNjKIrFrrcU5MjytEtedVNIwnjWzQ6A3LK+M/74N+2OFdm/bvpZSE+IualiSn9VTsI8ygHXIOQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sK8CnLLl; 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="sK8CnLLl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F4EDC32782; Thu, 8 Aug 2024 08:49:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723106964; bh=/uS78WkiEDo05DH2EH4xWrSYYrrwVoXfsvrrrZ9N/wY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sK8CnLLlZg8Ra35Jv/w2p0CdLcHG/uQQo3oqsNxpUE2KSabqfs/gTmbFgrTbxn2ix PLPdP1JFapywcoF6Afp8C/c3+rWZkqqZYW51T+mVOh+0CN+D78HEG+pDVW0h/9pjyU kuMRPdt96EA3TGbFSlo7WSLlfQKgMzhOvXB/WZUA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42255: tpm: Use auth only after NULL check in tpm_buf_check_hmac_response() Date: Thu, 8 Aug 2024 10:49:21 +0200 Message-ID: <2024080819-CVE-2024-42255-b73c@gregkh> X-Mailer: git-send-email 2.46.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=1904; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/uS78WkiEDo05DH2EH4xWrSYYrrwVoXfsvrrrZ9N/wY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlb2iZUtc4XbtJ++OPpH4HvHbd0jzR/LGPNOlscIVKfe U/8pt2vjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIAxOGBUtC+qat+/Jk++yP DU8j96xbxDzjhSHDPC1OGaPjefp5Wx6bdd5gdsk0qb+xDQA= 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: tpm: Use auth only after NULL check in tpm_buf_check_hmac_response() Dereference auth after NULL check in tpm_buf_check_hmac_response(). Otherwise, unless tpm2_sessions_init() was called, a call can cause NULL dereference, when TCG_TPM2_HMAC is enabled. [jarkko: adjusted the commit message.] The Linux kernel CVE team has assigned CVE-2024-42255 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 7ca110f2679b and fixed in 6.10.1 with commit b9afbb9a0c73 Issue introduced in 6.10 with commit 7ca110f2679b and fixed in 6.11-rc1 with commit 7dc357d343f1 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-42255 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/char/tpm/tpm2-sessions.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/b9afbb9a0c734197c59c43610071041044bf1562 https://git.kernel.org/stable/c/7dc357d343f134bf59815ff6098b93503ec8a23b