Skip to content
Heist/ feed
High

tracing: Take trace_array reference when opening options file

Type: advisorySource: Official CVE List1 source record

In the Linux kernel, the following vulnerability has been resolved: tracing: Take trace_array reference when opening options file The options files do not take the trace_array reference for the options they represent. This could cause a use-after-free kernel crash if one of these files is opened by one task and another task removes the instance that the option is for. Because it doesn't take a reference upon opening, it will not stop the removal which will free the options descriptor that is being used. As the options are somewhat dynamic in their creation at boot up, each file represents a flag in the trace_array. The trace_array has an array of indexes to represent each of these flags that is stored in the trace_flags_index array. The address of the index array element is used to pass to the inode->i_private pointer. Then that element is read which holds the index (which represents the flag) and then the index is used to calculate the trace_array descriptor from its trace_flags_index array. One issue is that the index element can not be referenced until the trace_array's reference is taken. To handle this, create a new helper function called: trace_array_options_get() that will iterate all the existing trace_arrays in the ftrace_trace_arrays list (under the trace_types_lock), and compare the passed in address of the index element with the entire array of the trace_array's trace_flags_index array. If it matches, then up the corresponding trace_array's reference and return.

Announced Group revision 1
Original source ↗

CVE-2026-90013

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-90013

Linux

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Linux

Source reference: /containers/cna/affected/1/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "577b785f55168d5acb3d123ba41bfe8d7981e044",
        "lessThan": "8cc9c5a8c559d655c32d2190486e89574c14ff52",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "577b785f55168d5acb3d123ba41bfe8d7981e044",
        "lessThan": "97ceaffbd672449ad7ead5ae8788dce16374b0c1",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "577b785f55168d5acb3d123ba41bfe8d7981e044",
        "lessThan": "d0f37d77b9b4b241e0b30ef2562f6353cbda3bec",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "577b785f55168d5acb3d123ba41bfe8d7981e044",
        "lessThan": "64a41f4a9a968f54f3792399aa4d2a9fdb23b0a5",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "577b785f55168d5acb3d123ba41bfe8d7981e044",
        "lessThan": "f2951ebd15c36a1ea4820a7f0cbb0b5f1c028b73",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "kernel/trace/trace.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "2.6.30"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "2.6.30",
        "versionType": "semver"
      },
      {
        "status": "unaffected",
        "version": "6.6.160",
        "versionType": "semver",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.12.112",
        "versionType": "semver",
        "lessThanOrEqual": "6.12.*"
      },
      {
        "status": "unaffected",
        "version": "6.18.52",
        "versionType": "semver",
        "lessThanOrEqual": "6.18.*"
      },
      {
        "status": "unaffected",
        "version": "7.2.5",
        "versionType": "semver",
        "lessThanOrEqual": "7.2.*"
      },
      {
        "status": "unaffected",
        "version": "7.3",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "kernel/trace/trace.c"
    ],
    "defaultStatus": "affected"
  }
]
Related CVEs
CVE-2026-90013

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#48579 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement