# CVE-2026-99141: tracing: Fix crash in print\_graph\_function\_event()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **Published:** 2026-10-28T10:34:52.091Z
- **Modified:** 2026-10-28T11:17:34.093Z

## Who should check

- Anyone running Linux \>= e29aa918a928408c3e64b0d1025e4eb9f6fc549e, \< b1547c6ba93b8863010aa324cd20c441f886f23e; \>= e29aa918a928408c3e64b0d1025e4eb9f6fc549e, \< 3cc117514d69067a94d6c7479730dce41e678f50
- Anyone running Linux 6.19

## Description

In the Linux kernel, the following vulnerability has been resolved:

tracing: Fix crash in print\_graph\_function\_event()

tracing\_set\_tracer() assigns the flags of the newly selected tracer
with:

	tr-\>current\_trace\_flags = t-\>flags ? : t-\>tracer-\>flags;

If the new tracer defines neither static flags nor default flags, like
hwlat, irqsoff or wakeup, add\_tracer() has no per instance flags copy
for it, and both operands are NULL, so tr-\>current\_trace\_flags ends up
being NULL as well.

The ring buffer is not cleared when switching tracers: it is reset
inside tracer\_init(), after current\_trace\_flags was already assigned.
If the buffer still holds function\_graph entries of the previous
tracer, printing one of them dereferences the NULL pointer. This was
hit by cat trace during an ftrace stress test:

  BUG: kernel NULL pointer dereference, address: 0000000000000000
  \#PF: supervisor read access in kernel mode
  RIP: 0010:print\_graph\_function\_event+0xe/0x20
  Call Trace:
   s\_show+0x4d/0x110
   seq\_read\_iter+0x2d4/0x490
   seq\_read+0x130/0x170
   vfs\_read+0xb5/0x370
   ksys\_read+0x6d/0xe0
   do\_syscall\_64+0xbc/0x450

The snapshot buffer is not reset at all, so this can be reproduced
without a race:

  echo function\_graph \> /sys/kernel/tracing/current\_tracer
  echo 1 \> /sys/kernel/tracing/snapshot
  echo hwlat \> /sys/kernel/tracing/current\_tracer
  cat /sys/kernel/tracing/snapshot

Rather than teaching every user of tr-\>current\_trace\_flags about this
corner case, make sure it is never NULL: when the newly selected
tracer has no flags at all, tracing\_set\_tracer() falls back to a
static empty no\_tracer\_flags. run\_tracer\_selftest() can hit the same
case, so the same fallback is added there too. The existing users
already handle opts == NULL, so these tracers keep behaving as before.

## Affected and fixed versions

- Linux: \>= e29aa918a928408c3e64b0d1025e4eb9f6fc549e, \< b1547c6ba93b8863010aa324cd20c441f886f23e; \>= e29aa918a928408c3e64b0d1025e4eb9f6fc549e, \< 3cc117514d69067a94d6c7479730dce41e678f50 (cvelist)
- Linux: 6.19 (cvelist)

## Mitigation

- Upgrade Linux to 3cc117514d69067a94d6c7479730dce41e678f50 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-99141.md
Affected: Linux >= e29aa918a928408c3e64b0d1025e4eb9f6fc549e, < b1547c6ba93b8863010aa324cd20c441f886f23e; >= e29aa918a928408c3e64b0d1025e4eb9f6fc549e, < 3cc117514d69067a94d6c7479730dce41e678f50; Linux 6.19
Fixed in: Linux 3cc117514d69067a94d6c7479730dce41e678f50

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-99141 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= e29aa918a928408c3e64b0d1025e4eb9f6fc549e, \< b1547c6ba93b8863010aa324cd20c441f886f23e; \>= e29aa918a928408c3e64b0d1025e4eb9f6fc549e, \< 3cc117514d69067a94d6c7479730dce41e678f50; Linux 6.19.

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

Yes. Fixed in Linux 3cc117514d69067a94d6c7479730dce41e678f50. Upgrade Linux to 3cc117514d69067a94d6c7479730dce41e678f50 or later.

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

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

- other: <https://git.kernel.org/stable/c/b1547c6ba93b8863010aa324cd20c441f886f23e>
- other: <https://git.kernel.org/stable/c/3cc117514d69067a94d6c7479730dce41e678f50>

## 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-99141>

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