CVE-2026-64451·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: tracing: Fix NULL pointer dereference in func_set_flag() func_set_flag() dereferences tr->current_trace_flags before verifying that the current tracer is actually the function tracer. When the active tracer has been switched away from "function" (e.g., to "wakeup_rt"), tr->current_trace_flags can be NULL, leading to a NULL pointer dereference and kernel crash. The call chain that triggers this is: trace_options_write() -> __set_tracer_option() -> trace->set_flag() /* func_set_flag */ In func_set_flag(), the first operation is: if (!!set == !!(tr->current_trace_flags->val & bit)) This dereferences tr->current_trace_flags unconditionally. The safety check that guards against a non-function tracer: if (tr->current_trace != &function_trace) return 0; is placed *after* the dereference, which is too late. This was observed with the following crash dump: BUG: unable to handle page fault at 0000000000000000 RIP: func_set_flag+0xd Call Trace: __set_tracer_option+0x27 trace_options_write+0x75 vfs_write+0x12a ksys_write+0x66 do_syscall_64+0x5b RIP: ffffffff914c973d RSP: ff67ec88b01dfdf0 RFLAGS: 00010202 RAX: 0000000000000000 RBX: ff3a826e80354580 RCX: 0000000000000001 RDX: 0000000000000001 RSI: 0000000000000000 RDI: ffffffff93918080 The disassembly confirms the fault: func_set_flag+0: mov 0x1f08(%rdi), %rax ; RAX = tr->current_trace_flags = NULL func_set_flag+13: mov (%rax), %eax ; page fault: dereference NULL At the time of the crash: tr->current_trace_flags = 0x0 (NULL) tr->current_trace = wakeup_rt_tracer (not function_trace) The scenario is that a process opens a function tracer option file (such as "func_stack_trace"), then the current tracer is switched to another tracer (e.g., "wakeup_rt"), which sets current_trace_flags to NULL. When the process subsequently writes to the option file, func_set_flag() is invoked and crashes on the NULL dereference. Fix this by moving the current_trace check before the current_trace_flags dereference, so that func_set_flag() returns early when the function tracer is not active.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 7.1.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.14% — higher than 4% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
From: 6.19
Until: 7.1.4
Fixed in: 7.1.4
How to fix this CVE
Update your Linux kernel to version 7.1.4 or later to resolve this NULL pointer dereference in the function tracer configuration handler. This vulnerability allows a local attacker with low privileges to crash the kernel by manipulating tracer options after switching the active tracer away from the function tracer. Systems running kernel versions 6.19 through 7.1.3 should prioritize this update.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to check your current kernel version; if it is between 6.19 and 7.1.3, your system is vulnerable
- Check if function tracer is enabled by examining `/sys/kernel/tracing/tracer` or `/sys/kernel/debug/tracing/tracer`
- Review dmesg logs for NULL pointer dereference errors mentioning func_set_flag by running `dmesg | grep -i 'func_set_flag\|null pointer'`
- After patching, verify the fix by running `uname -r` and confirming kernel version is 7.1.4 or later, then test tracer switching with `echo wakeup_rt > /sys/kernel/debug/tracing/tracer && echo nop > /sys/kernel/debug/tracing/tracer` without observing crashes
FAQ
What is CVE-2026-64451?
This is a kernel vulnerability where the function tracer configuration handler attempts to access tracer flags without first verifying that the function tracer is still active, causing a NULL pointer dereference and kernel crash when a user modifies tracer options after switching to a different tracer.
Is CVE-2026-64451 being actively exploited?
No, this vulnerability is not currently being actively exploited in the wild according to CISA's Known Exploited Vulnerabilities catalog, and no public exploits are available.
What versions of Kernel are affected by CVE-2026-64451?
Linux kernel versions 6.19 through 7.1.3 are vulnerable; version 7.1.4 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-64451?
Run `uname -r` and compare the output against the affected range 6.19-7.1.3; if your version falls within this range, your system is vulnerable and requires a kernel update.
Does Defensia detect CVE-2026-64451?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-64451 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-64451. Free for 1 server.
Get started free