<?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 10:20:28 +0000</lastBuildDate>
    <item>
      <title>CVE-2024-56670 — usb: gadget: u_serial: Fix the issue that gs_start_io crashed due to accessing null pointer</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2024-56670</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: gadget: u_serial: Fix the issue that gs_start_io crashed due to accessing null pointer&lt;/p&gt;
&lt;p&gt;Considering that in some extreme cases,
when u_serial driver is accessed by multiple threads,
Thread A is executing the open operation and calling the gs_open,
Thread B is executing the disconnect operation and calling the
gserial_disconnect function,The port-&amp;gt;port_usb pointer will be set to NULL.&lt;/p&gt;
&lt;p&gt;E.g.
    Thread A                                 Thread B
    gs_open()                                gadget_unbind_driver()
    gs_start_io()                            composite_disconnect()
    gs_start_rx()                            gserial_disconnect()
    ...                                      ...
    spin_unlock(&amp;amp;port-&amp;gt;port_lock)
    status = usb_ep_queue()                  spin_lock(&amp;amp;port-&amp;gt;port_lock)
    spin_lock(&amp;amp;port-&amp;gt;port_lock)              port-&amp;gt;port_usb = NULL
    gs_free_requests(port-&amp;gt;port_usb-&amp;gt;in)     spin_unlock(&amp;amp;port-&amp;gt;port_lock)
    Crash&lt;/p&gt;
&lt;p&gt;This causes thread A to access a null pointer (port-&amp;gt;port_usb is null)
when calling the gs_free_requests function, causing a crash.&lt;/p&gt;
&lt;p&gt;If port_usb is NULL, the release request will be skipped as it
will be done by gserial_disconnect.&lt;/p&gt;
&lt;p&gt;So add a null pointer check to gs_start_io before attempting
to access the value of the pointer port-&amp;gt;port_usb.&lt;/p&gt;
&lt;p&gt;Call trace:
 gs_start_io+0x164/0x25c
 gs_open+0x108/0x13c
 tty_open+0x314/0x638
 chrdev_open+0x1b8/0x258
 do_dentry_open+…&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: gadget: u_serial: Fix the issue that gs_start_io crashed due to accessing null pointer&lt;/p&gt;
&lt;p&gt;Considering that in some extreme cases,
when u_serial driver is accessed by multiple threads,
Thread A is executing the open operation and calling the gs_open,
Thread B is executing the disconnect operation and calling the
gserial_disconnect function,The port-&amp;gt;port_usb pointer will be set to NULL.&lt;/p&gt;
&lt;p&gt;E.g.
    Thread A                                 Thread B
    gs_open()                                gadget_unbind_driver()
    gs_start_io()                            composite_disconnect()
    gs_start_rx()                            gserial_disconnect()
    ...                                      ...
    spin_unlock(&amp;amp;port-&amp;gt;port_lock)
    status = usb_ep_queue()                  spin_lock(&amp;amp;port-&amp;gt;port_lock)
    spin_lock(&amp;amp;port-&amp;gt;port_lock)              port-&amp;gt;port_usb = NULL
    gs_free_requests(port-&amp;gt;port_usb-&amp;gt;in)     spin_unlock(&amp;amp;port-&amp;gt;port_lock)
    Crash&lt;/p&gt;
&lt;p&gt;This causes thread A to access a null pointer (port-&amp;gt;port_usb is null)
when calling the gs_free_requests function, causing a crash.&lt;/p&gt;
&lt;p&gt;If port_usb is NULL, the release request will be skipped as it
will be done by gserial_disconnect.&lt;/p&gt;
&lt;p&gt;So add a null pointer check to gs_start_io before attempting
to access the value of the pointer port-&amp;gt;port_usb.&lt;/p&gt;
&lt;p&gt;Call trace:
 gs_start_io+0x164/0x25c
 gs_open+0x108/0x13c
 tty_open+0x314/0x638
 chrdev_open+0x1b8/0x258
 do_dentry_open+…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2024-56670</guid>
    </item>
  </channel>
</rss>
