CVE-2026-138842: xhci: Prevent invalid vdev dereference during sideband unregister

Published Nov 30, 2026
·
Updated

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

xhci: Prevent invalid vdev dereference during sideband unregister

Offloaded USB audio devices using the xhci-sideband API store a pointer to the xhci virtual device (vdev) in the sideband structure when registering.

This pointer typically remains valid throughout the lifetime of the USB device. If a configured offloaded device requires a reset, the USB core usually unbinds or notifies the audio driver beforehand, ensuring that the sideband is unregistered before the vdev is freed.

An exception occurs when the USB core resets a device to recover from a failed resume, but a subsequent 'address device' request also fails. To recover in this specific scenario, the xHCI driver disables and re-enables the slot, which frees and re-allocates the vdev.

xhcisidebandunregister() later dereferences the stale, previously freed vdev pointer during disconnect, triggering a kernel oops:

Unable to handle kernel paging request at virtual address dead000000000122 Call trace: xhcigetepctx+0x0/0x38 xhcisidebandunregister+0x68/0xf0 uaudiodisconnect+0x70/0x144 usbaudiodisconnect+0x7c/0x268 usbunbindinterface+0x13c/0x340 devicereleasedriverinternal+0x1c4/0x2bc usbdisabledevice+0x84/0x190 usbdisconnect+0xe8/0x338 hubevent+0xbd8/0x19ac

Fix this by preventing the reallocation of the vdev in this specific error path if the device is registered for sideband use.

Just propagate the error directly to the USB core. It should either retry enumeration or detect the disconnected device, and handle it accordingly.

Debugging this issue to the dangling vdev pointer, reporting it, testing, and initial patch with different solution by Lianqin Hu

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the xHCI reset-recovery path for a device registered for sideband use, propagate the failure to the USB core instead of disabling and re-enabling the slot and reallocating the vdev; ensure sideband is unregistered before the vdev is freed.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 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