PT-2026-167253
CVE-2026-143395
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
net/9p/usbg: Fix use-after-free on usb9pfs clear tx
When p9 usbg close() is called, it invokes usb9pfs clear tx() but does
not clear usb9pfs->client nor usb9pfs->in req->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.
If the USB gadget is later disabled (e.g., host disconnect),
usb9pfs disable calls usb9pfs clear tx again, which passes the dangling
usb9pfs->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.
Additionally, usb9pfs clear tx does not clear usb9pfs->in req->context
after calling p9 client cb, so a second invocation finds a stale request
pointer and attempts double-completion, further compounding the UAF risk.
Fix by:
- Clearing usb9pfs->in req->context to NULL in usb9pfs clear tx() before checking usb9pfs->client, so that even if the client is gone the stale request pointer is consumed and cannot cause double-completion.
- Adding a NULL check on usb9pfs->client in usb9pfs clear tx() to skip p9 client cb() when the client has already been destroyed.
- Setting usb9pfs->client = NULL in p9 usbg close() after calling usb9pfs clear tx(), to prevent any subsequent call from dereferencing the freed client pointer.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾