<?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>Sat, 05 Dec 2026 12:42:44 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-143395 — net/9p/usbg: Fix use-after-free on usb9pfs_clear_tx</title>
      <link>https://db.gcve.eu/vuln/cve-2026-143395</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;net/9p/usbg: Fix use-after-free on usb9pfs_clear_tx&lt;/p&gt;
&lt;p&gt;When p9_usbg_close() is called, it invokes usb9pfs_clear_tx() but does
not clear usb9pfs-&amp;gt;client nor usb9pfs-&amp;gt;in_req-&amp;gt;context afterwards.
The 9p client core (p9_client_destroy) calls close() and then
kfree(clnt), so after p9_usbg_close returns the client struct is freed.&lt;/p&gt;
&lt;p&gt;If the USB gadget is later disabled (e.g., host disconnect),
usb9pfs_disable calls usb9pfs_clear_tx again, which passes the dangling
usb9pfs-&amp;gt;client pointer to p9_client_cb. Inside p9_client_cb,
p9_req_put(c, req) dereferences the freed client to access its reqs IDR,
causing a use-after-free.&lt;/p&gt;
&lt;p&gt;Additionally, usb9pfs_clear_tx does not clear usb9pfs-&amp;gt;in_req-&amp;gt;context
after calling p9_client_cb, so a second invocation finds a stale request
pointer and attempts double-completion, further compounding the UAF risk.&lt;/p&gt;
&lt;p&gt;Fix by:
1. Clearing usb9pfs-&amp;gt;in_req-&amp;gt;context to NULL in usb9pfs_clear_tx()
   before checking usb9pfs-&amp;gt;client, so that even if the client is gone
   the stale request pointer is consumed and cannot cause
   double-completion.
2. Adding a NULL check on usb9pfs-&amp;gt;client in usb9pfs_clear_tx() to skip
   p9_client_cb() when the client has already been destroyed.
3. Setting usb9pfs-&amp;gt;client = NULL in p9_usbg_close() after calling
   usb9pfs_clear_tx(), to prevent any subsequent call from dereferencing
   the freed client pointer.&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;net/9p/usbg: Fix use-after-free on usb9pfs_clear_tx&lt;/p&gt;
&lt;p&gt;When p9_usbg_close() is called, it invokes usb9pfs_clear_tx() but does
not clear usb9pfs-&amp;gt;client nor usb9pfs-&amp;gt;in_req-&amp;gt;context afterwards.
The 9p client core (p9_client_destroy) calls close() and then
kfree(clnt), so after p9_usbg_close returns the client struct is freed.&lt;/p&gt;
&lt;p&gt;If the USB gadget is later disabled (e.g., host disconnect),
usb9pfs_disable calls usb9pfs_clear_tx again, which passes the dangling
usb9pfs-&amp;gt;client pointer to p9_client_cb. Inside p9_client_cb,
p9_req_put(c, req) dereferences the freed client to access its reqs IDR,
causing a use-after-free.&lt;/p&gt;
&lt;p&gt;Additionally, usb9pfs_clear_tx does not clear usb9pfs-&amp;gt;in_req-&amp;gt;context
after calling p9_client_cb, so a second invocation finds a stale request
pointer and attempts double-completion, further compounding the UAF risk.&lt;/p&gt;
&lt;p&gt;Fix by:
1. Clearing usb9pfs-&amp;gt;in_req-&amp;gt;context to NULL in usb9pfs_clear_tx()
   before checking usb9pfs-&amp;gt;client, so that even if the client is gone
   the stale request pointer is consumed and cannot cause
   double-completion.
2. Adding a NULL check on usb9pfs-&amp;gt;client in usb9pfs_clear_tx() to skip
   p9_client_cb() when the client has already been destroyed.
3. Setting usb9pfs-&amp;gt;client = NULL in p9_usbg_close() after calling
   usb9pfs_clear_tx(), to prevent any subsequent call from dereferencing
   the freed client pointer.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-143395</guid>
    </item>
  </channel>
</rss>
