<?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>Thu, 01 Oct 2026 11:04:15 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-39713 — media: rainshadow-cec: fix TOCTOU race condition in rain_interrupt()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-39713</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;media: rainshadow-cec: fix TOCTOU race condition in rain_interrupt()&lt;/p&gt;
&lt;p&gt;In the interrupt handler rain_interrupt(), the buffer full check on
rain-&amp;gt;buf_len is performed before acquiring rain-&amp;gt;buf_lock. This
creates a Time-of-Check to Time-of-Use (TOCTOU) race condition, as
rain-&amp;gt;buf_len is concurrently accessed and modified in the work
handler rain_irq_work_handler() under the same lock.&lt;/p&gt;
&lt;p&gt;Multiple interrupt invocations can race, with each reading buf_len
before it becomes full and then proceeding. This can lead to both
interrupts attempting to write to the buffer, incrementing buf_len
beyond its capacity (DATA_SIZE) and causing a buffer overflow.&lt;/p&gt;
&lt;p&gt;Fix this bug by moving the spin_lock() to before the buffer full
check. This ensures that the check and the subsequent buffer modification
are performed atomically, preventing the race condition. An corresponding
spin_unlock() is added to the overflow path to correctly release the
lock.&lt;/p&gt;
&lt;p&gt;This possible bug was found by an experimental static analysis tool
developed by our team.&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;media: rainshadow-cec: fix TOCTOU race condition in rain_interrupt()&lt;/p&gt;
&lt;p&gt;In the interrupt handler rain_interrupt(), the buffer full check on
rain-&amp;gt;buf_len is performed before acquiring rain-&amp;gt;buf_lock. This
creates a Time-of-Check to Time-of-Use (TOCTOU) race condition, as
rain-&amp;gt;buf_len is concurrently accessed and modified in the work
handler rain_irq_work_handler() under the same lock.&lt;/p&gt;
&lt;p&gt;Multiple interrupt invocations can race, with each reading buf_len
before it becomes full and then proceeding. This can lead to both
interrupts attempting to write to the buffer, incrementing buf_len
beyond its capacity (DATA_SIZE) and causing a buffer overflow.&lt;/p&gt;
&lt;p&gt;Fix this bug by moving the spin_lock() to before the buffer full
check. This ensures that the check and the subsequent buffer modification
are performed atomically, preventing the race condition. An corresponding
spin_unlock() is added to the overflow path to correctly release the
lock.&lt;/p&gt;
&lt;p&gt;This possible bug was found by an experimental static analysis tool
developed by our team.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-39713</guid>
    </item>
  </channel>
</rss>
