CVE-2026-97482: usb: gadget: goku_udc: avoid NULL deref of dev->driver in INT_USBRESET log

Published Sep 24, 2026
·
Updated

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

usb: gadget: gokuudc: avoid NULL deref of dev->driver in INTUSBRESET log

gokuirq() handles a number of bus events under a single ep0 path. It already guards the gadget driver suspend/resume callbacks against a NULL ->driver:

if (dev->gadget.speed != USBSPEEDUNKNOWN && dev->driver && dev->driver->resume) { spinunlock(&dev->lock); dev->driver->resume(&dev->gadget); ... }

but the very next branch unconditionally dereferences dev->driver when an INTUSBRESET arrives:

if (stat & INTUSBRESET) { ACK(INTUSBRESET); INFO(dev, "USB reset done, gadget %s\n", dev->driver->driver.name); }

If the controller raises INTUSBRESET before any gadget driver has been bound (or after one has been unbound), dev->driver is NULL and the printk dereferences NULL.

smatch flags the inconsistency:

drivers/usb/gadget/udc/gokuudc.c:1618 gokuirq() error: we previously assumed 'dev->driver' could be null (see line 1607)

Fall back to a placeholder when the gadget driver is not bound.

No functional change while a gadget driver is bound.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 24, 2026
CVE Published
via MITRE·04:04 PM
Data Sourced
via MITRE·04:04 PM
Description
Data Sourced
via NVD·05:17 PM
Description

Frequently Asked Questions

1

When can this issue be triggered?

It can occur when the Goku USB device controller receives an INT_USBRESET interrupt before a gadget driver is bound or after a previously bound gadget driver has been unbound. In those states, dev->driver is NULL.

2

What is the impact of triggering the issue?

The interrupt logging path dereferences dev->driver->driver.name despite dev->driver being NULL, causing a NULL-pointer dereference in the kernel.

3

Does a bound gadget driver avoid the problem?

Yes. The described unsafe dereference is only reached with a NULL gadget driver pointer; the fix makes logging use a placeholder when no gadget driver is bound and does not change behavior when one is bound.

4

How can I determine whether a system may be exposed?

Systems using the Linux kernel's goku_udc USB gadget controller can be exposed if the controller can receive USB reset interrupts while no gadget driver is bound. Kernel logs or crash reports associated with goku_irq() during an INT_USBRESET event may indicate the condition occurred.

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