# CVE-2026-90020: USB: gadget: fix NULL pointer dereference in gadget\_dev\_ioctl()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-09-16T10:33:24.866Z
- **Modified:** 2026-10-19T09:18:50.043Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8be30959be31b4205e3bdd2e2a6221f3a2ee7ea1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e8219accce2f6d3502ed71f5b5e854ecf27249a6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 87cbf9410b12f5c2d659bb01e8ecf6517cb9f28c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 162178ca83c3de986900385a0477eb539f8e1a7e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ebd916fdfefaacbc0e577f7037ec96b31a105e5f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c29a83c1ff3f06d5751f6d365b606c9f81ccc4cb; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 64ec019bf9a8b12f53b9f2777d65aadb730b5a84; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dd0eed9e165b1a6292f49e622e3dd0b7d99b106d
- Anyone running Linux 2.6.12

## Description

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

USB: gadget: fix NULL pointer dereference in gadget\_dev\_ioctl()

gadget\_dev\_ioctl() reads dev-\>gadget before acquiring dev-\>lock, but
dev-\>state is checked after acquiring the lock. Therefore a concurrent
bind can change the device state between these operations, which can
leave ioctl with a stale NULL gadget pointer and causing a NULL pointer
dereference at gadget-\>ops-\>ioctl.

Read dev-\>gadget while holding dev-\>lock so that the gadget pointer
and device state are sampled consistently.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8be30959be31b4205e3bdd2e2a6221f3a2ee7ea1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e8219accce2f6d3502ed71f5b5e854ecf27249a6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 87cbf9410b12f5c2d659bb01e8ecf6517cb9f28c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 162178ca83c3de986900385a0477eb539f8e1a7e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ebd916fdfefaacbc0e577f7037ec96b31a105e5f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c29a83c1ff3f06d5751f6d365b606c9f81ccc4cb; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 64ec019bf9a8b12f53b9f2777d65aadb730b5a84; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dd0eed9e165b1a6292f49e622e3dd0b7d99b106d (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-90020.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 8be30959be31b4205e3bdd2e2a6221f3a2ee7ea1; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e8219accce2f6d3502ed71f5b5e854ecf27249a6; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 87cbf9410b12f5c2d659bb01e8ecf6517cb9f28c; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 8be30959be31b4205e3bdd2e2a6221f3a2ee7ea1, Linux 87cbf9410b12f5c2d659bb01e8ecf6517cb9f28c, Linux 162178ca83c3de986900385a0477eb539f8e1a7e, Linux 64ec019bf9a8b12f53b9f2777d65aadb730b5a84

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-2026-90020 being exploited?

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

### How serious is CVE-2026-90020?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-90020?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8be30959be31b4205e3bdd2e2a6221f3a2ee7ea1; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e8219accce2f6d3502ed71f5b5e854ecf27249a6; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 87cbf9410b12f5c2d659bb01e8ecf6517cb9f28c; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 162178ca83c3de986900385a0477eb539f8e1a7e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ebd916fdfefaacbc0e577f7037ec96b31a105e5f; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c29a83c1ff3f06d5751f6d365b606c9f81ccc4cb; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 64ec019bf9a8b12f53b9f2777d65aadb730b5a84; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< dd0eed9e165b1a6292f49e622e3dd0b7d99b106d; Linux 2.6.12.

### Is there a fix for CVE-2026-90020?

Yes. Fixed in Linux 8be30959be31b4205e3bdd2e2a6221f3a2ee7ea1, Linux 87cbf9410b12f5c2d659bb01e8ecf6517cb9f28c, Linux 162178ca83c3de986900385a0477eb539f8e1a7e, Linux 64ec019bf9a8b12f53b9f2777d65aadb730b5a84. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-90020?

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

- other: <https://git.kernel.org/stable/c/8be30959be31b4205e3bdd2e2a6221f3a2ee7ea1>
- other: <https://git.kernel.org/stable/c/e8219accce2f6d3502ed71f5b5e854ecf27249a6>
- other: <https://git.kernel.org/stable/c/87cbf9410b12f5c2d659bb01e8ecf6517cb9f28c>
- other: <https://git.kernel.org/stable/c/162178ca83c3de986900385a0477eb539f8e1a7e>
- other: <https://git.kernel.org/stable/c/ebd916fdfefaacbc0e577f7037ec96b31a105e5f>
- other: <https://git.kernel.org/stable/c/c29a83c1ff3f06d5751f6d365b606c9f81ccc4cb>
- other: <https://git.kernel.org/stable/c/64ec019bf9a8b12f53b9f2777d65aadb730b5a84>
- other: <https://git.kernel.org/stable/c/dd0eed9e165b1a6292f49e622e3dd0b7d99b106d>

## 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-2026-90020>

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