Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E15EA49C4AA for ; Thu, 24 Sep 2026 16:14:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266499; cv=none; b=jTJh8LfZd7dXa7gIwav7F67JlHv0fDXilwOWV6zWHQRBgBbaM+zfjZ8kiM1CVr3TVsQaHJ0KnAywAA5vEsXWtZknPusewcxrT/fufiaz88kXkcpDbw2rKUX6VRtvfn2rC6y3SkyLx/Dwdj9FXZoHJqpvpfJl0qigx2KksBTNQQA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266499; c=relaxed/simple; bh=q4g4Kgy27UH3VoBk4JR5w4yMNXGmL2I8Auaz1nt06cA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pVMum8+Pm5S0K/CA81X201uHJ8hEbNmCMb5D+vAjJcQxVpFnVYGUxeRzlx9uFuJvH0AQRAYFJ7paOWzd3NGm29zO/wOIUOLzQVH+UhsQnvra2YbOU8NMNhPrnBucCdkIuaXLd9eRqf6KT2zRvS2Y97sX/5pbUaq2vcHQemJMM8A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Aw05mWP9; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Aw05mWP9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 815631F000FF; Thu, 24 Sep 2026 16:14:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790266497; bh=XithWthWfgz03fSg1kMAJVlRnDaDB/xZlzWdTxiAmPk=; h=From:To:Cc:Subject:Date:Reply-To; b=Aw05mWP9jpkw7mw8HGesPlgspzvJOlOJBcMRj3ySpUjELZ3TUwR+T799x7ctNegsX tBpvtn+DiLyYG/TiNbUCVeA8PWoCe2LPQ9Yl4Lm5Nn9XCGICb7ccsectb4yfmDFRr4 X7Dzv7jb1kEor8C8Bn6a3bF1WJNKofW46rATCAHk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97443: perf/ftrace: Fix WARNING in __unregister_ftrace_function Date: Thu, 24 Sep 2026 18:03:43 +0200 Message-ID: <2026092432-CVE-2026-97443-9776@gregkh> X-Mailer: git-send-email 2.55.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=2878; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pvkDxTkeEJVB2naVJzYt3JFWFDCrnAx84I9VEsvQE3c=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPWdY8Z8rnynwaPkd25mTustPm7CKX+yNEwu8KMdaL RlgtedFRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkmhfD/Kp1Mrzry7ftuHvi ulLu7oc55S5vSxkWHArZbVCncvkkW8eFHpWAizEa+/9HAAA= 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: perf/ftrace: Fix WARNING in __unregister_ftrace_function perf_ftrace_function_unregister() unconditionally calls unregister_ftrace_function() without checking whether the ftrace_ops was ever successfully registered. This triggers a WARN_ON in __unregister_ftrace_function() when the ops doesn't have FTRACE_OPS_FL_ENABLED set. This can happen during perf_event_alloc() error cleanup when perf_trace_destroy() is called via __free_event() on an event whose ftrace_ops registration failed or was already torn down by perf_try_init_event()'s err_destroy path. The call path is: perf_event_alloc() error cleanup -> __free_event() -> event->destroy() [tp_perf_event_destroy] -> perf_trace_destroy() -> perf_trace_event_close() -> TRACE_REG_PERF_CLOSE -> perf_ftrace_function_unregister() -> unregister_ftrace_function() -> __unregister_ftrace_function() -> WARN_ON(!(ops->flags & FTRACE_OPS_FL_ENABLED)) Fix this by checking FTRACE_OPS_FL_ENABLED before attempting to unregister. If the ops is not enabled, just free the filter and return success. The Linux kernel CVE team has assigned CVE-2026-97443 to this issue. Affected and fixed versions =========================== Fixed in 6.12.111 with commit df097713b56ffac5eed32a9be2e7d27ac48d9087 Fixed in 6.18.53 with commit 7f845820afaad339341c2ae42bc7fdec175df9ea Fixed in 7.2 with commit 9581123304b23049437324038698af9fb56ee663 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-2026-97443 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_event_perf.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/df097713b56ffac5eed32a9be2e7d27ac48d9087 https://git.kernel.org/stable/c/7f845820afaad339341c2ae42bc7fdec175df9ea https://git.kernel.org/stable/c/9581123304b23049437324038698af9fb56ee663