Skip to main content

CVE-2021-47270: Vulnerability in Linux Linux

Medium
VulnerabilityCVE-2021-47270cvecve-2021-47270
Published: Tue May 21 2024 (05/21/2024, 14:19:59 UTC)
Source: CVE
Vendor/Project: Linux
Product: Linux

Description

In the Linux kernel, the following vulnerability has been resolved: usb: fix various gadgets null ptr deref on 10gbps cabling. This avoids a null pointer dereference in f_{ecm,eem,hid,loopback,printer,rndis,serial,sourcesink,subset,tcm} by simply reusing the 5gbps config for 10gbps.

AI-Powered Analysis

AILast updated: 06/26/2025, 12:21:39 UTC

Technical Analysis

CVE-2021-47270 is a vulnerability identified in the Linux kernel related to USB gadget drivers. Specifically, the issue involves a null pointer dereference occurring when handling 10 Gbps USB cabling configurations. The affected components include multiple USB gadget functions such as Ethernet Control Model (ecm), Ethernet Emulation Model (eem), Human Interface Device (hid), loopback, printer, Remote Network Driver Interface Specification (rndis), serial, sourcesink, subset, and TCM. The root cause is the improper handling of 10 Gbps USB configurations, where the kernel code failed to correctly reuse the 5 Gbps configuration parameters for the higher speed, leading to a null pointer dereference. This flaw can cause the kernel to crash or become unstable when interacting with USB devices operating at 10 Gbps speeds, potentially leading to denial of service (DoS) conditions. The vulnerability was addressed by modifying the kernel to reuse the 5 Gbps configuration for 10 Gbps, thereby preventing the null pointer dereference. The affected versions are identified by a specific commit hash, indicating that this vulnerability impacts certain Linux kernel builds prior to the patch. There are no known exploits in the wild at the time of publication, and no CVSS score has been assigned yet. The vulnerability does not require user interaction but does require the presence of USB devices operating at 10 Gbps speeds and the use of the affected USB gadget drivers.

Potential Impact

For European organizations, this vulnerability primarily poses a risk of denial of service through kernel crashes on systems using affected Linux kernel versions with USB gadget drivers handling 10 Gbps USB devices. Organizations relying on Linux servers, embedded systems, or network appliances that utilize USB gadget functionality—especially those employing high-speed USB 3.1 or later devices—may experience system instability or outages. This could disrupt critical services, particularly in sectors such as telecommunications, industrial control, and data centers where Linux-based systems are prevalent. Although the vulnerability does not appear to allow privilege escalation or remote code execution, the resulting system crashes could impact availability and operational continuity. Given the widespread use of Linux in European infrastructure and enterprise environments, unpatched systems could face increased risk of service interruptions. However, the absence of known exploits and the requirement for specific hardware configurations somewhat limit the immediate threat level.

Mitigation Recommendations

European organizations should prioritize updating their Linux kernel to the latest patched versions that address CVE-2021-47270. Specifically, they should ensure that all systems using USB gadget drivers and supporting 10 Gbps USB devices are running kernel versions that include the fix which reuses the 5 Gbps configuration for 10 Gbps connections. For embedded and specialized devices where kernel updates may be slower, organizations should assess the necessity of 10 Gbps USB gadget functionality and consider disabling or restricting USB gadget drivers if not required. Additionally, monitoring kernel logs for null pointer dereference errors related to USB gadgets can help detect attempts to trigger this vulnerability. Organizations should also implement strict USB device control policies to limit the connection of untrusted or unnecessary high-speed USB devices to critical systems. Finally, maintaining robust backup and recovery procedures will help mitigate the impact of potential denial of service incidents caused by this vulnerability.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
Linux
Date Reserved
2024-05-21T13:27:52.127Z
Cisa Enriched
true
Cvss Version
null
State
PUBLISHED

Threat ID: 682d9835c4522896dcbea27c

Added to database: 5/21/2025, 9:09:09 AM

Last enriched: 6/26/2025, 12:21:39 PM

Last updated: 8/15/2025, 10:53:06 AM

Views: 12

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats