<?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 05:22:53 +0000</lastBuildDate>
    <item>
      <title>CVE-2025-68257 — comedi: check device's attached status in compat ioctls</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2025-68257</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;comedi: check device&amp;#39;s attached status in compat ioctls&lt;/p&gt;
&lt;p&gt;Syzbot identified an issue [1] that crashes kernel, seemingly due to
unexistent callback dev-&amp;gt;get_valid_routes(). By all means, this should
not occur as said callback must always be set to
get_zero_valid_routes() in __comedi_device_postconfig().&lt;/p&gt;
&lt;p&gt;As the crash seems to appear exclusively in i386 kernels, at least,
judging from [1] reports, the blame lies with compat versions
of standard IOCTL handlers. Several of them are modified and
do not use comedi_unlocked_ioctl(). While functionality of these
ioctls essentially copy their original versions, they do not
have required sanity check for device&amp;#39;s attached status. This,
in turn, leads to a possibility of calling select IOCTLs on a
device that has not been properly setup, even via COMEDI_DEVCONFIG.&lt;/p&gt;
&lt;p&gt;Doing so on unconfigured devices means that several crucial steps
are missed, for instance, specifying dev-&amp;gt;get_valid_routes()
callback.&lt;/p&gt;
&lt;p&gt;Fix this somewhat crudely by ensuring device&amp;#39;s attached status before
performing any ioctls, improving logic consistency between modern
and compat functions.&lt;/p&gt;
&lt;p&gt;[1] Syzbot report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
...
CR2: ffffffffffffffd6 CR3: 000000006c717000 CR4: 0000000000352ef0
Call Trace:
 &amp;lt;TASK&amp;gt;
 get_valid_routes drivers/comedi/comedi_fops.c:1322 [inline]
 parse_insn+0x78c/0x1970 drivers/comedi/comedi_fops.c:1401
 do_insnlist_ioctl+0x272/…&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;comedi: check device&amp;#39;s attached status in compat ioctls&lt;/p&gt;
&lt;p&gt;Syzbot identified an issue [1] that crashes kernel, seemingly due to
unexistent callback dev-&amp;gt;get_valid_routes(). By all means, this should
not occur as said callback must always be set to
get_zero_valid_routes() in __comedi_device_postconfig().&lt;/p&gt;
&lt;p&gt;As the crash seems to appear exclusively in i386 kernels, at least,
judging from [1] reports, the blame lies with compat versions
of standard IOCTL handlers. Several of them are modified and
do not use comedi_unlocked_ioctl(). While functionality of these
ioctls essentially copy their original versions, they do not
have required sanity check for device&amp;#39;s attached status. This,
in turn, leads to a possibility of calling select IOCTLs on a
device that has not been properly setup, even via COMEDI_DEVCONFIG.&lt;/p&gt;
&lt;p&gt;Doing so on unconfigured devices means that several crucial steps
are missed, for instance, specifying dev-&amp;gt;get_valid_routes()
callback.&lt;/p&gt;
&lt;p&gt;Fix this somewhat crudely by ensuring device&amp;#39;s attached status before
performing any ioctls, improving logic consistency between modern
and compat functions.&lt;/p&gt;
&lt;p&gt;[1] Syzbot report:
BUG: kernel NULL pointer dereference, address: 0000000000000000
...
CR2: ffffffffffffffd6 CR3: 000000006c717000 CR4: 0000000000352ef0
Call Trace:
 &amp;lt;TASK&amp;gt;
 get_valid_routes drivers/comedi/comedi_fops.c:1322 [inline]
 parse_insn+0x78c/0x1970 drivers/comedi/comedi_fops.c:1401
 do_insnlist_ioctl+0x272/…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2025-68257</guid>
    </item>
  </channel>
</rss>
