<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-05T12:42:53.131863+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-143395</id>
    <title>CVE-2026-143395 — net/9p/usbg: Fix use-after-free on usb9pfs_clear_tx</title>
    <updated>2026-12-05T12:42:53.134255+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>net/9p/usbg: Fix use-after-free on usb9pfs_clear_tx</p>
<p>When p9_usbg_close() is called, it invokes usb9pfs_clear_tx() but does
not clear usb9pfs-&gt;client nor usb9pfs-&gt;in_req-&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.</p>
<p>If the USB gadget is later disabled (e.g., host disconnect),
usb9pfs_disable calls usb9pfs_clear_tx again, which passes the dangling
usb9pfs-&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.</p>
<p>Additionally, usb9pfs_clear_tx does not clear usb9pfs-&gt;in_req-&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.</p>
<p>Fix by:
1. Clearing usb9pfs-&gt;in_req-&gt;context to NULL in usb9pfs_clear_tx()
   before checking usb9pfs-&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-&gt;client in usb9pfs_clear_tx() to skip
   p9_client_cb() when the client has already been destroyed.
3. Setting usb9pfs-&gt;client = NULL in p9_usbg_close() after calling
   usb9pfs_clear_tx(), to prevent any subsequent call from dereferencing
   the freed client pointer.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-143395"/>
  </entry>
</feed>
