CVE-2021-47582
Linux Kernel vulnerability analysis and mitigation

Overview

The vulnerability CVE-2021-47582 affects the Linux kernel's USB core subsystem. The issue involves the USBDEVFSCONTROL and USBDEVFSBULK ioctls which invoke usbstartwait_urb() containing an uninterruptible wait with a user-specified timeout value. This vulnerability was discovered and disclosed in 2021 (Kernel Git).

Technical details

The vulnerability occurs when a large timeout value is specified and the accessed device does not respond in a reasonable timeframe. This results in the kernel complaining about 'Task X blocked for more than N seconds'. The issue specifically manifests in the doproccontrol() and doprocbulk() functions within the USB core subsystem (Kernel Git).

Impact

When exploited, this vulnerability can cause tasks to become blocked for extended periods, potentially leading to system responsiveness issues. The blocking condition occurs in an uninterruptible state, meaning the task cannot be killed or interrupted until the timeout expires or the device responds (NVD).

Mitigation and workarounds

The issue has been fixed by replacing usbfs's calls to usbcontrolmsg() and usbbulkmsg() with special-purpose code that uses a killable wait and GFPKERNEL rather than GFPNOIO. The fix has been implemented in the Linux kernel and is available through various distribution updates (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40258HIGH7
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-devel-matched
NoNoDec 04, 2025
CVE-2025-40259MEDIUM6.2
  • Linux KernelLinux Kernel
  • kernel-64k-devel
NoNoDec 04, 2025
CVE-2025-40264MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-rt-64k-debug-kvm
NoNoDec 04, 2025
CVE-2025-40254MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-modules-partner
NoNoDec 04, 2025
CVE-2025-40253MEDIUM5.5
  • Linux KernelLinux Kernel
  • python3-perf
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management