# CVE-2024-26715: usb: dwc3: gadget: Fix NULL pointer dereference in dwc3\_gadget\_suspend

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-04-03T14:55:16.395Z
- **Modified:** 2026-06-17T07:18:09.833Z

## Who should check

- Anyone running Linux \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< 88936ceab6b426f1312327e9ef849c215c6007a7; \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< 57e2e42ccd3cd6183228269715ed032f44536751; \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< c7ebd8149ee519d27232e6e4940e9c02071b568b; \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< 36695d5eeeefe5a64b47d0336e7c8fc144e78182; \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< 61a348857e869432e6a920ad8ea9132e8d44c316; 8cca5c85393a7a490d4d7942c24d73d29cc77b3e; df2ca3271569367352835f981618e284fdc4ca94; \>= 3.16.81, \< 3.17; \>= 4.4.178, \< 4.5
- Anyone running Linux 4.6

## Description

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

usb: dwc3: gadget: Fix NULL pointer dereference in dwc3\_gadget\_suspend

In current scenario if Plug-out and Plug-In performed continuously
there could be a chance while checking for dwc-\>gadget\_driver in
dwc3\_gadget\_suspend, a NULL pointer dereference may occur.

Call Stack:

	CPU1:                           CPU2:
	gadget\_unbind\_driver            dwc3\_suspend\_common
	dwc3\_gadget\_stop                dwc3\_gadget\_suspend
                                        dwc3\_disconnect\_gadget

CPU1 basically clears the variable and CPU2 checks the variable.
Consider CPU1 is running and right before gadget\_driver is cleared
and in parallel CPU2 executes dwc3\_gadget\_suspend where it finds
dwc-\>gadget\_driver which is not NULL and resumes execution and then
CPU1 completes execution. CPU2 executes dwc3\_disconnect\_gadget where
it checks dwc-\>gadget\_driver is already NULL because of which the
NULL pointer deference occur.

## Affected and fixed versions

- Linux: \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< 88936ceab6b426f1312327e9ef849c215c6007a7; \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< 57e2e42ccd3cd6183228269715ed032f44536751; \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< c7ebd8149ee519d27232e6e4940e9c02071b568b; \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< 36695d5eeeefe5a64b47d0336e7c8fc144e78182; \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< 61a348857e869432e6a920ad8ea9132e8d44c316; 8cca5c85393a7a490d4d7942c24d73d29cc77b3e; df2ca3271569367352835f981618e284fdc4ca94; \>= 3.16.81, \< 3.17; \>= 4.4.178, \< 4.5 (cvelist)
- Linux: 4.6 (cvelist)

## Mitigation

- Upgrade Linux to 4.5 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26715. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26715.md
Affected: Linux >= 9772b47a4c2916d645c551228b6085ea24acbe5d, < 88936ceab6b426f1312327e9ef849c215c6007a7; >= 9772b47a4c2916d645c551228b6085ea24acbe5d, < 57e2e42ccd3cd6183228269715ed032f44536751; >= 9772b47a4c2916d645c551228b6085ea24acbe5d, < c7ebd8149ee519d27232e6e4940e9c02071b568b; >= 9772b47a4c2916d645c5512…
Fixed in: Linux 88936ceab6b426f1312327e9ef849c215c6007a7, Linux 57e2e42ccd3cd6183228269715ed032f44536751, Linux 36695d5eeeefe5a64b47d0336e7c8fc144e78182, Linux 61a348857e869432e6a920ad8ea9132e8d44c316, Linux 3.17, Linux 4.5

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26715 being exploited?

There is no confirmed exploitation: CVE-2024-26715 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26715?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26715?

Linux \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< 88936ceab6b426f1312327e9ef849c215c6007a7; \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< 57e2e42ccd3cd6183228269715ed032f44536751; \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< c7ebd8149ee519d27232e6e4940e9c02071b568b; \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< 36695d5eeeefe5a64b47d0336e7c8fc144e78182; \>= 9772b47a4c2916d645c551228b6085ea24acbe5d, \< 61a348857e869432e6a920ad8ea9132e8d44c316; 8cca5c85393a7a490d4d7942c24d73d29cc77b3e; df2ca3271569367352835f981618e284fdc4ca94; \>= 3.16.81, \< 3.17; \>= 4.4.178, \< 4.5; Linux 4.6.

### Is there a fix for CVE-2024-26715?

Yes. Fixed in Linux 88936ceab6b426f1312327e9ef849c215c6007a7, Linux 57e2e42ccd3cd6183228269715ed032f44536751, Linux 36695d5eeeefe5a64b47d0336e7c8fc144e78182, Linux 61a348857e869432e6a920ad8ea9132e8d44c316, Linux 3.17, Linux 4.5. Upgrade Linux to 4.5 or later.

### How do I check if I'm affected by CVE-2024-26715?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/88936ceab6b426f1312327e9ef849c215c6007a7>
- patch: <https://git.kernel.org/stable/c/57e2e42ccd3cd6183228269715ed032f44536751>
- patch: <https://git.kernel.org/stable/c/c7ebd8149ee519d27232e6e4940e9c02071b568b>
- patch: <https://git.kernel.org/stable/c/36695d5eeeefe5a64b47d0336e7c8fc144e78182>
- patch: <https://git.kernel.org/stable/c/61a348857e869432e6a920ad8ea9132e8d44c316>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26715>

HTML: <https://flawdb.com/CVE-2024-26715> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26715>
