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 88CB21F2C41 for ; Fri, 27 Dec 2024 14:11:59 +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=1735308719; cv=none; b=AdAXYCGuZen0Wdp0EQyFro4Gow19Li0zds4NSVbUe0ic38rxyjXlbxYwJT7tf7hK0B2N4MOubB3Hlm5YZjEtGTX3sOhicm6IPj5dGnw8PzJwCnMVwdvqweCuia5brVHbWQXFaLzrdKGTQN7vOlCzgct4hbEfrXAyb71KI6YEt7M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735308719; c=relaxed/simple; bh=uVigAk8DwUCe8+KWzjhbwyQGSSIyyTIQEfLIJZJ96x0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PkalZOo+RdbJdGp6U8ID2HSqAane3XaliBmbPuVSfguVSvu5vSQ0uaGuzueZ3JHYMzcumjZTI78/LN8iYdkI8r7IN05iXcdk1QBkAD9vHpnSzbfy5yh0F15zNTAIGAHoE6N8GhFPF577t8KodCHrf5pOn6Bavo4oyl7nxY1rxfo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NSOKpZH3; 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="NSOKpZH3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E96EFC4CED0; Fri, 27 Dec 2024 14:11:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735308719; bh=uVigAk8DwUCe8+KWzjhbwyQGSSIyyTIQEfLIJZJ96x0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NSOKpZH3AsTJYOefahI0UShTgXtkJjg8W3//0Y8SMfaf0Qh2QDWiC3JVtYF0KJE6t qmspkY9KjRM+aTYZLJXpbLW+AuxCXLOXQjIrGnvLb5wIfK9DRHSgWLilndQAKkZm0f n6DSeOXj2uhD37JQpQtclA7ppEkmxIx2p5lcQkE4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56546: drivers: soc: xilinx: add the missing kfree in xlnx_add_cb_for_suspend() Date: Fri, 27 Dec 2024 15:11:37 +0100 Message-ID: <2024122729-CVE-2024-56546-3138@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=2643; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uVigAk8DwUCe8+KWzjhbwyQGSSIyyTIQEfLIJZJ96x0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5Wyd+C1mtuG/NZwYj40mtu3Z/ne88X+LIrMzTVol/t mROTq0N6YhhYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJcFkxTHcTCOL/6p+y/lbt 81m3T3Uvq2p5zzC/SjHAJyL3W6/Q1CN7n3/ceMt7AcscAA== 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: drivers: soc: xilinx: add the missing kfree in xlnx_add_cb_for_suspend() If we fail to allocate memory for cb_data by kmalloc, the memory allocation for eve_data is never freed, add the missing kfree() in the error handling path. The Linux kernel CVE team has assigned CVE-2024-56546 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 05e5ba40ea7ab6a99bb8d6117c899d0e13ca8700 and fixed in 6.1.120 with commit 272168927f38bda46f6c1ed5f40de97689e7a5d2 Issue introduced in 5.19 with commit 05e5ba40ea7ab6a99bb8d6117c899d0e13ca8700 and fixed in 6.6.64 with commit 882d7afaa4b82c20a7be7a3a039532a80ebacd23 Issue introduced in 5.19 with commit 05e5ba40ea7ab6a99bb8d6117c899d0e13ca8700 and fixed in 6.11.11 with commit 5a3bda42394ff137eb2d3d3d20d2956a8c6e9237 Issue introduced in 5.19 with commit 05e5ba40ea7ab6a99bb8d6117c899d0e13ca8700 and fixed in 6.12.2 with commit 584d420771e1ad2bb74e19a19da8ae0fee0a6e1f Issue introduced in 5.19 with commit 05e5ba40ea7ab6a99bb8d6117c899d0e13ca8700 and fixed in 6.13-rc1 with commit 44ed4f90a97ff6f339e50ac01db71544e0990efc 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-56546 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/soc/xilinx/xlnx_event_manager.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/272168927f38bda46f6c1ed5f40de97689e7a5d2 https://git.kernel.org/stable/c/882d7afaa4b82c20a7be7a3a039532a80ebacd23 https://git.kernel.org/stable/c/5a3bda42394ff137eb2d3d3d20d2956a8c6e9237 https://git.kernel.org/stable/c/584d420771e1ad2bb74e19a19da8ae0fee0a6e1f https://git.kernel.org/stable/c/44ed4f90a97ff6f339e50ac01db71544e0990efc