CVE-2026-98766: usb: gadget: aspeed-vhub: cancel wake work on device removal

Published Oct 18, 2026
·
Updated

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

usb: gadget: aspeed-vhub: cancel wake work on device removal

wakework is armed from the gadget .wakeup callback to resume suspended downstream ports, and it is never cancelled in astvhubremove(), so a work item queued before or during removal can run after devm has freed vhub and its ports, a use-after-free.

Cancelling the work alone is not sufficient: usbgadgetwakeup() takes no lock and the unbind path never clears wakeupen, so a remote-wakeup request in flight on another CPU can re-arm the work after the cancel and before vhub is freed.

astvhubdeldev() already clears d->registered under vhub->lock before unregistering the gadget. Refuse the wakeup in astvhubudcwakeup() once d->registered is clear: the check and the schedulework() are then atomic against the unbind, so a wakeup that passed before the flag was cleared is drained by the cancelworksync() after the deldev loop, and one that arrives later returns without arming. Also move INITWORK() to the top of astvhubprobe(), since the probe error path reuses astvhubremove() and would otherwise cancel a never-initialized work item.

This issue was found by an in-house static analysis tool.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the Linux kernel aspeed-vhub gadget driver, refuse wakeups once the device is unregistered, clear d->registered under vhub->lock before removal, and use cancel_work_sync() after the ast_vhub_del_dev() loop to drain wake_work; initialize wake_work at the top of ast_vhub_probe() so probe-error cleanup cannot cancel an uninitialized work item.

Event History

Oct 18, 2026
CVE Published
via MITRE·03:47 PM
Data Sourced
via MITRE·03:47 PM
Description
Data Sourced
via NVD·04:17 PM
Description

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