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 512CF3FB38 for ; Fri, 17 May 2024 12:09:11 +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=1715947751; cv=none; b=sdxku6ufG4dRZJeUYOAluH0r1XiRozlpDswLtnCm+51/b5xpxfzGxOYF+uVx2KLoff0WpQCq4KWcp20Jcv1dFuI/D9KZcvS9JoRs04dIR8SflZTeVt5DNDeOtpkmbBq90Ir0dRJR6WUSONLg/o+UPrGTeT1L6C9Ok+jQu6LXNtI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715947751; c=relaxed/simple; bh=WlaniohjAhmE4aGfxjnYuJEaHoPVPuOtDsshEIO8ifo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DWBPMYUMQQbIZ9Vx8XI8FvtcTP7uNoLcRrPLtaqiQskvBniLnRoLwXkYJP1NMgXX+/6F+Nnd+yklFnzWwoH3T0v+Uxk9fbjek92ynF7Wjy7nKV8vikhtOAYGkHjy89Pb4xypvWEN7Tk5UbUSoMtcdZnrcygeiipVHmmp6KVtTro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jLxahDSK; 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="jLxahDSK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C94E8C2BD10; Fri, 17 May 2024 12:09:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715947751; bh=WlaniohjAhmE4aGfxjnYuJEaHoPVPuOtDsshEIO8ifo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=jLxahDSKo3mA0klGLEaxUVfaMeW+t7iIwPcjjwTMeba8fDjhNtXW66po00Em4thv/ VqdLvBkhV9XqUIzkEtWDyFis9NlL5csKZoRdcXJFfCHlESj0CSaptGso14zhZ6FXnS nGYC+zHMB2BgK+G/K4nWSsA9Qb4FmllpP6WaMvLM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27433: clk: mediatek: mt7622-apmixedsys: Fix an error handling path in clk_mt8135_apmixed_probe() Date: Fri, 17 May 2024 14:08:59 +0200 Message-ID: <2024051756-CVE-2024-27433-42fb@gregkh> X-Mailer: git-send-email 2.45.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=2225; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WlaniohjAhmE4aGfxjnYuJEaHoPVPuOtDsshEIO8ifo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuHjcORZvZXo5S33JxWa7LIgPXTczxf1uCnm2YdSRH3 XtJamd0RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkpz7DgkZphpt5SntNhLf8 smBhaplzweBHE8MsZiaJJi6DfRdS9mW7eX9eHLz5/YE9AA== 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: clk: mediatek: mt7622-apmixedsys: Fix an error handling path in clk_mt8135_apmixed_probe() 'clk_data' is allocated with mtk_devm_alloc_clk_data(). So calling mtk_free_clk_data() explicitly in the remove function would lead to a double-free. Remove the redundant call. The Linux kernel CVE team has assigned CVE-2024-27433 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit c50e2ea6507b and fixed in 6.6.23 with commit de3340533bd6 Issue introduced in 6.4 with commit c50e2ea6507b and fixed in 6.7.11 with commit f3633fed984f Issue introduced in 6.4 with commit c50e2ea6507b and fixed in 6.8.2 with commit fa761ce7a1d1 Issue introduced in 6.4 with commit c50e2ea6507b and fixed in 6.9 with commit a32e88f2b202 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-27433 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/clk/mediatek/clk-mt7622-apmixedsys.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/de3340533bd68a7b3d6be1841b8eb3fa6c762fe6 https://git.kernel.org/stable/c/f3633fed984f1db106ff737a0bb52fadb2d89ac7 https://git.kernel.org/stable/c/fa761ce7a1d15cca1a306b3635f81a22b15fee5b https://git.kernel.org/stable/c/a32e88f2b20259f5fe4f8eed598bbc85dc4879ed