CVE-2026-68146 PUBLISHED

ftrace: Add global mutex to serialize trace_parser access

Assigner: Linux
Reserved: 30.07.2026 Published: 10.08.2026 Updated: 10.08.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 689fd8b65d669b96d612ccc37d6fb87bf7ed6907 to 3d0dd138a06c782f8b755cd1b6f9909494514ce1 (excl.)
  • affected from 689fd8b65d669b96d612ccc37d6fb87bf7ed6907 to 90be137813e1a5bdfd671e40fe28004fb959d3e4 (excl.)
  • affected from 689fd8b65d669b96d612ccc37d6fb87bf7ed6907 to 65bf73bee1a4f3722208ae46afc0fa5de76b9a0a (excl.)
  • affected from 689fd8b65d669b96d612ccc37d6fb87bf7ed6907 to e807c9193d9493c7a0d039158ebb955050a76df1 (excl.)
  • affected from 689fd8b65d669b96d612ccc37d6fb87bf7ed6907 to 7720b63bcef3f54c7fe288774b720a227d54a306 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 2.6.32 is affected
  • unaffected from 0 to 2.6.32 (excl.)
  • unaffected from 6.6.148 to 6.6.* (incl.)
  • unaffected from 6.12.101 to 6.12.* (incl.)
  • unaffected from 6.18.42 to 6.18.* (incl.)
  • unaffected from 7.1.6 to 7.1.* (incl.)
  • unaffected from 7.2-rc5 to * (incl.)

References