PT-2021-8223 · Linux+7 · Linux Kernel+7

Syzbot

·

Published

2021-09-14

·

Updated

2026-03-14

·

CVE-2021-47582

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 5.14.0-rc7-syzkaller
Description The issue is related to the USB core in the Linux kernel, where the usb start wait urb() function contains an uninterruptible wait with a user-specified timeout value. If the timeout value is very large and the device being accessed does not respond in a reasonable amount of time, the kernel will complain about "Task X blocked for more than N seconds". This problem can be fixed by replacing usbfs's calls to usb control msg() and usb bulk msg() with special-purpose code that always uses a killable wait and uses GFP KERNEL rather than GFP NOIO.
Recommendations To resolve the issue, update the Linux kernel to a version that includes the patch for this problem. Specifically, the patch replaces usbfs's calls to usb control msg() and usb bulk msg() with special-purpose code that does essentially the same thing, except that it always uses a killable wait and it uses GFP KERNEL rather than GFP NOIO. As a temporary workaround, consider disabling the do proc control() and do proc bulk() functions until a patch is available. Additionally, setting echo 0 > /proc/sys/kernel/hung task timeout secs can disable the "Task X blocked for more than N seconds" message.

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2024:7000
ALSA-2024:7001
BDU:2024-11536
CESA-2024_7000
CESA-2024_7001
CVE-2021-47582
INFSA-2024_7000
INFSA-2024_7001
OESA-2024-1992
OESA-2024-1994
OESA-2024-1995
OPENSUSE-SU-2024_2372-1
OPENSUSE-SU-2024_2394-1
RHSA-2024:7000
RHSA-2024:7001
RHSA-2024_7000
RHSA-2024_7001
RLSA-2024:7001
SUSE-SU-2024:2372-1
SUSE-SU-2024:2394-1
SUSE-SU-2024:2892-1
SUSE-SU-2024:2901-1
SUSE-SU-2024:2902-1
SUSE-SU-2024:2929-1
SUSE-SU-2024:2939-1
SUSE-SU-2024:2940-1

Affected Products

Almalinux
Centos
Debian
Linux Kernel
Red Hat
Red Os
Rocky Linux
Suse