<?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>Fri, 04 Dec 2026 18:43:34 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-142990 — usb: usbtest: prevent divide by zero in simple_io() with zero length</title>
      <link>https://db.gcve.eu/vuln/cve-2026-142990</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;usb: usbtest: prevent divide by zero in simple_io() with zero length&lt;/p&gt;
&lt;p&gt;A divide error oops was observed in simple_io():&lt;/p&gt;
&lt;p&gt;usbtest 1-1:1.0: TEST 3:  write/1 0..0 bytes 16307 times
	Oops: divide error: 0000 [#1] SMP KASAN
	RIP: 0010:simple_io+0x2c4/0x540 drivers/usb/misc/usbtest.c:497&lt;/p&gt;
&lt;p&gt;The variable-length tests (test 3 and test 4) compute the next URB
size with &amp;#34;len %= max&amp;#34;, where max is the original
urb-&amp;gt;transfer_buffer_length. However, when a zero-length transfer is
requested (param-&amp;gt;length == 0), simple_alloc_urb() still returns a valid
URB with transfer_buffer_length set to 0. On the first vary update,
&amp;#34;len %= max&amp;#34; divides by zero and the kernel oopses.&lt;/p&gt;
&lt;p&gt;Commit 564e69893c63 (&amp;#34;USB: usbtest: prevent a divide by zero bug&amp;#34;) added
the equivalent zero check to alloc_sglist(), which covers the
scatterlist tests (test 7/8), but the single-URB variable-length path in
simple_io() was left unprotected.&lt;/p&gt;
&lt;p&gt;Fix this by returning -EINVAL early from simple_io() when vary is
requested but max is zero, so the divide by zero never occurs.
Zero-length transfers without vary remain valid for the other callers of
simple_io().&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;usb: usbtest: prevent divide by zero in simple_io() with zero length&lt;/p&gt;
&lt;p&gt;A divide error oops was observed in simple_io():&lt;/p&gt;
&lt;p&gt;usbtest 1-1:1.0: TEST 3:  write/1 0..0 bytes 16307 times
	Oops: divide error: 0000 [#1] SMP KASAN
	RIP: 0010:simple_io+0x2c4/0x540 drivers/usb/misc/usbtest.c:497&lt;/p&gt;
&lt;p&gt;The variable-length tests (test 3 and test 4) compute the next URB
size with &amp;#34;len %= max&amp;#34;, where max is the original
urb-&amp;gt;transfer_buffer_length. However, when a zero-length transfer is
requested (param-&amp;gt;length == 0), simple_alloc_urb() still returns a valid
URB with transfer_buffer_length set to 0. On the first vary update,
&amp;#34;len %= max&amp;#34; divides by zero and the kernel oopses.&lt;/p&gt;
&lt;p&gt;Commit 564e69893c63 (&amp;#34;USB: usbtest: prevent a divide by zero bug&amp;#34;) added
the equivalent zero check to alloc_sglist(), which covers the
scatterlist tests (test 7/8), but the single-URB variable-length path in
simple_io() was left unprotected.&lt;/p&gt;
&lt;p&gt;Fix this by returning -EINVAL early from simple_io() when vary is
requested but max is zero, so the divide by zero never occurs.
Zero-length transfers without vary remain valid for the other callers of
simple_io().&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-142990</guid>
    </item>
  </channel>
</rss>
