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 628F72C6A5 for ; Wed, 28 Feb 2024 08:18:41 +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=1709108321; cv=none; b=bGND401S3oPna04apJmKi6AbonFLPPt8Qj1vO4YiI9k3RIWQEvV/mDmzC4BMCpHfJdMjT/qkqP3I0xxWPwgapIfQmegcAm7mVJN1G6vRvx/zva/x8VM7r8t2Ps2Kq+6w1lsUwkH5n5gJ6tDxZnK5ZB5P285mUMf2M9ohmOytn+k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709108321; c=relaxed/simple; bh=K1mm3GgqoPggKvsvgc3vOh5Bp/LRfy94K8pe2GrvnIc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Hfnhdm67KJ2xJrNNypqRvZ1nui13ToFiTlrc2w52sCxVGnz3qHNCU06EnjWEnRrCmTVcL9MOc0/ClQIiKrFc3Zm6qv579DSpynprgiZDBgrvbJrVa1asjH9Ir2qChs6P/kdrviBk10k5o/jyRtfCM403JhN5eMeVLS9t+1yBXic= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gN+0c9DV; 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="gN+0c9DV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C3BFC433C7; Wed, 28 Feb 2024 08:18:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709108320; bh=K1mm3GgqoPggKvsvgc3vOh5Bp/LRfy94K8pe2GrvnIc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=gN+0c9DVyqyQoWyLMXouFKbNsTJG2VME65pa1liImMU6DZTCZ3ubU5ubyWZnueUIQ 0oArD4NgrMkrwEVJW6s686qleWaZ2OBsKjb8tFHAGvZLmbM0lkLODb49xUkjf7xxZr 6bHOFHz4IPAsWP1gySEgavYHN0zFZQeMz71mktQg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: gregkh@kernel.org Subject: CVE-2021-47052: crypto: sa2ul - Fix memory leak of rxd Date: Wed, 28 Feb 2024 09:15:40 +0100 Message-ID: <2024022841-CVE-2021-47052-3cca@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=2114; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ai4asLq8eRI1vZ/HSSiDJYxlScVsjdHfAb/rOzoSUs4=; b=kA0DAAIRMUfUDdst+ykByyZiAGXe63Gh14rI3XWppasz4/hEuVyi4bPQh9gN2XBSeGZdcc5rw 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmXe63EACgkQMUfUDdst+ymHFgCgw+M2 E1VGv43qLIn4qzukIBjj63gAn23k3vjuYbz8o/NCit0X/Fhlw6mf 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: sa2ul - Fix memory leak of rxd There are two error return paths that are not freeing rxd and causing memory leaks. Fix these. Addresses-Coverity: ("Resource leak") The Linux kernel CVE team has assigned CVE-2021-47052 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit 00c9211f60db and fixed in 5.10.37 with commit 0e596b373464 Issue introduced in 5.10 with commit 00c9211f60db and fixed in 5.11.21 with commit dfd6443bf49a Issue introduced in 5.10 with commit 00c9211f60db and fixed in 5.12.4 with commit b7bd0657c203 Issue introduced in 5.10 with commit 00c9211f60db and fixed in 5.13 with commit 854b77371998 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-47052 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/sa2ul.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/0e596b3734649041ed77edc86a23c0442bbe062b https://git.kernel.org/stable/c/dfd6443bf49ac17adf882ca46c40c506a0284bd6 https://git.kernel.org/stable/c/b7bd0657c2036add71981d88a7fae50188150b6e https://git.kernel.org/stable/c/854b7737199848a91f6adfa0a03cf6f0c46c86e8