<?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>Tue, 29 Sep 2026 18:57:21 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-39684 — comedi: Fix use of uninitialized memory in do_insn_ioctl() and do_insnlist_ioctl()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-39684</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;comedi: Fix use of uninitialized memory in do_insn_ioctl() and do_insnlist_ioctl()&lt;/p&gt;
&lt;p&gt;syzbot reports a KMSAN kernel-infoleak in `do_insn_ioctl()`.  A kernel
buffer is allocated to hold `insn-&amp;gt;n` samples (each of which is an
`unsigned int`).  For some instruction types, `insn-&amp;gt;n` samples are
copied back to user-space, unless an error code is being returned.  The
problem is that not all the instruction handlers that need to return
data to userspace fill in the whole `insn-&amp;gt;n` samples, so that there is
an information leak.  There is a similar syzbot report for
`do_insnlist_ioctl()`, although it does not have a reproducer for it at
the time of writing.&lt;/p&gt;
&lt;p&gt;One culprit is `insn_rw_emulate_bits()` which is used as the handler for
`INSN_READ` or `INSN_WRITE` instructions for subdevices that do not have
a specific handler for that instruction, but do have an `INSN_BITS`
handler.  For `INSN_READ` it only fills in at most 1 sample, so if
`insn-&amp;gt;n` is greater than 1, the remaining `insn-&amp;gt;n - 1` samples copied
to userspace will be uninitialized kernel data.&lt;/p&gt;
&lt;p&gt;Another culprit is `vm80xx_ai_insn_read()` in the &amp;#34;vm80xx&amp;#34; driver.  It
never returns an error, even if it fails to fill the buffer.&lt;/p&gt;
&lt;p&gt;Fix it in `do_insn_ioctl()` and `do_insnlist_ioctl()` by making sure
that uninitialized parts of the allocated buffer are zeroed before
handling each instruction.&lt;/p&gt;
&lt;p&gt;Thanks to Arnaud Lecomte for their fix to `do_insn_ioctl()`.  That fix
repl…&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;comedi: Fix use of uninitialized memory in do_insn_ioctl() and do_insnlist_ioctl()&lt;/p&gt;
&lt;p&gt;syzbot reports a KMSAN kernel-infoleak in `do_insn_ioctl()`.  A kernel
buffer is allocated to hold `insn-&amp;gt;n` samples (each of which is an
`unsigned int`).  For some instruction types, `insn-&amp;gt;n` samples are
copied back to user-space, unless an error code is being returned.  The
problem is that not all the instruction handlers that need to return
data to userspace fill in the whole `insn-&amp;gt;n` samples, so that there is
an information leak.  There is a similar syzbot report for
`do_insnlist_ioctl()`, although it does not have a reproducer for it at
the time of writing.&lt;/p&gt;
&lt;p&gt;One culprit is `insn_rw_emulate_bits()` which is used as the handler for
`INSN_READ` or `INSN_WRITE` instructions for subdevices that do not have
a specific handler for that instruction, but do have an `INSN_BITS`
handler.  For `INSN_READ` it only fills in at most 1 sample, so if
`insn-&amp;gt;n` is greater than 1, the remaining `insn-&amp;gt;n - 1` samples copied
to userspace will be uninitialized kernel data.&lt;/p&gt;
&lt;p&gt;Another culprit is `vm80xx_ai_insn_read()` in the &amp;#34;vm80xx&amp;#34; driver.  It
never returns an error, even if it fails to fill the buffer.&lt;/p&gt;
&lt;p&gt;Fix it in `do_insn_ioctl()` and `do_insnlist_ioctl()` by making sure
that uninitialized parts of the allocated buffer are zeroed before
handling each instruction.&lt;/p&gt;
&lt;p&gt;Thanks to Arnaud Lecomte for their fix to `do_insn_ioctl()`.  That fix
repl…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-39684</guid>
    </item>
  </channel>
</rss>
