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 22FA11E04A6 for ; Thu, 7 Nov 2024 09:36:54 +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=1730972215; cv=none; b=IdBMjXL3QjnrLl3gLMSdXKA5S+2tq/g8sRr9rsLsZKwvZSTVAUct7kwDtYEo3zOk1dWmwaELyPsQsUWJymSzfHoYOZJBJc9Dxqbe/Rgu4XWpEfnoQ+ic9omxImk2WNs15UyEIIsYG0M5D9Y04D9TU/YxfrfGX6ddVMCH1k0+JL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730972215; c=relaxed/simple; bh=a2vV90kUA6+Ner98cirKlFZq95FjFbEWYfJ8r0IWATE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=A4HC/vJ0It5/CPp6znt3QJLSieXHsZc9jz32ZFS3+9kqHHeZwPkLpDTGserwRiuKzu1mIQCWmWNB8+4P4tMOUcSRnNZzHO8Y0BC0RyY+Wyle5uTl4eJhYflRSNNGAg5PyWMO2LwPwAGYLcZEZR/w1RBDd4afL2urqItZU2O4neM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yqRvWb/G; 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="yqRvWb/G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 300C4C4CECC; Thu, 7 Nov 2024 09:36:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730972214; bh=a2vV90kUA6+Ner98cirKlFZq95FjFbEWYfJ8r0IWATE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=yqRvWb/G8tkYOrMw3rqp4a/G0CMj8nxTx+xAG54+uDUxt1RBRRZGU7V/Bh/H0D978 Mxk5wroJ3f9tTGZNih0p5Bs1nOouArqWvzPhFZ90z6GaOqAkOAkh7Tu0jENH/HLYsg WyhIF/oE7Gi/TuFtSbYcW67fbdMU5zggz0o2Wuc0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50159: firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup() Date: Thu, 7 Nov 2024 10:34:59 +0100 Message-ID: <2024110747-CVE-2024-50159-3dec@gregkh> X-Mailer: git-send-email 2.47.0 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=2215; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=a2vV90kUA6+Ner98cirKlFZq95FjFbEWYfJ8r0IWATE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk6ndt1UpR/vBCOUdm9gH3Wc4/wmw90Xju+uuH49bJHq J2L1/knHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRAmOGBWc2LLwoMu16blSO wJaFmR4fKn+f6GGYH8/9iP+3rM7cSpWjcndOCbAbey2TBgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup() Clang static checker(scan-build) throws below warning: | drivers/firmware/arm_scmi/driver.c:line 2915, column 2 | Attempt to free released memory. When devm_add_action_or_reset() fails, scmi_debugfs_common_cleanup() will run twice which causes double free of 'dbg->name'. Remove the redundant scmi_debugfs_common_cleanup() to fix this problem. The Linux kernel CVE team has assigned CVE-2024-50159 to this issue. Affected and fixed versions =========================== Issue introduced in 6.3 with commit c3d4aed763ce and fixed in 6.6.59 with commit 6d91d07913ae Issue introduced in 6.3 with commit c3d4aed763ce and fixed in 6.11.6 with commit fb324fdaf546 Issue introduced in 6.3 with commit c3d4aed763ce and fixed in 6.12-rc4 with commit 39b13dce1a91 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-50159 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/firmware/arm_scmi/driver.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/6d91d07913aee90556362d648d6a28a1eda419dc https://git.kernel.org/stable/c/fb324fdaf546bf14bc4c17e0037bca6cb952b121 https://git.kernel.org/stable/c/39b13dce1a91cdfc3bec9238f9e89094551bd428