CVE-2026-90020
USB: gadget: fix NULL pointer dereference in gadget_dev_ioctl()
Check your servers for CVE-2026-90020
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-90020 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.25% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 8be30959be31b4205e3bdd2e2a6221f3a2ee7ea1 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before e8219accce2f6d3502ed71f5b5e854ecf27249a6 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 87cbf9410b12f5c2d659bb01e8ecf6517cb9f28c affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 162178ca83c3de986900385a0477eb539f8e1a7e affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before ebd916fdfefaacbc0e577f7037ec96b31a105e5f affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before c29a83c1ff3f06d5751f6d365b606c9f81ccc4cb affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 64ec019bf9a8b12f53b9f2777d65aadb730b5a84 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before dd0eed9e165b1a6292f49e622e3dd0b7d99b106d
Other versions: unaffected
|
| Linux |
affected 2.6.12 unaffected before 2.6.12 unaffected from 5.10.270 up to and including 5.10.* unaffected from 5.15.221 up to and including 5.15.* unaffected from 6.1.188 up to and including 6.1.* unaffected from 6.6.157 up to and including 6.6.* unaffected from 6.12.110 up to and including 6.12.* unaffected from 6.18.51 up to and including 6.18.* unaffected from 7.2.5 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-90020 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-90020
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-90020
trivy image --scanners vuln IMAGE | grep CVE-2026-90020
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/8be30959be31b4205e3bdd2e2a6221f3a2ee7ea1 git.kernel.org
- https://git.kernel.org/stable/c/e8219accce2f6d3502ed71f5b5e854ecf27249a6 git.kernel.org
- https://git.kernel.org/stable/c/87cbf9410b12f5c2d659bb01e8ecf6517cb9f28c git.kernel.org
- https://git.kernel.org/stable/c/162178ca83c3de986900385a0477eb539f8e1a7e git.kernel.org
- https://git.kernel.org/stable/c/ebd916fdfefaacbc0e577f7037ec96b31a105e5f git.kernel.org
- https://git.kernel.org/stable/c/c29a83c1ff3f06d5751f6d365b606c9f81ccc4cb git.kernel.org
- https://git.kernel.org/stable/c/64ec019bf9a8b12f53b9f2777d65aadb730b5a84 git.kernel.org
- https://git.kernel.org/stable/c/dd0eed9e165b1a6292f49e622e3dd0b7d99b106d git.kernel.org
Source: the record CVE-2026-90020 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse