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 9919726D4C6 for ; Fri, 9 May 2025 06:43:44 +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=1746773024; cv=none; b=LxSIccd3JpvwhnvqmC2Y+Ekf9gkZD0yn9XPxhaA/ziYmNEiiBmOZIpDWjKdwdWWMXhIXrg28svZ2F+GW+kdb39rZpt60weSPPAnZbYIzJcx+RVN0C3j8du55bAs7gOvJ+6hxNFyZATR3me5XnF1svcqBjc3OcUUnOIJQe4+ho2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746773024; c=relaxed/simple; bh=dgJeSwPrBOlNoCFkIPLjz6nyfY9kuILhfJrU7lOpG1k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WwfT6/4qI7JmUT8fYFrkSSP48j1M86cg9Yzk3WzpmqXZo/xQHyf8xFf4ik4odkNHi7F/SBmldagubjNYA6g10lHO68arn36tWwnsyo2v+If5Q0snNoIBV0n8+CF+AehdGkdf6qZ88uU/L0LqWHljn2AZ6UgouJCd3O0FIShX7e8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q6oldlsD; 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="q6oldlsD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A26A7C4CEE9; Fri, 9 May 2025 06:43:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746773024; bh=dgJeSwPrBOlNoCFkIPLjz6nyfY9kuILhfJrU7lOpG1k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=q6oldlsDGQYvy7qIMhKgxsgNiBeb5kR1dtMBAxYvWy16xqAG+5hH7KgzyHYuvSL18 qOvkTpBJkY+dtPjOIfOA0dklxm4QjhZlwadnTVouMfTJc+yZiGxhFltpxeyzQp86Xe olAT9d/BuMoiclArsw0UClWaztc+HFPJGyAdF1uY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37845: tracing: fprobe events: Fix possible UAF on modules Date: Fri, 9 May 2025 08:42:23 +0200 Message-ID: <2025050917-CVE-2025-37845-c06f@gregkh> X-Mailer: git-send-email 2.49.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=2701; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TlJtEIJBbhxfLPkuhcHegjH7UQO4XZt5DbHSfzaLpd4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyi0+WB2S5tHr8nG1vccbHI47J77XZOa3VU3r/n/Eua pvOU32/I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZypJBhNkv8EoEzIUzZK9U/ 1bV83hcXIX82jmHBQZ+C77sNeJ8U/f0zJ+nQtA4l96fyAA== 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: tracing: fprobe events: Fix possible UAF on modules Commit ac91052f0ae5 ("tracing: tprobe-events: Fix leakage of module refcount") moved try_module_get() from __find_tracepoint_module_cb() to find_tracepoint() caller, but that introduced a possible UAF because the module can be unloaded before try_module_get(). In this case, the module object should be freed too. Thus, try_module_get() does not only fail but may access to the freed object. To avoid that, try_module_get() in __find_tracepoint_module_cb() again. The Linux kernel CVE team has assigned CVE-2025-37845 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.21 with commit 71c9cf87776eaa556fc0a0a060df94200e1f521c and fixed in 6.12.24 with commit 868df4eb784c3ccc7e4340a9ea993cbbedca167e Issue introduced in 6.13.9 with commit 9db2b8cf4ea07b579db588e0353d5680f5d1f071 and fixed in 6.13.12 with commit a27d2de2472b1cc7d582ab405d1d5832a80481de Issue introduced in 6.14 with commit ac91052f0ae5be9e46211ba92cc31c0e3b0a933a and fixed in 6.14.3 with commit 626f01f4d26e8cf92e69c1df53036153c8e98a20 Issue introduced in 6.14 with commit ac91052f0ae5be9e46211ba92cc31c0e3b0a933a and fixed in 6.15-rc2 with commit dd941507a9486252d6fcf11814387666792020f3 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-37845 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/trace_fprobe.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/868df4eb784c3ccc7e4340a9ea993cbbedca167e https://git.kernel.org/stable/c/a27d2de2472b1cc7d582ab405d1d5832a80481de https://git.kernel.org/stable/c/626f01f4d26e8cf92e69c1df53036153c8e98a20 https://git.kernel.org/stable/c/dd941507a9486252d6fcf11814387666792020f3