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 511A34F8AB for ; Tue, 27 Feb 2024 18:48:19 +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=1709059699; cv=none; b=KVibo8Rl8pnZQJpXGVhVdl7hX9xZ+D2YWqr7eeUd6wXahL58YSaGWB4au8UWqMm9hOKa5jkWf2bYKOZ2/KfV8U3i4MQCGymPOwwbI3Cs9tdY8+8OGAITc+hrSYbHvuaVvLbN6WwummnfvoDuwtg0e0l7Vv1yzvWFaPN1745Z1hM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709059699; c=relaxed/simple; bh=mPCH8xZ/MGTvrApsPSBTJjH1TZD7kO+8u1ubzrWeVqk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gZt0vqLxtfGYQGR60hBj10B2SNpvIB2feM5DEd8fxP+QmTBlzXHdfuBZu/K9t7YLrfMmCf1TCBc6EctHSLYToen1unCMjMg994HwwuzBKHIc+GTtBp8wbQTd7Y2LxeCVgXi5NuVb33Hd/gDDX43yrlEcIUnBYxYcgxxlfPR/YeE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dH9I1G19; 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="dH9I1G19" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0EB5C433C7; Tue, 27 Feb 2024 18:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709059699; bh=mPCH8xZ/MGTvrApsPSBTJjH1TZD7kO+8u1ubzrWeVqk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dH9I1G19FoOlqKsPT4bqHbPwSkO0lE60J6MilnumxLmjzRRKV1OQF/23IXgrFV9M1 mNQe8EiiHoulEwPX8mhM/Fz4mQVJNsBudM6pJRxiKT3PySHHXqMlJ7Fs419btFKEQB qtxONHN/Z9rQvfavzmrbwSylOvm5HBUlpkyqzrf8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46962: mmc: uniphier-sd: Fix a resource leak in the remove function Date: Tue, 27 Feb 2024 19:47:22 +0100 Message-ID: <2024022719-CVE-2021-46962-e081@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=2423; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mPCH8xZ/MGTvrApsPSBTJjH1TZD7kO+8u1ubzrWeVqk=; b=owGbwMvMwCRo6H6F97bub03G02pJDKn39MwP1nyaudJ711sNpSCjpit7koNymq9tr3izJNzRw mPJUge1jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI6R2G+dGfrumLZ4VFNNcb 3BdluWov9C1jEcP88KdCfdJyq3fO1MvLWXvcZFZwjFMeAA== 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: mmc: uniphier-sd: Fix a resource leak in the remove function A 'tmio_mmc_host_free()' call is missing in the remove function, in order to balance a 'tmio_mmc_host_alloc()' call in the probe. This is done in the error handling path of the probe, but not in the remove function. Add the missing call. The Linux kernel CVE team has assigned CVE-2021-46962 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit 3fd784f745dd and fixed in 5.4.118 with commit 0d8941b9b2d3 Issue introduced in 4.20 with commit 3fd784f745dd and fixed in 5.10.36 with commit 25ac6ce65f1a Issue introduced in 4.20 with commit 3fd784f745dd and fixed in 5.11.20 with commit ebe0f12cf4c0 Issue introduced in 4.20 with commit 3fd784f745dd and fixed in 5.12.3 with commit d6e7fda49697 Issue introduced in 4.20 with commit 3fd784f745dd and fixed in 5.13 with commit e29c84857e2d 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-46962 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/mmc/host/uniphier-sd.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/0d8941b9b2d3e7b3481fdf43b1a6189d162175b7 https://git.kernel.org/stable/c/25ac6ce65f1ab458982d15ec1caf441acd37106a https://git.kernel.org/stable/c/ebe0f12cf4c044f812c6d17011531582f9ac8bb3 https://git.kernel.org/stable/c/d6e7fda496978f2763413b5523557b38dc2bf6c2 https://git.kernel.org/stable/c/e29c84857e2d51aa017ce04284b962742fb97d9e