CVE-2024-50100: USB: gadget: dummy-hcd: Fix "task hung" problem
In the Linux kernel, the following vulnerability has been resolved:
USB: gadget: dummy-hcd: Fix "task hung" problem
The syzbot fuzzer has been encountering "task hung" problems ever since the dummy-hcd driver was changed to use hrtimers instead of regular timers. It turns out that the problems are caused by a subtle difference between the timerpending() and hrtimeractive() APIs.
The changeover blindly replaced the first by the second. However, timerpending() returns True when the timer is queued but not when its callback is running, whereas hrtimeractive() returns True when the hrtimer is queued or its callback is running. This difference occasionally caused dummyurbenqueue() to think that the callback routine had not yet started when in fact it was almost finished. As a result the hrtimer was not restarted, which made it impossible for the driver to dequeue later the URB that was just enqueued. This caused usbkillurb() to hang, and things got worse from there.
Since hrtimers have no API for telling when they are queued and the callback isn't running, the driver must keep track of this for itself. That's what this patch does, adding a new "timerpending" flag and setting or clearing it at the appropriate times.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50100?
CVE-2024-50100 is classified as a moderate severity vulnerability affecting the Linux kernel.
How do I fix CVE-2024-50100?
To resolve CVE-2024-50100, upgrade to the patched versions: 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.128-1, 6.12.12-1, or 6.12.15-1.
Which versions of the Linux kernel are affected by CVE-2024-50100?
CVE-2024-50100 affects Linux kernel versions from 6.10 up to 6.11.5 and also includes release candidates 6.12-rc1, 6.12-rc2, and 6.12-rc3.
What type of issue does CVE-2024-50100 address?
CVE-2024-50100 resolves a 'task hung' problem related to the dummy-hcd driver in the Linux kernel.
Is CVE-2024-50100 related to any specific component of the Linux kernel?
Yes, CVE-2024-50100 specifically addresses issues within the USB gadget subsystem of the Linux kernel.