<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://cve.radiocsirt.org</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Fri, 09 Oct 2026 10:39:13 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-22035 — tracing: Fix use-after-free in print_graph_function_flags during tracer switching</title>
      <link>https://cve.radiocsirt.org/vuln/cve-2025-22035</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;tracing: Fix use-after-free in print_graph_function_flags during tracer switching&lt;/p&gt;
&lt;p&gt;Kairui reported a UAF issue in print_graph_function_flags() during
ftrace stress testing [1]. This issue can be reproduced if puting a
&amp;#39;mdelay(10)&amp;#39; after &amp;#39;mutex_unlock(&amp;amp;trace_types_lock)&amp;#39; in s_start(),
and executing the following script:&lt;/p&gt;
&lt;p&gt;$ echo function_graph &amp;gt; current_tracer
  $ cat trace &amp;gt; /dev/null &amp;amp;
  $ sleep 5  # Ensure the &amp;#39;cat&amp;#39; reaches the &amp;#39;mdelay(10)&amp;#39; point
  $ echo timerlat &amp;gt; current_tracer&lt;/p&gt;
&lt;p&gt;The root cause lies in the two calls to print_graph_function_flags
within print_trace_line during each s_show():&lt;/p&gt;
&lt;p&gt;* One through &amp;#39;iter-&amp;gt;trace-&amp;gt;print_line()&amp;#39;;
  * Another through &amp;#39;event-&amp;gt;funcs-&amp;gt;trace()&amp;#39;, which is hidden in
    print_trace_fmt() before print_trace_line returns.&lt;/p&gt;
&lt;p&gt;Tracer switching only updates the former, while the latter continues
to use the print_line function of the old tracer, which in the script
above is print_graph_function_flags.&lt;/p&gt;
&lt;p&gt;Moreover, when switching from the &amp;#39;function_graph&amp;#39; tracer to the
&amp;#39;timerlat&amp;#39; tracer, s_start only calls graph_trace_close of the
&amp;#39;function_graph&amp;#39; tracer to free &amp;#39;iter-&amp;gt;private&amp;#39;, but does not set
it to NULL. This provides an opportunity for &amp;#39;event-&amp;gt;funcs-&amp;gt;trace()&amp;#39;
to use an invalid &amp;#39;iter-&amp;gt;private&amp;#39;.&lt;/p&gt;
&lt;p&gt;To fix this issue, set &amp;#39;iter-&amp;gt;private&amp;#39; to NULL immediately after
freeing it in graph_trace_close(), ensuring that an invalid pointer
is not passed to other tracers. Additionally, clean…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;tracing: Fix use-after-free in print_graph_function_flags during tracer switching&lt;/p&gt;
&lt;p&gt;Kairui reported a UAF issue in print_graph_function_flags() during
ftrace stress testing [1]. This issue can be reproduced if puting a
&amp;#39;mdelay(10)&amp;#39; after &amp;#39;mutex_unlock(&amp;amp;trace_types_lock)&amp;#39; in s_start(),
and executing the following script:&lt;/p&gt;
&lt;p&gt;$ echo function_graph &amp;gt; current_tracer
  $ cat trace &amp;gt; /dev/null &amp;amp;
  $ sleep 5  # Ensure the &amp;#39;cat&amp;#39; reaches the &amp;#39;mdelay(10)&amp;#39; point
  $ echo timerlat &amp;gt; current_tracer&lt;/p&gt;
&lt;p&gt;The root cause lies in the two calls to print_graph_function_flags
within print_trace_line during each s_show():&lt;/p&gt;
&lt;p&gt;* One through &amp;#39;iter-&amp;gt;trace-&amp;gt;print_line()&amp;#39;;
  * Another through &amp;#39;event-&amp;gt;funcs-&amp;gt;trace()&amp;#39;, which is hidden in
    print_trace_fmt() before print_trace_line returns.&lt;/p&gt;
&lt;p&gt;Tracer switching only updates the former, while the latter continues
to use the print_line function of the old tracer, which in the script
above is print_graph_function_flags.&lt;/p&gt;
&lt;p&gt;Moreover, when switching from the &amp;#39;function_graph&amp;#39; tracer to the
&amp;#39;timerlat&amp;#39; tracer, s_start only calls graph_trace_close of the
&amp;#39;function_graph&amp;#39; tracer to free &amp;#39;iter-&amp;gt;private&amp;#39;, but does not set
it to NULL. This provides an opportunity for &amp;#39;event-&amp;gt;funcs-&amp;gt;trace()&amp;#39;
to use an invalid &amp;#39;iter-&amp;gt;private&amp;#39;.&lt;/p&gt;
&lt;p&gt;To fix this issue, set &amp;#39;iter-&amp;gt;private&amp;#39; to NULL immediately after
freeing it in graph_trace_close(), ensuring that an invalid pointer
is not passed to other tracers. Additionally, clean…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://cve.radiocsirt.org/vuln/cve-2025-22035</guid>
    </item>
  </channel>
</rss>
