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 35EDC1F4E52 for ; Fri, 27 Dec 2024 14:25:07 +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=1735309507; cv=none; b=i14kKj5ZNQ8eSRiDCuuUBtWomWmfOaEmFABzus2p4SgQfVBxseO3PdytNH6ZBOqTuqn3XnGczO+ncimERTQZi/7evvm6v4MlV/TyXqHMLaPEFAqHRRbaLwQciL66hfMDtf/4YnYm/PrMc6P0UfwKn84mb0js5eDdA+BYrgbBoSE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735309507; c=relaxed/simple; bh=IsOwpnQL1f9mp2AKP6KNs2oDPesDaK7ayo9PLXFUZgY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IIdsvPdet0THhXq+N/WEdhhF6GzFdmllXL85Pgq2oKQX0jTxzum/EFYivEBwMtWwe5fJ4QlvFis5XPPfdYaSbb7TnVpla47d7dRNc298YiDomzCMoPlonb0WjmBotyDtT/35VJyG3qKaBB4CZ60zshz/a2M5kNP7X8QMEsEj8rE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=I1cbz0n+; 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="I1cbz0n+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99BC5C4CED0; Fri, 27 Dec 2024 14:25:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735309507; bh=IsOwpnQL1f9mp2AKP6KNs2oDPesDaK7ayo9PLXFUZgY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=I1cbz0n+JIBRz8vTM7FwMF7HcNRJ4s0zUnzbe7ZD/j5PNPWDmCrKh7/cIGxK6nEJC faE+xvTqNFh05oCTxHD4JhvFbmG5cYqDm9O1AO/t2qHYdI0CLcDAaUcvNqVV+GRQ2v KvZ4Jf2lm9ObERvBVVfqZyvzjKSweM6u3EE8xPrk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56562: i3c: master: Fix miss free init_dyn_addr at i3c_master_put_i3c_addrs() Date: Fri, 27 Dec 2024 15:23:13 +0100 Message-ID: <2024122713-CVE-2024-56562-9fd5@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=3229; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IsOwpnQL1f9mp2AKP6KNs2oDPesDaK7ayo9PLXFUZgY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5OwJbOY7ml7o6rprHe+G0BGvgk9tP5s9XEPm0ub6Go eU957RfHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARt0MMC7byrvvzO//n5c1f /lVz3JyQnKYlaMuwYLeEqK+9y66qi/YBWzTn7l2QdpXTDQA= 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: i3c: master: Fix miss free init_dyn_addr at i3c_master_put_i3c_addrs() if (dev->boardinfo && dev->boardinfo->init_dyn_addr) ^^^ here check "init_dyn_addr" i3c_bus_set_addr_slot_status(&master->bus, dev->info.dyn_addr, ...) ^^^^ free "dyn_addr" Fix copy/paste error "dyn_addr" by replacing it with "init_dyn_addr". The Linux kernel CVE team has assigned CVE-2024-56562 to this issue. Affected and fixed versions =========================== Issue introduced in 5.0 with commit 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0 and fixed in 5.4.287 with commit c2f0ce241154b04f2fc150ff16ad82d9b8fdfa4a Issue introduced in 5.0 with commit 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0 and fixed in 5.10.231 with commit 093ecc6d82ff1d2e0cbf6f2000438b6c698145cb Issue introduced in 5.0 with commit 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0 and fixed in 5.15.174 with commit 0cb21f1ea3a2e19ee314a8fcf95461b5c453c59e Issue introduced in 5.0 with commit 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0 and fixed in 6.1.120 with commit 991e33a99fd3b5d432f0629565f532f563fe019a Issue introduced in 5.0 with commit 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0 and fixed in 6.6.64 with commit ce30d11b39e8d637fed4704a5b43e9d556990475 Issue introduced in 5.0 with commit 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0 and fixed in 6.12.4 with commit 0e8ab955c6d06f9d907761c07c02d1492f0a8ac1 Issue introduced in 5.0 with commit 3a379bbcea0af6280e1ca0d1edfcf4e68cde6ee0 and fixed in 6.13-rc1 with commit 3082990592f7c6d7510a9133afa46e31bbe26533 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-56562 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/i3c/master.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/c2f0ce241154b04f2fc150ff16ad82d9b8fdfa4a https://git.kernel.org/stable/c/093ecc6d82ff1d2e0cbf6f2000438b6c698145cb https://git.kernel.org/stable/c/0cb21f1ea3a2e19ee314a8fcf95461b5c453c59e https://git.kernel.org/stable/c/991e33a99fd3b5d432f0629565f532f563fe019a https://git.kernel.org/stable/c/ce30d11b39e8d637fed4704a5b43e9d556990475 https://git.kernel.org/stable/c/0e8ab955c6d06f9d907761c07c02d1492f0a8ac1 https://git.kernel.org/stable/c/3082990592f7c6d7510a9133afa46e31bbe26533