Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97443 Overview
CVE-2026-97443 is a Linux kernel vulnerability in the perf/ftrace subsystem. The flaw occurs when perf_ftrace_function_unregister() unconditionally calls unregister_ftrace_function() without verifying that the ftrace_ops structure was ever successfully registered. This triggers a WARN_ON inside __unregister_ftrace_function() when the ops does not have the FTRACE_OPS_FL_ENABLED flag set. The condition is reachable through perf_event_alloc() error cleanup paths that invoke perf_trace_destroy() on events whose ftrace registration failed or was already torn down.
Critical Impact
The issue produces kernel warnings and taints the kernel log during perf event teardown, degrading observability and potentially disrupting kernel self-tests, panic-on-warn deployments, and tracing workflows.
Affected Products
- Linux kernel (upstream perf/ftrace subsystem)
- Stable kernel branches referenced by commits 7f845820, 95811233, and df097713
- Downstream distributions shipping affected kernel versions
Discovery Timeline
- 2026-09-24 - CVE-2026-97443 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97443
Vulnerability Analysis
The defect lives in the perf-to-ftrace integration layer of the Linux kernel. When a perf_event is torn down, __free_event() invokes the event's destructor, which for tracepoint-backed events calls perf_trace_destroy() and ultimately perf_ftrace_function_unregister(). The unregister path assumes a prior successful registration and immediately calls unregister_ftrace_function().
If registration never succeeded, for example when perf_event_alloc() fails mid-way or when perf_try_init_event() takes its err_destroy branch, the ftrace_ops structure lacks the FTRACE_OPS_FL_ENABLED flag. __unregister_ftrace_function() detects this inconsistent state and emits a WARN_ON, which produces a stack trace and taints the kernel.
On systems configured with panic_on_warn, the warning escalates to a full kernel panic, converting a cleanup bug into a denial of service. The vulnerability is a kernel logic error [CWE-754: Improper Check for Unusual or Exceptional Conditions] rather than a memory corruption primitive.
Root Cause
The root cause is a missing precondition check. perf_ftrace_function_unregister() does not inspect ops->flags & FTRACE_OPS_FL_ENABLED before calling the unregister helper, so an event whose registration was never completed still drives a full teardown.
Attack Vector
Triggering the condition requires the ability to create perf events that bind to tracepoints, which typically needs CAP_PERFMON or CAP_SYS_ADMIN and non-zero perf_event_paranoid relaxation. A local user who can call perf_event_open() against a tracepoint and induce an allocation failure in the setup path can repeatedly produce the warning. There is no evidence of remote exploitation or code execution potential tied to this flaw. Refer to the upstream commits for the exact code paths and fix.
Detection Methods for CVE-2026-97443
Indicators of Compromise
- Kernel log entries containing WARNING originating from __unregister_ftrace_function with a call trace including perf_ftrace_function_unregister and perf_trace_destroy.
- Tainted: marker appearing in dmesg after perf event teardown activity.
- Unexpected panics on hosts configured with kernel.panic_on_warn=1 following tracepoint-based profiling.
Detection Strategies
- Parse dmesg and /var/log/kern.log for the signature __unregister_ftrace_function combined with FTRACE_OPS_FL_ENABLED references.
- Monitor perf_event_open() syscall activity from unprivileged or newly introduced workloads using auditd or eBPF-based telemetry.
- Correlate kernel taint events with the processes that most recently invoked tracepoint-backed perf events.
Monitoring Recommendations
- Ingest kernel ring buffer output into a centralized logging pipeline and alert on new WARN traces from the ftrace subsystem.
- Track changes to kernel.perf_event_paranoid and capability grants (CAP_PERFMON, CAP_SYS_ADMIN) across the fleet.
- Baseline normal tracepoint usage so anomalous perf activity from unexpected users is visible.
How to Mitigate CVE-2026-97443
Immediate Actions Required
- Inventory kernel versions across Linux hosts and identify systems running branches that have not yet picked up the fix commits.
- Apply the stable kernel updates containing commits 7f845820, 95811233, or df097713 through your distribution's update channel.
- Reboot affected hosts after patching so the corrected perf_ftrace_function_unregister() logic is loaded.
Patch Information
The upstream fix adds a check for FTRACE_OPS_FL_ENABLED inside perf_ftrace_function_unregister(). When the ops is not enabled, the function frees the filter and returns success instead of calling unregister_ftrace_function(). The fix is published in the following references: Kernel Git Commit 7f84582, Kernel Git Commit 95811233, and Kernel Git Commit df097713.
Workarounds
- Restrict access to perf_event_open() by setting kernel.perf_event_paranoid=3 on systems where tracepoint profiling is not required.
- Avoid enabling kernel.panic_on_warn on affected hosts until patches are deployed to prevent warning-induced panics.
- Limit CAP_PERFMON and CAP_SYS_ADMIN to trusted service accounts and audit containers that request these capabilities.
# Harden perf_event access and verify patched kernel is running
sudo sysctl -w kernel.perf_event_paranoid=3
echo 'kernel.perf_event_paranoid=3' | sudo tee /etc/sysctl.d/99-perf-hardening.conf
uname -r
dmesg | grep -i 'unregister_ftrace_function'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

