CVE-2026-90020

USB: gadget: fix NULL pointer dereference in gadget_dev_ioctl()

N/A
Published: September 16, 2026 at 10:33 AM UTC
Updated: October 19, 2026 at 09:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
N/A
Exploit prediction
EPSS 0.2%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Vendor states this is fixed in 162178ca83c3de986900385a0477eb539f8e1a7e (fixed)
Vendor states this is fixed in 64ec019bf9a8b12f53b9f2777d65aadb730b5a84 (fixed)
Vendor states this is fixed in 87cbf9410b12f5c2d659bb01e8ecf6517cb9f28c (fixed)
Vendor states this is fixed in 8be30959be31b4205e3bdd2e2a6221f3a2ee7ea1 (fixed)
Vendor states this is fixed in c29a83c1ff3f06d5751f6d365b606c9f81ccc4cb (fixed)
Vendor states this is fixed in dd0eed9e165b1a6292f49e622e3dd0b7d99b106d (fixed)
Vendor states this is fixed in e8219accce2f6d3502ed71f5b5e854ecf27249a6 (fixed)
Vendor states this is fixed in ebd916fdfefaacbc0e577f7037ec96b31a105e5f (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 5.10.270 (unaffected)
Vendor states this is fixed in 5.15.221 (unaffected)
Vendor states this is fixed in 6.1.188 (unaffected)
Vendor states this is fixed in 6.12.110 (unaffected)
Vendor states this is fixed in 6.18.51 (unaffected)
Vendor states this is fixed in 6.6.157 (unaffected)
Vendor states this is fixed in 7.2.5 (unaffected)
Vendor states this is fixed in 7.3 (unaffected)
Vendor states this is fixed in 7.3-rc2 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

Quick Info

StatusRECEIVED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card