CVE-2026-64583: usb: gadget: udc: bdc: free IRQ and drain func_wake_notify before teardown

Published Aug 6, 2026
·
Updated

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

usb: gadget: udc: bdc: free IRQ and drain funcwakenotify before teardown

The Broadcom BDC UDC driver registers its IRQ handler with devmrequestirq() in bdcudcinit(), so the IRQ is released by devm only after bdcremove() returns. devm releases resources in reverse LIFO order, but bdcremove() runs bdcudcexit() and bdchwexit() -> bdcmemfree() manually before returning: bdcudcexit() tears down individual endpoint objects via bdcfreeep(), while bdchwexit() -> bdcmemfree() frees and NULLs the DMA-coherent status-report ring (bdc->srr.srbds) and kfree()s bdc->bdceparray. Both happen while the IRQ handler (bdcudcinterrupt, requested with IRQFSHARED) remains deliverable in the window up to the post-remove devm freeirq().

On receipt of a shared interrupt in that window, bdcudcinterrupt() dereferences bdc->srr.srbds[bdc->srr.dqpindex] (NULL or freed DMA) and dispatches srhandler callbacks that index into bdceparray, causing a NULL-deref or use-after-free.

The same window affects the delayedwork bdc->funcwakenotify, which is armed from the IRQ handler via bdcsruspc() -> handlelinkstatechange() -> scheduledelayedwork() and may self-rearm from its own callback bdcfuncwaketimer(). No cancel exists anywhere in the driver, so a queued work item that fires after bdcremove() returns and the bdc structure is devm-freed dereferences freed memory.

Replace devmrequestirq() with requestirq() and add an explicit freeirq(bdc->irq, bdc) in bdcremove(). Clear BDCGIE before freeirq() to stop the device from asserting interrupts, then freeirq() drains any in-flight handler, then canceldelayedworksync() drains the funcwakenotify delayed work. This ordering ensures the IRQ handler and delayed work cannot interfere with the subsequent endpoint and DMA teardown in bdcudcexit() and bdchwexit(). Wire the matching freeirq() into the bdcudcinit() error path so the IRQ is released on probe failure, and route the bdcinitep() failure through err0 instead of returning directly.

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

Event History

Aug 6, 2026
CVE Published
via MITRE·07:06 AM
Data Sourced
via MITRE·07:06 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-64583?

The severity of CVE-2026-64583 is rated as 44.

2

How do I fix CVE-2026-64583?

To fix CVE-2026-64583, ensure you update to the patched version of the Linux kernel that addresses this vulnerability.

3

What systems are affected by CVE-2026-64583?

CVE-2026-64583 affects systems running the Linux kernel with the Broadcom BDC UDC driver.

4

What type of vulnerability is CVE-2026-64583?

CVE-2026-64583 is categorized as a Use After Free vulnerability.

5

Is there a workaround for CVE-2026-64583?

Currently, there are no known workarounds for CVE-2026-64583 other than applying the software update.

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