<?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://vulnerability.circl.lu</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>Sat, 03 Oct 2026 15:01:40 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-39813 — ftrace: Fix potential warning in trace_printk_seq during ftrace_dump</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-39813</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC CN 4100&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;ftrace: Fix potential warning in trace_printk_seq during ftrace_dump&lt;/p&gt;
&lt;p&gt;When calling ftrace_dump_one() concurrently with reading trace_pipe,
a WARN_ON_ONCE() in trace_printk_seq() can be triggered due to a race
condition.&lt;/p&gt;
&lt;p&gt;The issue occurs because:&lt;/p&gt;
&lt;p&gt;CPU0 (ftrace_dump)                              CPU1 (reader)
echo z &amp;gt; /proc/sysrq-trigger&lt;/p&gt;
&lt;p&gt;!trace_empty(&amp;amp;iter)
trace_iterator_reset(&amp;amp;iter) &amp;lt;- len = size = 0
                                                cat /sys/kernel/tracing/trace_pipe
trace_find_next_entry_inc(&amp;amp;iter)
  __find_next_entry
    ring_buffer_empty_cpu &amp;lt;- all empty
  return NULL&lt;/p&gt;
&lt;p&gt;trace_printk_seq(&amp;amp;iter.seq)
  WARN_ON_ONCE(s-&amp;gt;seq.len &amp;gt;= s-&amp;gt;seq.size)&lt;/p&gt;
&lt;p&gt;In the context between trace_empty() and trace_find_next_entry_inc()
during ftrace_dump, the ring buffer data was consumed by other readers.
This caused trace_find_next_entry_inc to return NULL, failing to populate
`iter.seq`. At this point, due to the prior trace_iterator_reset, both
`iter.seq.len` and `iter.seq.size` were set to 0. Since they are equal,
the WARN_ON_ONCE condition is triggered.&lt;/p&gt;
&lt;p&gt;Move the trace_printk_seq() into the if block that checks to make sure the
return value of trace_find_next_entry_inc() is non-NULL in
ftrace_dump_one(), ensuring the &amp;#39;iter.seq&amp;#39; is properly populated before
subsequent operations.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux, Siemens SIMATIC CN 4100&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;ftrace: Fix potential warning in trace_printk_seq during ftrace_dump&lt;/p&gt;
&lt;p&gt;When calling ftrace_dump_one() concurrently with reading trace_pipe,
a WARN_ON_ONCE() in trace_printk_seq() can be triggered due to a race
condition.&lt;/p&gt;
&lt;p&gt;The issue occurs because:&lt;/p&gt;
&lt;p&gt;CPU0 (ftrace_dump)                              CPU1 (reader)
echo z &amp;gt; /proc/sysrq-trigger&lt;/p&gt;
&lt;p&gt;!trace_empty(&amp;amp;iter)
trace_iterator_reset(&amp;amp;iter) &amp;lt;- len = size = 0
                                                cat /sys/kernel/tracing/trace_pipe
trace_find_next_entry_inc(&amp;amp;iter)
  __find_next_entry
    ring_buffer_empty_cpu &amp;lt;- all empty
  return NULL&lt;/p&gt;
&lt;p&gt;trace_printk_seq(&amp;amp;iter.seq)
  WARN_ON_ONCE(s-&amp;gt;seq.len &amp;gt;= s-&amp;gt;seq.size)&lt;/p&gt;
&lt;p&gt;In the context between trace_empty() and trace_find_next_entry_inc()
during ftrace_dump, the ring buffer data was consumed by other readers.
This caused trace_find_next_entry_inc to return NULL, failing to populate
`iter.seq`. At this point, due to the prior trace_iterator_reset, both
`iter.seq.len` and `iter.seq.size` were set to 0. Since they are equal,
the WARN_ON_ONCE condition is triggered.&lt;/p&gt;
&lt;p&gt;Move the trace_printk_seq() into the if block that checks to make sure the
return value of trace_find_next_entry_inc() is non-NULL in
ftrace_dump_one(), ensuring the &amp;#39;iter.seq&amp;#39; is properly populated before
subsequent operations.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-39813</guid>
    </item>
  </channel>
</rss>
