From mboxrd@z Thu Jan 1 00:00:00 1970 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 B151F2C1AC for ; Wed, 28 Feb 2024 08:18:43 +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=1709108323; cv=none; b=PnXDLu8L2VKZr7OUE5NePfX4kMBz6WoqV72NPXAIU8uuTGURpz2iHosoR0p/ujfcLnNLF2FwkeJ914B3LM0wdaXiDhMjASo+CD46I4f+cOlZZMH/4wJuNY8WXNqevNX8MqeP8oTFvUV85mAvq9MiX5lyTZUfLxLWSmvRo6yhEi0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108323; c=relaxed/simple; bh=9y3OunZIoCXDHWcIKJBIT2ihZpUN0xM2okwpZdjQaVM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tSAhwRUdekdrkwU4G43hzt8nMYB/I581aUP7OWx2VnghXlgmqerranHXNYjJ9BDlEBh3NjOjj1BNwCXXjDzg3ja7y3XO31BB5FSna4ZKoNpCtYHF48+Qn3c2rOfx/jWEVWsATORc/8OA5gl0M6LZq3mFGorfgHcZeuxtPU+6S80= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SRUzxhYp; 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="SRUzxhYp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35849C433F1; Wed, 28 Feb 2024 08:18:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108323; bh=9y3OunZIoCXDHWcIKJBIT2ihZpUN0xM2okwpZdjQaVM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SRUzxhYprjD18ZS7tSP8IXCRfnvHMjNWOVGZzOWQpFhFW7zP2aosK0cnJNm3ivYbh 4P8BQ7Z2PTNb1Q1qaIF+jw3N/fg6JYWVjnmhSRFFKnYqVtLcbboxHHANIfJp1+t01+ AJd5bughgluTt8UJkWkeJYvlBhkPq/X2q4k+pa6s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2021-47053: crypto: sun8i-ss - Fix memory leak of pad Date: Wed, 28 Feb 2024 09:15:41 +0100 Message-ID: <2024022841-CVE-2021-47053-c68d@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=2145; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pLJUB6U4ityRIhIBHZAYO1jLJuBcZTuncgiz5IxFaOQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn3XhdKGQXxpkQULv/56726s3ZiZUS5e4PS1dXzD522V eU5vn1bRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykw5NhwWzB4Dle1hY+L6QX Xo78eO/+pUPcHgwLGrn3P8nNTF6Z5jNjf8l6y8PSn3/OBAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: gregkh@kernel.org Description =========== In the Linux kernel, the following vulnerability has been resolved: crypto: sun8i-ss - Fix memory leak of pad It appears there are several failure return paths that don't seem to be free'ing pad. Fix these. Addresses-Coverity: ("Resource leak") The Linux kernel CVE team has assigned CVE-2021-47053 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit d9b45418a917 and fixed in 5.10.37 with commit 2c67a9333da9 Issue introduced in 5.10 with commit d9b45418a917 and fixed in 5.11.21 with commit c633e025bd04 Issue introduced in 5.10 with commit d9b45418a917 and fixed in 5.12.4 with commit d3d702084d12 Issue introduced in 5.10 with commit d9b45418a917 and fixed in 5.13 with commit 50274b01ac16 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-2021-47053 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/allwinner/sun8i-ss/sun8i-ss-hash.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/2c67a9333da9d0a3b87310e0d116b7c9070c7b00 https://git.kernel.org/stable/c/c633e025bd04f54d7b33331cfcdb71354b08ce59 https://git.kernel.org/stable/c/d3d702084d125689edb2b9395c707e09b471352e https://git.kernel.org/stable/c/50274b01ac1689b1a3f6bc4b5b3dbf361a55dd3a