CVE-2024-26715: usb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend

Published Apr 3, 2024
·
Updated

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

usb: dwc3: gadget: Fix NULL pointer dereference in dwc3gadgetsuspend

In current scenario if Plug-out and Plug-In performed continuously there could be a chance while checking for dwc->gadgetdriver in dwc3gadgetsuspend, a NULL pointer dereference may occur.

Call Stack:

CPU1: CPU2: gadgetunbinddriver dwc3suspendcommon dwc3gadgetstop dwc3gadgetsuspend dwc3disconnectgadget

CPU1 basically clears the variable and CPU2 checks the variable. Consider CPU1 is running and right before gadgetdriver is cleared and in parallel CPU2 executes dwc3gadgetsuspend where it finds dwc->gadgetdriver which is not NULL and resumes execution and then CPU1 completes execution. CPU2 executes dwc3disconnectgadget where it checks dwc->gadgetdriver is already NULL because of which the NULL pointer deference occur.

Affected Software

9 affected componentsFixes available
Linux Linux kernel>=3.16.81<3.17
Linux Linux kernel>=4.4.178<4.5
Linux Linux kernel>=4.6<5.15.149
Linux Linux kernel>=5.16<6.1.79
Linux Linux kernel>=6.2<6.6.18
Linux Linux kernel>=6.7<6.7.6
Linux Linux kernel=6.8-rc1
Linux Linux kernel=6.8-rc2
debian/linux<=5.10.223-1, <=5.10.234-1
6.1.129-16.1.135-16.12.25-16.12.27-1

Event History

Apr 3, 2024
CVE Published
via MITRE·02:55 PM
Data Sourced
via MITRE·02:55 PM
Description
May 15, 2024
Data Sourced
via Launchpad·08:30 PM
Description
Apr 29, 2025
Data Sourced
via Ubuntu·06:12 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-26715?

The severity of CVE-2024-26715 is classified as medium due to the possibility of a NULL pointer dereference in the Linux kernel.

2

How do I fix CVE-2024-26715?

To fix CVE-2024-26715, update to a version of the Linux kernel that is 6.1.123-1, 6.1.119-1, 6.12.10-1, 6.12.11-1 or later if you are using affected versions.

3

Which Linux kernel versions are vulnerable to CVE-2024-26715?

Linux kernel versions from 3.16.81 to 6.8-rc2 are vulnerable to CVE-2024-26715.

4

What component of the Linux kernel is affected by CVE-2024-26715?

CVE-2024-26715 affects the USB component of the Linux kernel, specifically the dwc3 gadget driver.

5

Is CVE-2024-26715 present in all distributions of Linux?

CVE-2024-26715 is primarily associated with the Linux kernel, so it may be present in any distribution that utilizes affected kernel versions.

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