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 EEF8D1CD11 for ; Wed, 19 Jun 2024 14:55:33 +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=1718808934; cv=none; b=D//nP/RG06uiXLQKyY0eGg45vLubmerj9iIKb5E4I/wqTl0lW8gWVUEsxySvvJmSVmw/qd/EbPw/iFb9NVLmOeKQbBkb8A+EaOoMM9VSf8Q2E30P+uh7obU5gCfBwJF2UcoS9Q2pOOVSXoOmrhlYEn7+4MIBtJl+Ke7A0K68B3M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718808934; c=relaxed/simple; bh=88MwZcvjlK6h963g2iHXdkduThA5WI2eQXSiEGjgUjw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c6SQVFdFS+rxX5S7sKBcU7SPzt4+ESox+VGTxovz/JAKE8GxNA/Vz67tCOmBJVpgvDKmndpoIGiMgr6pLdRu/OPhA7xyXBj9kB9ZP8igiRYD1PaEPRvuEC16MDx+XTOr26YyFsE2KlXUQAQ06ysgpBonnc/8HvVWDSMxf7VlMYw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mMGLxocB; 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="mMGLxocB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75B32C2BBFC; Wed, 19 Jun 2024 14:55:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718808933; bh=88MwZcvjlK6h963g2iHXdkduThA5WI2eQXSiEGjgUjw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=mMGLxocBGjGsyOcz8dtubnIDrN2MoWsitjdzWqRZClO/O1iwH9wRXYOCrd+rdylTq 4DR4n035EWwpUkJ+qNwAUIiTFSbck5vnkWxnMzarW5POnTGGUN2zjpCVQ3jrgJZy6p lSV/IzsLjuWh7cncZUBXFThehpITPgWOTOBiM8T0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47601: tee: amdtee: fix an IS_ERR() vs NULL bug Date: Wed, 19 Jun 2024 16:54:40 +0200 Message-ID: <2024061922-CVE-2021-47601-5e15@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=1938; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=88MwZcvjlK6h963g2iHXdkduThA5WI2eQXSiEGjgUjw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlFH+Xk+vqrr8Uwev+89tHW3zrqYW66pVpX376vb+fbV xfsX2rYEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNJnMowh+tQwPzQxc898qyN zUxvfl46eXn2D4YFRytN/1u96Zhmqfk55RzPuo1LeKySAQ== 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: tee: amdtee: fix an IS_ERR() vs NULL bug The __get_free_pages() function does not return error pointers it returns NULL so fix this condition to avoid a NULL dereference. The Linux kernel CVE team has assigned CVE-2021-47601 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 757cc3e9ff1d and fixed in 5.10.88 with commit 640e28d618e8 Issue introduced in 5.6 with commit 757cc3e9ff1d and fixed in 5.15.11 with commit 832f3655c613 Issue introduced in 5.6 with commit 757cc3e9ff1d and fixed in 5.16 with commit 9d7482771fac 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-2021-47601 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/tee/amdtee/core.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/640e28d618e82be78fb43b4bf5113bc90d6aa442 https://git.kernel.org/stable/c/832f3655c6138c23576ed268e31cc76e0f05f2b1 https://git.kernel.org/stable/c/9d7482771fac8d8e38e763263f2ca0ca12dd22c6