# CVE-2026-97933: tracing: Take trace_array reference when opening a tracer options file

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 7% of CVEs (2026-11-30)
- Published: 2026-09-25T10:22:48.591Z
- Modified: 2026-11-23T08:17:22.707Z
- Assigned by: Linux

## Description

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

tracing: Take trace_array reference when opening a tracer options file

When a tracer option file is opened, it is passed a descriptor that points
to an element on the trace_array's topts array. This element has
information to find the trace array and other information. It uses this
element to take a reference of the trace_array so that the trace_array
does not get removed while this file is opened.

Unfortunately, there's a race condition where the element itself could be
freed by the removal of the instance the trace_array represents causing a
use-after-free as this element that is used to find the trace_array to
increment its reference counter is also freed when the instance is
removed.

To solve this, add a trace_array_tracer_options_get() helper function that
will take the address of the element that is passed to the open function
by the inode->i_private pointer and search all the trace_arrays under a
lock to find the one that the element's address is in the range of the
trace_arrays topts array elements. When a match happens, that trace_array's
reference would be increased.

Note, there's a race where if an admin was deleting and creating trace
instances at the same time and the memory of the old trace_array's array
matched the memory of the new trace_array that it could in theory open the
option from the wrong trace array. But we do not care because it would be
stupid to perform that kind of action. As long as the only thing that can
happen is that the option from the wrong trace array is used and doesn't
crash the kernel it will only make the user confused. But if they are
doing something stupid like this, they are already confused, so no harm
done.

(As written by CVE List.)

## Affected

- Linux Linux: from 2617afde0c3db285778734b0ccad9a55b4f9cda2 before 6dc46930000f28e593c2d3e99dae7a57eb0f1e0a; from 7e2cfbd2d3c86afcd5c26b5c4b1dd251f63c5838 before 61894ea0d2a1ae8ce903abf73bd56958c035f182; from 7e2cfbd2d3c86afcd5c26b5c4b1dd251f63c5838 before b2890064a12efbeb3b3c093e69e9010dd244c881; from 7e2cfbd2d3c86afcd5c26b5c4b1dd251f63c5838 before d9232a90c6f7de822177d35d73d9234cba523ef9; from 7e2cfbd2d3c86afcd5c26b5c4b1dd251f63c5838 before b2fb87d29ffb3a7a9ccc5acf12898ecb80587427; from 7e2cfbd2d3c86afcd5c26b5c4b1dd251f63c5838 before ed0aff60f83a9bdc2f6556376ac79c96b3ce7e80; 952e477f908048145a5eb2ed3d431d9efc1e1073; b3183f5f05cd867f5c17122773ca5aa8d07b51af; bf38c1d29f8bfe9631b62a67f8dd1b8f7efb7139; 586787a0331aa2d7d244e9c4400d2a73295b0cf0; from 6.1.55 before 6.1.193; from 5.4.257 before 5.5; and 4 more (not affected: before 6.6; from 6.1.193 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.112 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.2.7 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/6dc46930000f28e593c2d3e99dae7a57eb0f1e0a>
- <https://git.kernel.org/stable/c/61894ea0d2a1ae8ce903abf73bd56958c035f182>
- <https://git.kernel.org/stable/c/b2890064a12efbeb3b3c093e69e9010dd244c881>
- <https://git.kernel.org/stable/c/d9232a90c6f7de822177d35d73d9234cba523ef9>
- <https://git.kernel.org/stable/c/b2fb87d29ffb3a7a9ccc5acf12898ecb80587427>
- <https://git.kernel.org/stable/c/ed0aff60f83a9bdc2f6556376ac79c96b3ce7e80>

## Sources

- CVE List: [CVE-2026-97933](https://www.cve.org/CVERecord?id=CVE-2026-97933), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-97933](https://nvd.nist.gov/vuln/detail/CVE-2026-97933), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-97933 · Whole record: https://cve.day/CVE-2026-97933.json · Rebuilt by cve.day 2026-11-25T22:59:40.993Z
