Skip to content
Heist/ feed
Back to feed
UnratedFix available

ftrace: Add global mutex to serialize trace_parser access

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: ftrace: Add global mutex to serialize trace_parser access In ftrace, the trace_parser structure is allocated and initialized when a trace file is opened, and is subsequently used across write and release handlers to parse user input. The affected handler paths and their specific functions are: - Open paths: ftrace_regex_open(), ftrace_graph_open() - Write paths: ftrace_regex_write(), ftrace_graph_write() - Release paths: ftrace_regex_release(), ftrace_graph_release() If userspace opens a trace file descriptor and shares it across multiple threads, concurrent write calls will race on the parser's internal state, specifically the 'idx', 'cont', and 'buffer' fields, leading to corrupted input or undefined behavior. Fix this by adding a global mutex, parser_lock, to serialize all access to trace_parser across write and release paths, preventing concurrent corruption of parser state.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.266, 5.15.217, 6.1.183, 6.12.101, 6.18.42, 6.6.148, 7.1.6
CVEs
CVE-2026-68146
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 02:24 UTC · Revision 1

Source evidence

ftrace: Add global mutex to serialize trace_parser access

core-osv · Original source

Published 10 Aug 2026, 11:59 UTC

In the Linux kernel, the following vulnerability has been resolved: ftrace: Add global mutex to serialize trace_parser access In ftrace, the trace_parser structure is allocated and initialized when a trace file is opened, and is subsequently used across write and release handlers to parse user input. The affected handler paths and their specific functions are: - Open paths: ftrace_regex_open(), ftrace_graph_open() - Write paths: ftrace_regex_write(), ftrace_graph_write() - Release paths: ftrace_regex_release(), ftrace_graph_release() If userspace opens a trace file descriptor and shares it across multiple threads, concurrent write calls will race on the parser's internal state, specifically the 'idx', 'cont', and 'buffer' fields, leading to corrupted input or undefined behavior. Fix this by adding a global mutex, parser_lock, to serialize all access to trace_parser across write and release paths, preventing concurrent corruption of parser state.

osv:CVE-2026-68146

Kernel

Fixed versions: 5.10.266, 5.15.217, 6.1.183, 6.6.148, 6.12.101, 6.18.42, 7.1.6

Complete source record
{
  "id": "3ff097aeada79bb2af0f547ab0a64e9e91d4e482df19ec2bdd94f0d93ba6a178",
  "url": "https://osv.dev/vulnerability/CVE-2026-68146",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ftrace: Add global mutex to serialize trace_parser access",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: ftrace: Add global mutex to serialize trace_parser access In ftrace, the trace_parser structure is allocated and initialized when a trace file is opened, and is subsequently used across write and release handlers to parse user input. The affected handler paths and their specific functions are: - Open paths: ftrace_regex_open(), ftrace_graph_open() - Write paths: ftrace_regex_write(), ftrace_graph_write() - Release paths: ftrace_regex_release(), ftrace_graph_release() If userspace opens a trace file descriptor and shares it across multiple threads, concurrent write calls will race on the parser's internal state, specifically the 'idx', 'cont', and 'buffer' fields, leading to corrupted input or undefined behavior. Fix this by adding a global mutex, parser_lock, to serialize all access to trace_parser across write and release paths, preventing concurrent corruption of parser state.",
    "evidence": "osv:CVE-2026-68146",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.266",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.217",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.183",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.148",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.101",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.42",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.1.6",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-68146",
      "aliases": [
        "CVE-2026-68146"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "689fd8b65d669b96d612ccc37d6fb87bf7ed6907"
                },
                {
                  "fixed": "a29bc20ea5f0cb79c6287f2c6182c5eeb8e6c01f"
                },
                {
                  "fixed": "db76744d588086695371ecdd982694395628ba48"
                },
                {
                  "fixed": "1474fe4453505b6be720b5bb94be1c927de3314a"
                },
                {
                  "fixed": "3d0dd138a06c782f8b755cd1b6f9909494514ce1"
                },
                {
                  "fixed": "90be137813e1a5bdfd671e40fe28004fb959d3e4"
                },
                {
                  "fixed": "65bf73bee1a4f3722208ae46afc0fa5de76b9a0a"
                },
                {
                  "fixed": "e807c9193d9493c7a0d039158ebb955050a76df1"
                },
                {
                  "fixed": "7720b63bcef3f54c7fe288774b720a227d54a306"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68146.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.32"
                },
                {
                  "fixed": "5.10.266"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.217"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.183"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.148"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.101"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.42"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.1.6"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68146.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.380522672Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1474fe4453505b6be720b5bb94be1c927de3314a",
        "https://git.kernel.org/stable/c/3d0dd138a06c782f8b755cd1b6f9909494514ce1",
        "https://git.kernel.org/stable/c/65bf73bee1a4f3722208ae46afc0fa5de76b9a0a",
        "https://git.kernel.org/stable/c/7720b63bcef3f54c7fe288774b720a227d54a306",
        "https://git.kernel.org/stable/c/90be137813e1a5bdfd671e40fe28004fb959d3e4",
        "https://git.kernel.org/stable/c/a29bc20ea5f0cb79c6287f2c6182c5eeb8e6c01f",
        "https://git.kernel.org/stable/c/db76744d588086695371ecdd982694395628ba48",
        "https://git.kernel.org/stable/c/e807c9193d9493c7a0d039158ebb955050a76df1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68146.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-68146",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68146.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-68146",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 499637,
  "published_at": "2026-08-10T11:59:11.273+00:00"
}