<?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://db.gcve.eu</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>Thu, 29 Oct 2026 16:32:58 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-99141 — tracing: Fix crash in print_graph_function_event()</title>
      <link>https://db.gcve.eu/vuln/cve-2026-99141</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 crash in print_graph_function_event()&lt;/p&gt;
&lt;p&gt;tracing_set_tracer() assigns the flags of the newly selected tracer
with:&lt;/p&gt;
&lt;p&gt;tr-&amp;gt;current_trace_flags = t-&amp;gt;flags ? : t-&amp;gt;tracer-&amp;gt;flags;&lt;/p&gt;
&lt;p&gt;If the new tracer defines neither static flags nor default flags, like
hwlat, irqsoff or wakeup, add_tracer() has no per instance flags copy
for it, and both operands are NULL, so tr-&amp;gt;current_trace_flags ends up
being NULL as well.&lt;/p&gt;
&lt;p&gt;The ring buffer is not cleared when switching tracers: it is reset
inside tracer_init(), after current_trace_flags was already assigned.
If the buffer still holds function_graph entries of the previous
tracer, printing one of them dereferences the NULL pointer. This was
hit by cat trace during an ftrace stress test:&lt;/p&gt;
&lt;p&gt;BUG: kernel NULL pointer dereference, address: 0000000000000000
  #PF: supervisor read access in kernel mode
  RIP: 0010:print_graph_function_event+0xe/0x20
  Call Trace:
   s_show+0x4d/0x110
   seq_read_iter+0x2d4/0x490
   seq_read+0x130/0x170
   vfs_read+0xb5/0x370
   ksys_read+0x6d/0xe0
   do_syscall_64+0xbc/0x450&lt;/p&gt;
&lt;p&gt;The snapshot buffer is not reset at all, so this can be reproduced
without a race:&lt;/p&gt;
&lt;p&gt;echo function_graph &amp;gt; /sys/kernel/tracing/current_tracer
  echo 1 &amp;gt; /sys/kernel/tracing/snapshot
  echo hwlat &amp;gt; /sys/kernel/tracing/current_tracer
  cat /sys/kernel/tracing/snapshot&lt;/p&gt;
&lt;p&gt;Rather than teaching every user of tr-&amp;gt;current_trace_flags about this
corner case, make sure it is ne…&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 crash in print_graph_function_event()&lt;/p&gt;
&lt;p&gt;tracing_set_tracer() assigns the flags of the newly selected tracer
with:&lt;/p&gt;
&lt;p&gt;tr-&amp;gt;current_trace_flags = t-&amp;gt;flags ? : t-&amp;gt;tracer-&amp;gt;flags;&lt;/p&gt;
&lt;p&gt;If the new tracer defines neither static flags nor default flags, like
hwlat, irqsoff or wakeup, add_tracer() has no per instance flags copy
for it, and both operands are NULL, so tr-&amp;gt;current_trace_flags ends up
being NULL as well.&lt;/p&gt;
&lt;p&gt;The ring buffer is not cleared when switching tracers: it is reset
inside tracer_init(), after current_trace_flags was already assigned.
If the buffer still holds function_graph entries of the previous
tracer, printing one of them dereferences the NULL pointer. This was
hit by cat trace during an ftrace stress test:&lt;/p&gt;
&lt;p&gt;BUG: kernel NULL pointer dereference, address: 0000000000000000
  #PF: supervisor read access in kernel mode
  RIP: 0010:print_graph_function_event+0xe/0x20
  Call Trace:
   s_show+0x4d/0x110
   seq_read_iter+0x2d4/0x490
   seq_read+0x130/0x170
   vfs_read+0xb5/0x370
   ksys_read+0x6d/0xe0
   do_syscall_64+0xbc/0x450&lt;/p&gt;
&lt;p&gt;The snapshot buffer is not reset at all, so this can be reproduced
without a race:&lt;/p&gt;
&lt;p&gt;echo function_graph &amp;gt; /sys/kernel/tracing/current_tracer
  echo 1 &amp;gt; /sys/kernel/tracing/snapshot
  echo hwlat &amp;gt; /sys/kernel/tracing/current_tracer
  cat /sys/kernel/tracing/snapshot&lt;/p&gt;
&lt;p&gt;Rather than teaching every user of tr-&amp;gt;current_trace_flags about this
corner case, make sure it is ne…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-99141</guid>
    </item>
  </channel>
</rss>
