From mboxrd@z Thu Jan 1 00:00:00 1970 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 D157742056 for ; Mon, 6 Jan 2025 16:21:45 +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=1736180505; cv=none; b=dDPVbIn47q8yULMYO+xUaL7/fj7D8+zExB9sUt4R+iU296D5r4hIi7jmpFkCAVVuUwFu3DcA2hkBhCYA2bzjrxfD1PZf1gPtltftwUQV3bkCIDVcDISOmpH/EYyPpC5sfPWKq/SFGxyaYmNlixzRZFF7ZESHALfHuGUYcYbZxnI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736180505; c=relaxed/simple; bh=g2dvpZLzlbkMnCJKmTv3JDhZEtFn9pEvgC6FqweJ37Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YwRQ0CGyywSaou9Wt7Xq8dQRsDst91KYujxx09xOag7GTOATot8rCvSEk1buHSsK1C32lM6ZWFFQaFOn2fKSzFyD59j1uMucbTvqT4aai0XW/ZLcDJdfBvIbhH/z7DBaHwNnpykNedSU2NSqkzeKKxPrdk7mqP4hXC9PFaNgYoc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dIneYy31; 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="dIneYy31" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03EF0C4CED2; Mon, 6 Jan 2025 16:21:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736180505; bh=g2dvpZLzlbkMnCJKmTv3JDhZEtFn9pEvgC6FqweJ37Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dIneYy31IHDGJjgMaBJ/58j0g3CNMCnyNnsQsTrDCIwlcDolyZ7MFGJBTQk1lWjH+ 2n6CcE4Aohek/ycrNmghqjQUAEKdNOyPfrr/DcwWHpXdjxLoQTSrlYruQn4ETco4uJ LmqQLAwUMFXH370EyVYYz7X3fR6xS43W5hH/mCFs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56766: mtd: rawnand: fix double free in atmel_pmecc_create_user() Date: Mon, 6 Jan 2025 17:21:00 +0100 Message-ID: <2025010656-CVE-2024-56766-80a2@gregkh> X-Mailer: git-send-email 2.47.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=2823; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=g2dvpZLzlbkMnCJKmTv3JDhZEtFn9pEvgC6FqweJ37Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk1TC9ur5A9UVv1t66i/VW31NtdVTqe6zf84DywL9bvx /S+eUtlO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAilwwZ5vudfGvdsMZ+gedE a4nwRZOcNnq4BzIsWFb6aPvkfRNqI352iKZVR0s8EfYJBgA= 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: mtd: rawnand: fix double free in atmel_pmecc_create_user() The "user" pointer was converted from being allocated with kzalloc() to being allocated by devm_kzalloc(). Calling kfree(user) will lead to a double free. The Linux kernel CVE team has assigned CVE-2024-56766 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1.120 with commit 24cbc37e837fd9e31e5024480b779207d1d99f1d and fixed in 6.1.123 with commit 6ea15205d7e2b811fbbdf79783f686f58abfb4b7 Issue introduced in 6.6.64 with commit f1290871c8aaeb13029390a2b6e5c05733a1be6f and fixed in 6.6.69 with commit dd45c87782738715d5e7c167f8dabf0814a7394a Issue introduced in 6.12.2 with commit 8ac19ec818c548c5788da5926dcc8af96fad4bb1 and fixed in 6.12.8 with commit d2f090ea57f8d6587e09d4066f740a8617767b3d Issue introduced in 6.13-rc1 with commit 6d734f1bfc336aaea91313a5632f2f197608fadd and fixed in 6.13-rc5 with commit d8e4771f99c0400a1873235704b28bb803c83d17 Issue introduced in 4.19.325 with commit 2014fcea19ec27df033359a0f42db0e8ed4290a8 Issue introduced in 5.4.287 with commit 22fbbc37edb840fd420fadf670366be9bf028426 Issue introduced in 5.10.231 with commit 54cb5fa850f9306d84e49a3db44b7a7eb5536cd1 Issue introduced in 5.15.174 with commit 5fe7709251e334cc27618473299c48340cecd3c8 Issue introduced in 6.11.11 with commit bdd11a04d102f8310812aa7cec39545fdd6662d1 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-2024-56766 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/mtd/nand/raw/atmel/pmecc.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/6ea15205d7e2b811fbbdf79783f686f58abfb4b7 https://git.kernel.org/stable/c/dd45c87782738715d5e7c167f8dabf0814a7394a https://git.kernel.org/stable/c/d2f090ea57f8d6587e09d4066f740a8617767b3d https://git.kernel.org/stable/c/d8e4771f99c0400a1873235704b28bb803c83d17