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 15DE6301499 for ; Tue, 19 Aug 2025 17:22:39 +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=1755624161; cv=none; b=M0f9nzmj83tk3WVOY7/l2OhURVzdkED+3W9W7fA75Y6GK8UT9k3Vh+xkQ7d7LaDOuD3JogFC1IdOur8xjC+yXxqk+dyu+pJNL14F15LL99/POc5a4zOjnBl/z8Zwj+62JzebyMig9qOBczjDfih+GFjT9M/6w/xnNFs03371myg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624161; c=relaxed/simple; bh=tFvv4xWzJl9ZT+HfbR/+jUpUyoK+8JcgqgeNR4xyuRk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uh6UGKc0kevNIqe8/q9YSfG2uyEXMoyKoTj8kG6B6NiR2PrOe1xcSgSjUN9nxMeyYeATSPjQ0kvPyDZYmC8ajHjMHNuSRAlQ8DGzNdwEnacLijplHuUZleoU0E4WTFWgKzF5yyowhqbEwKzpWe9WlTTTMDHMf7w4M10JYt3vhB8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vmT0aMP3; 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="vmT0aMP3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0BAC6C4CEF4; Tue, 19 Aug 2025 17:22:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624159; bh=tFvv4xWzJl9ZT+HfbR/+jUpUyoK+8JcgqgeNR4xyuRk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vmT0aMP3mgfNdltbTq/Y2/dA579Z4ZIJND3Hr97z7NRLJMCoI/UkYdTdB6Ttfm7ke 4v6PZTN1iqh6tZPWgirLmbqpYbyBBAbLtq47K27Rn7urNRLFUVjJWTRZGrZNA98V1G xQqYLcgyfAxTZv+A8MZiEL/trWzpgCZtZvBtsLbU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38583: clk: xilinx: vcu: unregister pll_post only if registered correctly Date: Tue, 19 Aug 2025 19:18:29 +0200 Message-ID: <2025081914-CVE-2025-38583-ca53@gregkh> X-Mailer: git-send-email 2.50.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=3183; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=71RZ7B9JtsotpnLDUsL106qkLN4tixW2qdvA39OqBKI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNl4L2tze5zmLvYm9/qYly2f1tFtBpYei+RrWyU3ae HqHQfHLjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI8o0MC2bpJmdPlLHMMVCw miXz6Nu08L78GQzzK/7ard9Udz3BbRvPuvXaBiJGUobpAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: clk: xilinx: vcu: unregister pll_post only if registered correctly If registration of pll_post is failed, it will be set to NULL or ERR, unregistering same will fail with following call trace: Unable to handle kernel NULL pointer dereference at virtual address 008 pc : clk_hw_unregister+0xc/0x20 lr : clk_hw_unregister_fixed_factor+0x18/0x30 sp : ffff800011923850 ... Call trace: clk_hw_unregister+0xc/0x20 clk_hw_unregister_fixed_factor+0x18/0x30 xvcu_unregister_clock_provider+0xcc/0xf4 [xlnx_vcu] xvcu_probe+0x2bc/0x53c [xlnx_vcu] The Linux kernel CVE team has assigned CVE-2025-38583 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 4472e1849db7f719bbf625890096e0269b5849fe and fixed in 6.1.148 with commit 88bd875b7f9c3652c27d6e4bb7a23701b764f762 Issue introduced in 5.12 with commit 4472e1849db7f719bbf625890096e0269b5849fe and fixed in 6.6.102 with commit 51990eecf22f446550befdfd1a9f54147eafd636 Issue introduced in 5.12 with commit 4472e1849db7f719bbf625890096e0269b5849fe and fixed in 6.12.42 with commit f1a1be99d5ae53d3b404415f1665eb59e8e02a8c Issue introduced in 5.12 with commit 4472e1849db7f719bbf625890096e0269b5849fe and fixed in 6.15.10 with commit 86124c5cfceb5ac04d2fddbf1b6f7147332d96a3 Issue introduced in 5.12 with commit 4472e1849db7f719bbf625890096e0269b5849fe and fixed in 6.16.1 with commit a72b1c2d3b53e088bfaeb593949ff6fbd2cbe8ed Issue introduced in 5.12 with commit 4472e1849db7f719bbf625890096e0269b5849fe and fixed in 6.17-rc1 with commit 3b0abc443ac22f7d4f61ddbbbbc5dbb06c87139d 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-2025-38583 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/xilinx/xlnx_vcu.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/88bd875b7f9c3652c27d6e4bb7a23701b764f762 https://git.kernel.org/stable/c/51990eecf22f446550befdfd1a9f54147eafd636 https://git.kernel.org/stable/c/f1a1be99d5ae53d3b404415f1665eb59e8e02a8c https://git.kernel.org/stable/c/86124c5cfceb5ac04d2fddbf1b6f7147332d96a3 https://git.kernel.org/stable/c/a72b1c2d3b53e088bfaeb593949ff6fbd2cbe8ed https://git.kernel.org/stable/c/3b0abc443ac22f7d4f61ddbbbbc5dbb06c87139d