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 211126D1D2 for ; Tue, 21 May 2024 14:38:38 +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=1716302318; cv=none; b=snCvwo+va7SgkVqjRC1Zrsl7PVL/LcAwkhWxLE7sI+ntSbQZmXKi6MyP5jI4jJYSK724fgWZ3QGsGlkEsXX7b5+Y994rRTnkZqzllo4iWaKI9eJvSlP63VYRIlmig4V1Mtu6qM8s/8gf5WsA6jABAb+puG1rSPCUf+QeMCh5r28= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302318; c=relaxed/simple; bh=oc5EFp/w5RQH5hTKabOdmqzsNVpta15fMbNn8vI+ydQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gDsoWpcbDVVmQCHEMdxjWq0YVvtGiY8e6uDWyb9u5zpEC07Sf0JoiIRkehLNvVIz+KiDvw4bXn3t9BmMEyhrU5CNygRoGjVpw47XfxMWdidgPfSyNlZwDrCI+YL4QRW9r6radzRa9BTo8KD2tzVVPpLskXsF22Ib1m14Ry+aOc8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xm4gi9dZ; 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="xm4gi9dZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A03C6C2BD11; Tue, 21 May 2024 14:38:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302318; bh=oc5EFp/w5RQH5hTKabOdmqzsNVpta15fMbNn8vI+ydQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xm4gi9dZwHZcfI2cXU5ZDwhgSK8qPGCoWcEAhwzLB2Wr3V1ALVbOePUdNcBcZF4yk xd1s5mR0imv8wdzdGl1xp/FGxzmbEuwW3SHelyqIPDuC2aVr2g0FeTJtb0BbX0poDY ASDGcetTdngH6l3GWfRL9x0axc5+t9lJBwC4OyU4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47315: memory: fsl_ifc: fix leak of IO mapping on probe failure Date: Tue, 21 May 2024 16:35:49 +0200 Message-ID: <2024052130-CVE-2021-47315-dbfa@gregkh> X-Mailer: git-send-email 2.45.1 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=3213; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oc5EFp/w5RQH5hTKabOdmqzsNVpta15fMbNn8vI+ydQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G4005mxMrHrOtYthi2THdI7XRUYiJxdlzIhyExeQN 5u6WC20I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay/SDD/KK0vZvXBxvEv63V amnnEbMsV7+4h2F+zdf4cuU3gQv1dycpFdzgitC/dGEJAA== 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: memory: fsl_ifc: fix leak of IO mapping on probe failure On probe error the driver should unmap the IO memory. Smatch reports: drivers/memory/fsl_ifc.c:298 fsl_ifc_ctrl_probe() warn: 'fsl_ifc_ctrl_dev->gregs' not released on lines: 298. The Linux kernel CVE team has assigned CVE-2021-47315 to this issue. Affected and fixed versions =========================== Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 4.4.276 with commit b7a2bcb4a373 Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 4.4.277 with commit bd051b3e184f Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 4.9.276 with commit d0d04b95e8ed Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 4.14.240 with commit 6b3b002de907 Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 4.19.198 with commit 94bc2fe46102 Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 5.4.134 with commit d9213d4f372d Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 5.10.52 with commit 8d071d270afb Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 5.12.19 with commit 83af5816308b Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 5.13.4 with commit 28f71fd81ebd Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 5.14 with commit 3b132ab67fc7 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-47315 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/memory/fsl_ifc.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/b7a2bcb4a3731d68f938207f75ed3e1d41774510 https://git.kernel.org/stable/c/bd051b3e184fa56eeb6276ee913ba4d48069024b https://git.kernel.org/stable/c/d0d04b95e8ed0223844a1d58497c686fe2e4a955 https://git.kernel.org/stable/c/6b3b002de90738e3c85853a682ce7e0fa078d42b https://git.kernel.org/stable/c/94bc2fe46102d1e060fc749c0c19511e76c9995f https://git.kernel.org/stable/c/d9213d4f372d30b5bc4d921795d6bed0c0e3eebf https://git.kernel.org/stable/c/8d071d270afba468708faca5f7b6d9e656f75e27 https://git.kernel.org/stable/c/83af5816308b490b05fc8fa27fc1bdc769df200a https://git.kernel.org/stable/c/28f71fd81ebd3b386bf5c7c5539664156f7d72c1 https://git.kernel.org/stable/c/3b132ab67fc7a358fff35e808fa65d4bea452521