CVE-2021-47267
usb: fix various gadget panics on 10gbps cabling
Check your servers for CVE-2021-47267
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-2021-47267 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: fix various gadget panics on 10gbps cabling
usb_assign_descriptors() is called with 5 parameters, the last 4 of which are the usb_descriptor_header for: full-speed (USB1.1 - 12Mbps [including USB1.0 low-speed @ 1.5Mbps), high-speed (USB2.0 - 480Mbps), super-speed (USB3.0 - 5Gbps), super-speed-plus (USB3.1 - 10Gbps).
The differences between full/high/super-speed descriptors are usually substantial (due to changes in the maximum usb block size from 64 to 512 to 1024 bytes and other differences in the specs), while the difference between 5 and 10Gbps descriptors may be as little as nothing (in many cases the same tuning is simply good enough).
However if a gadget driver calls usb_assign_descriptors() with a NULL descriptor for super-speed-plus and is then used on a max 10gbps configuration, the kernel will crash with a null pointer dereference, when a 10gbps capable device port + cable + host port combination shows up. (This wouldn't happen if the gadget max-speed was set to 5gbps, but it of course defaults to the maximum, and there's no real reason to artificially limit it)
The fix is to simply use the 5gbps descriptor as the 10gbps descriptor, if a 10gbps descriptor wasn't provided.
Obviously this won't fix the problem if the 5gbps descriptor is also NULL, but such cases can't be so trivially solved (and any such gadgets are unlikely to be used with USB3 ports any way).
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity low, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.68%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 53.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 21 May 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 10287baec761d33f0a82d84b46e37a44030350d8, before fd24be23abf3e94260be0f00bb42c7e91d495f87 affected from 10287baec761d33f0a82d84b46e37a44030350d8, before 70cd19cb5bd94bbb5bacfc9c1e4ee0071699a604 affected from 10287baec761d33f0a82d84b46e37a44030350d8, before 45f9a2fe737dc0a5df270787f2231aee8985cd59 affected from 10287baec761d33f0a82d84b46e37a44030350d8, before 5ef23506695b01d5d56a13a092a97f2478069d75 affected from 10287baec761d33f0a82d84b46e37a44030350d8, before b972eff874637402ddc4a7dd11fb22538a0b6d28 affected from 10287baec761d33f0a82d84b46e37a44030350d8, before ca6bc277430d90375452b60b047763a090b7673e affected from 10287baec761d33f0a82d84b46e37a44030350d8, before 032e288097a553db5653af552dd8035cd2a0ba96
Other versions: unaffected
|
| Linux |
affected 3.8 unaffected before 3.8 unaffected from 4.9.273 up to and including 4.9.* unaffected from 4.14.237 up to and including 4.14.* unaffected from 4.19.195 up to and including 4.19.* unaffected from 5.4.126 up to and including 5.4.* unaffected from 5.10.44 up to and including 5.10.* unaffected from 5.12.11 up to and including 5.12.* unaffected 5.13 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-2021-47267 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47267
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-2021-47267
trivy image --scanners vuln IMAGE | grep CVE-2021-47267
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/fd24be23abf3e94260be0f00bb42c7e91d495f87 git.kernel.org
- https://git.kernel.org/stable/c/70cd19cb5bd94bbb5bacfc9c1e4ee0071699a604 git.kernel.org
- https://git.kernel.org/stable/c/45f9a2fe737dc0a5df270787f2231aee8985cd59 git.kernel.org
- https://git.kernel.org/stable/c/5ef23506695b01d5d56a13a092a97f2478069d75 git.kernel.org
- https://git.kernel.org/stable/c/b972eff874637402ddc4a7dd11fb22538a0b6d28 git.kernel.org
- https://git.kernel.org/stable/c/ca6bc277430d90375452b60b047763a090b7673e git.kernel.org
- https://git.kernel.org/stable/c/032e288097a553db5653af552dd8035cd2a0ba96 git.kernel.org
Source: the record CVE-2021-47267 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse