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 523C916FF51 for ; Thu, 29 Feb 2024 22:38:28 +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=1709246309; cv=none; b=qM9SDdiSDc1Eih+kTXCKkpaw3SnsfI3BibsHDQTXmQ0X18l4cQqKUU6gDLvvLKQlLz3pk3qXb3fJypxHDG6oM8JH0zzzve8LsQfve+RCwLcDmKJ1i0dc+U1uM0sN/2eCTv+ktQrdowph+pkbur+FmK5OqeirQ6aGjodGIqkALW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709246309; c=relaxed/simple; bh=fT4wBDO/QOGMnVOfHkbzNDtv/m7mbSYyx15pX4o33c0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=piRr49ssa8XynbpAMcpWzRhYLIsCDx6c//tZbHq0mH1BZn5HoloeAFXpfS16ivLc0u0lqHYBTzrvsLf4vuA9/3AdOY1nA4Zq4TQ+bGKkxQsiKUDqQVkBHET547yGvmYNw2e+fNwNsgV38wLB1n5pnUH97lqb84tZCzwAZy5eT/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wGSsEaAX; 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="wGSsEaAX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67B78C433F1; Thu, 29 Feb 2024 22:38:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709246308; bh=fT4wBDO/QOGMnVOfHkbzNDtv/m7mbSYyx15pX4o33c0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wGSsEaAXufclO8ym1cnJkW9tnYcGSFimgvXvkCNu0L8+Z4TzwhGL25G2tvEmGRPtB YGdniPWh3Ctc4R7lYpnafx52TH2Pit5bZE+cW5XdI2I0QNLpE79X0JcZuTXpfXoDcd AIAH1V0edPaEkBsjCzKt1K6b13IWq4jWGe5VUXyY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47057: crypto: sun8i-ss - Fix memory leak of object d when dma_iv fails to map Date: Thu, 29 Feb 2024 23:37:54 +0100 Message-ID: <2024022951-CVE-2021-47057-01fa@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=2291; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fT4wBDO/QOGMnVOfHkbzNDtv/m7mbSYyx15pX4o33c0=; b=owGbwMvMwCRo6H6F97bub03G02pJDKkP2e3ndbuzam/3v2D719P+ob05S7dSwsmS/y8K4rdoN V9ZoSbVEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOJSmOYKxmkrcrJLBxUJCVZ VJ2ZcU+le9kmhvkB/2bP4bh2zPCV2tmmkkt1b+Yem9MHAA== 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: sun8i-ss - Fix memory leak of object d when dma_iv fails to map In the case where the dma_iv mapping fails, the return error path leaks the memory allocated to object d. Fix this by adding a new error return label and jumping to this to ensure d is free'd before the return. Addresses-Coverity: ("Resource leak") The Linux kernel CVE team has assigned CVE-2021-47057 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit ac2614d721de and fixed in 5.10.37 with commit 617ec35ed51f Issue introduced in 5.10 with commit ac2614d721de and fixed in 5.11.21 with commit e1f2d739849c Issue introduced in 5.10 with commit ac2614d721de and fixed in 5.12.4 with commit 6516cb852d70 Issue introduced in 5.10 with commit ac2614d721de and fixed in 5.13 with commit 98b5ef3e97b1 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-47057 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-prng.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/617ec35ed51f731a593ae7274228ef2cfc9cb781 https://git.kernel.org/stable/c/e1f2d739849c3239df1ea3f97d40bade4b808410 https://git.kernel.org/stable/c/6516cb852d704ff8d615de1f93cd443a99736c3d https://git.kernel.org/stable/c/98b5ef3e97b16eaeeedb936f8bda3594ff84a70e