CVE-2026-99783: net/9p/usbg: Fix use-after-free in disable_usb9pfs()

Published Nov 20, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net/9p/usbg: Fix use-after-free in disableusb9pfs()

disableusb9pfs() frees the IN and OUT usbrequest objects before it disables the corresponding endpoints. If either request is still queued, the later usbepdisable() call cancels the endpoint queue and the UDC driver can still access the already freed request.

With dummyhcd and KASAN, this is reproducible by queueing the OUT request and then disconnecting the configfs gadget:

BUG: KASAN: slab-use-after-free in dummydisable+0x2b4/0x300 Read of size 8 at addr ffff888009702400 by task sh/1 usbepdisable+0x8e/0x1f0 usb9pfsfuncunbind+0x193/0x350 gadgetdevdescUDCstore+0x135/0x280

dummyfreerequest() also warns because the request is freed while its queue entry is still linked.

Disable both endpoints before freeing the request objects. This lets usbepdisable() cancel any queued transfers and invoke the completion callback while the request storage is still valid. The request objects are then freed only after they have been removed from the endpoint queues.

Affected Software

6 affected componentsFixes available
linux/kernel>=6.12.0<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5
debian/linux*
debian/linux*
debian/linux<=6.12.107-1, <=6.12.117-1, <=7.3.4-1
6.1.176-16.1.192-27.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 7.3.5-1
  5. Compensating control

    Disable both endpoints before freeing the IN and OUT usb_request objects, so queued transfers are canceled and completion callbacks run while the request storage is still valid.

Event History

Nov 20, 2026
CVE Published
via MITRE·05:51 AM
Data Sourced
via MITRE·05:51 AM
Description
Data Sourced
via OSV·05:51 AM
DescriptionAffected Software
Data Sourced
via NVD·06:18 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux USB gadget implementation for usb9pfs are exposed when the gadget is unbound or disconnected while an IN or OUT USB request remains queued. The reported reproduction uses a configfs gadget with dummy_hcd.

2

What condition is required to trigger the use-after-free?

A USB request must still be queued when the relevant endpoint is disabled during gadget teardown. The endpoint-disable operation cancels queued transfers, and the USB device-controller driver may access a request that was already freed.

3

How can I identify a likely occurrence?

With KASAN enabled, the issue can produce a slab-use-after-free report in dummy_disable through usb_ep_disable during usb9pfs_func_unbind. The dummy controller may also warn that a request was freed while its queue entry remained linked.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203