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 428906D1D2 for ; Tue, 21 May 2024 14:38:35 +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=1716302315; cv=none; b=eKjgQMRV50lzFjuVohWcJuOiIlsO9vS29HXd8Uts0NXGZVD7bNmWJawAB+k3Zq6q3DLMX2jd081nAd8t8BxBKkt6FnoMedgny85oow06FqRM00SZlO6+xQNQ3UoYNwF7Hd8G0HcsUalJfKMSB3JTgkjFLUkbHSaP4FlgpmI76Jk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716302315; c=relaxed/simple; bh=Q+5yJXY17+9BxcALsO/hSOSsl3dh0aVUoMLDDX6PqpI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Tf6M79bUOC3gxBKJ+xRGR+CQB+mlWztfJPx2PomgCqCj/HTuHZpP5s7BIStdW317+dOG275tVvhv2qp+6XNHocy/D64yOY8DAUxZ6+Ss7lGAe7gv2ln0PnOnw6W17OfHLw6FbUS1jJV1r5MyjfcD4Dseem1mCAqNTH57dfwuAR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lBJoSLhs; 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="lBJoSLhs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BCBC8C2BD11; Tue, 21 May 2024 14:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716302315; bh=Q+5yJXY17+9BxcALsO/hSOSsl3dh0aVUoMLDDX6PqpI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lBJoSLhsPTMSfNv7EmwsYRthSVN6jUA0849wBVfQi0J6GXvJmhrF2LrCAVq2PR74g qh/rvWZZrXP2jUJB3iLOCbNJ9FwSWOx13KPZxXsVEM4NAC4ftjvDVAxMpkdqot2By7 Pbuey2M+YDjhhwIRYiF3ZMD5avUzSObO836LjkcU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47314: memory: fsl_ifc: fix leak of private memory on probe failure Date: Tue, 21 May 2024 16:35:48 +0200 Message-ID: <2024052129-CVE-2021-47314-7860@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=2990; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Q+5yJXY17+9BxcALsO/hSOSsl3dh0aVUoMLDDX6PqpI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+G436G+a8e2hfy/VNpVIv7+J5BePfra0Gbb/OMW1t5 l+5NriiI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZySp5hwY130vOM9qXbfLgR 7ht8UXSqwoKibIZ5WtcefM8pfW+a4XL+3MdER8+lfXd5AQ== 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 private memory on probe failure On probe error the driver should free the memory allocated for private structure. Fix this by using resource-managed allocation. The Linux kernel CVE team has assigned CVE-2021-47314 to this issue. Affected and fixed versions =========================== Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 4.4.276 with commit 801847675606 Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 4.9.276 with commit 3b45b8a7d549 Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 4.14.240 with commit 7626ffbea708 Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 4.19.198 with commit ee1aa737ba0b Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 5.4.134 with commit 443f6ca6fd18 Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 5.10.52 with commit b5789e23773f Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 5.12.19 with commit 48ee69825f74 Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 5.13.4 with commit a6b45b4932f7 Issue introduced in 3.3 with commit a20cbdeffce2 and fixed in 5.14 with commit 8e0d09b1232d 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-47314 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/8018476756066e97ecb886c3dc024aeb7d5792ad https://git.kernel.org/stable/c/3b45b8a7d549bd92ec94b5357c2c2c1a7ed107e4 https://git.kernel.org/stable/c/7626ffbea708e5aba6912295c012d2b409a1769f https://git.kernel.org/stable/c/ee1aa737ba0b75ab8af3444c4ae5bdba36aed6e6 https://git.kernel.org/stable/c/443f6ca6fd186b4fa4e6f377b6e19a91feb1a0d5 https://git.kernel.org/stable/c/b5789e23773f4a852fbfe244b63f675e265d3a7f https://git.kernel.org/stable/c/48ee69825f7480622ed447b0249123236d3b3ad0 https://git.kernel.org/stable/c/a6b45b4932f7b0c36b41fb56a35ad679ece939a0 https://git.kernel.org/stable/c/8e0d09b1232d0538066c40ed4c13086faccbdff6