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 B4B68215F64 for ; Wed, 26 Feb 2025 02:13: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=1740536025; cv=none; b=QCzY8e6KLMUKB5gVgxYmvLkUhoYfhfgfDdKc7dg0WimtLeFEVJLNFsxQ+iwPY8o231sttoiDe6bg3nWzMY+BYCpYcNYaSHEx5mIDXFcUn5ocCR5+iTKbFLEH7NDwvyIsdgt5VRVTPuSD7GyRXDncrr0kIHDntOX1kpGm7s/4AK8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536025; c=relaxed/simple; bh=HJfSL39xx8UAbqY7yY7CQWYy3Y3Bq7uQT2XdCIgimSE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XeaqdGLj4Bm4QDxBGgmkRD6T/3NaTQ8SvDBc/V8DPSaCLIk+26y/kieA5IsF648bf+R6YXmZrSeXeo9CMOMatp8p1UL3t2XinySUySGns7ApblBW9+3Z6csbKYyaD649k+Au//u+fRRayg1cQDuFBQfM4We2bbj8rch5y2dkV2c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BCM0hGLQ; 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="BCM0hGLQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C416C4CEDD; Wed, 26 Feb 2025 02:13:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536025; bh=HJfSL39xx8UAbqY7yY7CQWYy3Y3Bq7uQT2XdCIgimSE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=BCM0hGLQjhiYBW2HHcBFenCQMizyHhbV5hS8g/KjbeVi/M6te0w1f+6muBscJw1L/ LxEBVIetLr8PvaJLqZT+lk+utaP5gLXmpHz6bY+JFHjAYb0lhk6R43E/o73y3ng1hR LV4y8f0+BUbDTtA1qTO0DQOaCZF/Sc6ERpR0d7Ts= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49391: remoteproc: mtk_scp: Fix a potential double free Date: Wed, 26 Feb 2025 03:11:05 +0100 Message-ID: <2025022649-CVE-2022-49391-a147@gregkh> X-Mailer: git-send-email 2.48.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=1878; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HJfSL39xx8UAbqY7yY7CQWYy3Y3Bq7uQT2XdCIgimSE=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yt+e/RBupKqztdx85s5t/Q+qTI7ETZE5ZaqW7vaWq eEBY/WBjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIsSrDgg0nvJT+pjsqePtZ hrqZV93XPT7TlWHByh06Rw472y43XvL/wP3/e6W0DqW6AgA= 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: remoteproc: mtk_scp: Fix a potential double free 'scp->rproc' is allocated using devm_rproc_alloc(), so there is no need to free it explicitly in the remove function. The Linux kernel CVE team has assigned CVE-2022-49391 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit c1407ac1099ab9726c31d38d806f3150f494c494 and fixed in 5.18.4 with commit adc02700236613b344a947a897fc2741d52a43b9 Issue introduced in 5.18 with commit c1407ac1099ab9726c31d38d806f3150f494c494 and fixed in 5.19 with commit eac3e5b1c12f85732e60f5f8b985444d273866bb 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-2022-49391 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/remoteproc/mtk_scp.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/adc02700236613b344a947a897fc2741d52a43b9 https://git.kernel.org/stable/c/eac3e5b1c12f85732e60f5f8b985444d273866bb