# CVE-2026-89746: tracing: Fix use-after-free with same-name named triggers

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.17% (percentile 4, 2026-11-26)
- **Published:** 2026-09-11T19:46:51.529Z
- **Modified:** 2026-10-19T09:18:17.510Z

## Who should check

- Anyone running Linux \>= 5ae1b18f05ee2b849dc03b6c15d7da0c1c6efa77, \< 441aa6742dff70297b5f64533a07a6189a026e91; \>= 43b254d46c740bf9dbe65709afa021dd726dfa99, \< 3a8534664426c071c2dfb5b4ffa36b18a2abfd79; \>= 435d2964af815aae456db554c62963b4515f19d0, \< 477d762be4b0ffaf01429ccd88859e93b0ec28cc; \>= 6f86bdeab633a56d5c6dccf1a2c5989b6a5e323e, \< b1a49c22de01faf176d44e5caa765e237353a579; \>= 6f86bdeab633a56d5c6dccf1a2c5989b6a5e323e, \< 83d1ae0406d8eade219a81b401e201702dd9dc55; \>= 6f86bdeab633a56d5c6dccf1a2c5989b6a5e323e, \< a7318172aa332a161fb9618286e64454c827f8fd; f1ae50cfb818ce1ac7a674406dfadb7653e2552d; \>= 6.1.130, \< 6.1.188; \>= 6.6.81, \< 6.6.157; \>= 6.12.18, \< 6.12.109; …
- Anyone running Linux 6.14

## Description

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

tracing: Fix use-after-free with same-name named triggers

When two hist triggers on different events are registered with the same
name=, the second one reuses the first as named\_data.  Both are added to
tr-\>hist\_vars by save\_hist\_vars() during event\_hist\_trigger\_parse(),
because save\_hist\_vars() is called before event\_trigger\_register() while
the named reuse is only detected later, in hist\_register\_trigger().

In the named-data branch hist\_register\_trigger() then frees the second
histogram's hist\_data via destroy\_hist\_data(), but never removes its
tr-\>hist\_vars list entry, leaving a dangling pointer and leaking the
trace\_array reference it holds.

A later hist trigger that references a variable makes find\_var\_file()
walk tr-\>hist\_vars and dereference the freed hist\_data.  The bug is
reproducible from userspace by writing three hist triggers to tracefs:

  cd /sys/kernel/tracing
  echo 'hist:keys=common\_pid:x=common\_pid:name=mh' \> events/sched/sched\_switch/trigger
  echo 'hist:keys=common\_pid:x=common\_pid:name=mh' \> events/sched/sched\_process\_fork/trigger
  echo 'hist:keys=common\_pid:vals=$x' \> events/sched/sched\_process\_exit/trigger

The third write panics the kernel:

  BUG: KASAN: slab-use-after-free in find\_var\_file.part.0+0x272/0x290
  Read of size 8 at addr ffff888001f8a0e0 by task sh/1
  CPU: 1 UID: 0 PID: 1 Comm: sh Tainted: G      D          N
  Call Trace:
    find\_var\_file.part.0
    find\_event\_var
    parse\_atom
    parse\_expr
    \_\_create\_val\_field
    event\_hist\_trigger\_parse
    trigger\_process\_regex
    event\_trigger\_write
    vfs\_write
    ksys\_write
    do\_syscall\_64
    entry\_SYSCALL\_64\_after\_hwframe
  Allocated by task 1:
    event\_hist\_trigger\_parse
  Freed by task 1:
    hist\_register\_trigger+0x618/0xa30
    event\_hist\_trigger\_parse
  The buggy address belongs to freed 2048-byte region
  Oops: general protection fault ... RIP: find\_var\_file.part.0
  Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

Fix by removing the hist\_data from tr-\>hist\_vars and releasing the
trace\_array reference in the named-data branch of hist\_register\_trigger()
before freeing the hist\_data.

## Affected and fixed versions

- Linux: \>= 5ae1b18f05ee2b849dc03b6c15d7da0c1c6efa77, \< 441aa6742dff70297b5f64533a07a6189a026e91; \>= 43b254d46c740bf9dbe65709afa021dd726dfa99, \< 3a8534664426c071c2dfb5b4ffa36b18a2abfd79; \>= 435d2964af815aae456db554c62963b4515f19d0, \< 477d762be4b0ffaf01429ccd88859e93b0ec28cc; \>= 6f86bdeab633a56d5c6dccf1a2c5989b6a5e323e, \< b1a49c22de01faf176d44e5caa765e237353a579; \>= 6f86bdeab633a56d5c6dccf1a2c5989b6a5e323e, \< 83d1ae0406d8eade219a81b401e201702dd9dc55; \>= 6f86bdeab633a56d5c6dccf1a2c5989b6a5e323e, \< a7318172aa332a161fb9618286e64454c827f8fd; f1ae50cfb818ce1ac7a674406dfadb7653e2552d; \>= 6.1.130, \< 6.1.188; \>= 6.6.81, \< 6.6.157; \>= 6.12.18, \< 6.12.109; … (cvelist)
- Linux: 6.14 (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-89746. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89746.md
Affected: Linux >= 5ae1b18f05ee2b849dc03b6c15d7da0c1c6efa77, < 441aa6742dff70297b5f64533a07a6189a026e91; >= 43b254d46c740bf9dbe65709afa021dd726dfa99, < 3a8534664426c071c2dfb5b4ffa36b18a2abfd79; >= 435d2964af815aae456db554c62963b4515f19d0, < 477d762be4b0ffaf01429ccd88859e93b0ec28cc; >= 6f86bdeab633a56d5c6dccf…
Fixed in: Linux 441aa6742dff70297b5f64533a07a6189a026e91, Linux 3a8534664426c071c2dfb5b4ffa36b18a2abfd79, Linux 477d762be4b0ffaf01429ccd88859e93b0ec28cc, Linux 83d1ae0406d8eade219a81b401e201702dd9dc55, Linux 6.1.188, Linux 6.6.157, Linux 6.12.109

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 5ae1b18f05ee2b849dc03b6c15d7da0c1c6efa77, \< 441aa6742dff70297b5f64533a07a6189a026e91; \>= 43b254d46c740bf9dbe65709afa021dd726dfa99, \< 3a8534664426c071c2dfb5b4ffa36b18a2abfd79; \>= 435d2964af815aae456db554c62963b4515f19d0, \< 477d762be4b0ffaf01429ccd88859e93b0ec28cc; \>= 6f86bdeab633a56d5c6dccf1a2c5989b6a5e323e, \< b1a49c22de01faf176d44e5caa765e237353a579; \>= 6f86bdeab633a56d5c6dccf1a2c5989b6a5e323e, \< 83d1ae0406d8eade219a81b401e201702dd9dc55; \>= 6f86bdeab633a56d5c6dccf1a2c5989b6a5e323e, \< a7318172aa332a161fb9618286e64454c827f8fd; f1ae50cfb818ce1ac7a674406dfadb7653e2552d; \>= 6.1.130, \< 6.1.188; \>= 6.6.81, \< 6.6.157; \>= 6.12.18, \< 6.12.109; …; Linux 6.14.

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

Yes. Fixed in Linux 441aa6742dff70297b5f64533a07a6189a026e91, Linux 3a8534664426c071c2dfb5b4ffa36b18a2abfd79, Linux 477d762be4b0ffaf01429ccd88859e93b0ec28cc, Linux 83d1ae0406d8eade219a81b401e201702dd9dc55, Linux 6.1.188, Linux 6.6.157, Linux 6.12.109. No fix listed yet: follow the vendor advisory.

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

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/441aa6742dff70297b5f64533a07a6189a026e91>
- other: <https://git.kernel.org/stable/c/3a8534664426c071c2dfb5b4ffa36b18a2abfd79>
- other: <https://git.kernel.org/stable/c/477d762be4b0ffaf01429ccd88859e93b0ec28cc>
- other: <https://git.kernel.org/stable/c/b1a49c22de01faf176d44e5caa765e237353a579>
- other: <https://git.kernel.org/stable/c/83d1ae0406d8eade219a81b401e201702dd9dc55>
- other: <https://git.kernel.org/stable/c/a7318172aa332a161fb9618286e64454c827f8fd>

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

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