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 34A2F392FF1 for ; Tue, 16 Dec 2025 13:45:10 +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=1765892710; cv=none; b=Ej+4Psl8uuYH2OjmWWqXRsBMaYaVTWadymn5iFTy3w7dVUmTfo0BHPCzQS/Tyq47abTL4mTH/KGi4SZjldNjdG43mSjQdfxckdpEsIdrcQp3jFeGrfAxY0FWb3asGJhaAOvNdAY+tZO28K/Zi+Dw9W6CIcgKlZNOBgCApsPnfC0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892710; c=relaxed/simple; bh=RD3m/a0W5KTedBGc5ldoK9peOZg7nqIIR4Bk+QUAV4c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=t5f8DbshpEW4CHcSb9GLscQpify8cJdXTztATFxCCNY0Oz1dJH+bXy005nt+zkAkCqEz0Qn3io05tCr1wEZfLTDgUwxoptejBBD3p/4IPzUvlow+Ep5YjPPFLX/F4Se35MkAjsVgk+vZK3A927btNAHxTG3XU19nLa/Di/NWMGk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JEa1/KEC; 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="JEa1/KEC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6669C4CEF1; Tue, 16 Dec 2025 13:45:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892710; bh=RD3m/a0W5KTedBGc5ldoK9peOZg7nqIIR4Bk+QUAV4c=; h=From:To:Cc:Subject:Date:Reply-To:From; b=JEa1/KECDQIk3QgEZelxtdh2qqmhdxDeZs6j6THdRotU8quBwCkGbt1S6sbEz0mSy UnniZjxyoHMCfx8n8IrG8/6XBKuUNaTnOUBMGlJgfZdsxcbUXT5XbyreUBu6RaOGFW SLPyzTS6Jw+BxqZ/JVb5Wp1k3eNsw9tuOekH3c6o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68173: ftrace: Fix softlockup in ftrace_module_enable Date: Tue, 16 Dec 2025 14:43:34 +0100 Message-ID: <2025121629-CVE-2025-68173-788c@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2544; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7mQ18u8OcBwHmcHkgFkStuGiWwrOHpIHyGMTjpQsgVY=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOSYwx03zdCzMkV4UW2pVPkr219MxLbpW9v6YL/HO03 qAnm2vfEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOxV2ZYcPpOrefUtrztDaVJ GgxZdj9cT5xuYljQZvjZJ0fV+SpDe8jC0n8z3J+bTPgBAA== 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: ftrace: Fix softlockup in ftrace_module_enable A soft lockup was observed when loading amdgpu module. If a module has a lot of tracable functions, multiple calls to kallsyms_lookup can spend too much time in RCU critical section and with disabled preemption, causing kernel panic. This is the same issue that was fixed in commit d0b24b4e91fc ("ftrace: Prevent RCU stall on PREEMPT_VOLUNTARY kernels") and commit 42ea22e754ba ("ftrace: Add cond_resched() to ftrace_graph_set_hash()"). Fix it the same way by adding cond_resched() in ftrace_module_enable. The Linux kernel CVE team has assigned CVE-2025-68173 to this issue. Affected and fixed versions =========================== Fixed in 6.1.159 with commit a1dd0abd741a8111260676da729825d6c1461a71 Fixed in 6.6.117 with commit e81e6d6d99b16dae11adbeda5c996317942a940c Fixed in 6.12.58 with commit 40c8ee40e48a2c82c762539952ed8fc0571db5bf Fixed in 6.17.8 with commit 7e3c96010ade29bb340a5bdce8675f50c7f59001 Fixed in 6.18 with commit 4099b98203d6b33d990586542fa5beee408032a3 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-68173 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: kernel/trace/ftrace.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/a1dd0abd741a8111260676da729825d6c1461a71 https://git.kernel.org/stable/c/e81e6d6d99b16dae11adbeda5c996317942a940c https://git.kernel.org/stable/c/40c8ee40e48a2c82c762539952ed8fc0571db5bf https://git.kernel.org/stable/c/7e3c96010ade29bb340a5bdce8675f50c7f59001 https://git.kernel.org/stable/c/4099b98203d6b33d990586542fa5beee408032a3