# CVE-2024-50100: USB: gadget: dummy-hcd: Fix "task hung" problem

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-11-05T17:07:37.997Z
- Modified: 2026-06-17T08:03:35.210Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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 timer_pending() and hrtimer_active() APIs.

The changeover blindly replaced the first by the second.  However,
timer_pending() returns True when the timer is queued but not when its
callback is running, whereas hrtimer_active() returns True when the
hrtimer is queued _or_ its callback is running.  This difference
occasionally caused dummy_urb_enqueue() 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
usb_kill_urb() 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 "timer_pending" flag and
setting or clearing it at the appropriate times.

(As written by CVE List.)

## Affected

- Linux Linux: from 8ffba8d917f44a8acbfccbdec331204353ac8ac8 before cf7ee2291da551fc4b109fda1f6a332cb8212065; from 4a4cb56556124027f4846ff30849c0ede981aa92 before 7d85884576a3be3616c260fc1fa862a59579d1ab; from a7f3813e589fd8e2834720829a47b5eb914a9afe before f828205ee3e4ddc712a13fba6c9902d51e91ddaf; from a7f3813e589fd8e2834720829a47b5eb914a9afe before 5189df7b8088268012882c220d6aca4e64981348; 6.10 (not affected: before 6.10; from 6.11.5 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 6.10 before 6.11.5; 6.12

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/cf7ee2291da551fc4b109fda1f6a332cb8212065> (patch)
- <https://git.kernel.org/stable/c/7d85884576a3be3616c260fc1fa862a59579d1ab> (patch)
- <https://git.kernel.org/stable/c/f828205ee3e4ddc712a13fba6c9902d51e91ddaf> (patch)
- <https://git.kernel.org/stable/c/5189df7b8088268012882c220d6aca4e64981348> (patch)

## Sources

- CVE List: [CVE-2024-50100](https://www.cve.org/CVERecord?id=CVE-2024-50100), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-50100](https://nvd.nist.gov/vuln/detail/CVE-2024-50100), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-50100 · Whole record: https://cve.day/CVE-2024-50100.json · Rebuilt by cve.day 2026-11-25T22:58:47.774Z
