# CVE-2026-64451: tracing: Fix NULL pointer dereference in func\_set\_flag()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.14% (percentile 2, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-07-25T08:51:21.020Z
- **Modified:** 2026-09-03T15:29:27.130Z

## Who should check

- Anyone running Linux \>= 76680d0d2825900f23bf35290ab2b80bdf3a8e4a, \< 69f17ac132a38974cf1defb480cef6b79d1ab768; \>= 76680d0d2825900f23bf35290ab2b80bdf3a8e4a, \< c3e94604675e3db186111b8942650d86577df9b0
- Anyone running Linux 6.19

## Description

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.

## Affected and fixed versions

- Linux: \>= 76680d0d2825900f23bf35290ab2b80bdf3a8e4a, \< 69f17ac132a38974cf1defb480cef6b79d1ab768; \>= 76680d0d2825900f23bf35290ab2b80bdf3a8e4a, \< c3e94604675e3db186111b8942650d86577df9b0 (cvelist)
- Linux: 6.19 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-64451. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-64451.md
Affected: Linux >= 76680d0d2825900f23bf35290ab2b80bdf3a8e4a, < 69f17ac132a38974cf1defb480cef6b79d1ab768; >= 76680d0d2825900f23bf35290ab2b80bdf3a8e4a, < c3e94604675e3db186111b8942650d86577df9b0; Linux 6.19
Fixed in: Linux 69f17ac132a38974cf1defb480cef6b79d1ab768

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-64451 being exploited?

There is no confirmed exploitation: CVE-2026-64451 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.14% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-64451?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-64451?

Linux \>= 76680d0d2825900f23bf35290ab2b80bdf3a8e4a, \< 69f17ac132a38974cf1defb480cef6b79d1ab768; \>= 76680d0d2825900f23bf35290ab2b80bdf3a8e4a, \< c3e94604675e3db186111b8942650d86577df9b0; Linux 6.19.

### Is there a fix for CVE-2026-64451?

Yes. Fixed in Linux 69f17ac132a38974cf1defb480cef6b79d1ab768. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-64451?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/69f17ac132a38974cf1defb480cef6b79d1ab768>
- patch: <https://git.kernel.org/stable/c/c3e94604675e3db186111b8942650d86577df9b0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-64451>

HTML: <https://flawdb.com/CVE-2026-64451> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-64451>
