{"id":"CVE-2026-89625","aliases":["CVE-2026-89625"],"related":[],"kind":"vulnerability","state":"published","title":"HID: sony: fix UAF of ghl_poke_timer / ghl_urb at driver unbind","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: sony: fix UAF of ghl_poke_timer / ghl_urb at driver unbind\n\nFor GHL (Guitar Hero Live) dongles, sony_probe() arms a periodic timer:\nghl_magic_poke() (the timer callback) submits sc->ghl_urb, and the URB\ncompletion ghl_magic_poke_cb() re-arms the timer with mod_timer().\n\nsony_remove() drained the timer with timer_delete_sync() and then freed\nthe URB with usb_free_urb():\n\n\ttimer_delete_sync(&sc->ghl_poke_timer);\n\tusb_free_urb(sc->ghl_urb);\n\ntimer_delete_sync() does not block re-arming, and while the URB is in\nflight the timer is not pending, so the sync delete is a no-op. A URB\ncompletion that runs after the delete re-arms the timer, and usb_free_urb()\nonly drops a reference -- it does not kill an in-flight URB. sc is\nallocated with devm_kzalloc() and freed once sony_remove() returns, so the\nre-armed ghl_poke_timer (embedded in sc) then fires on freed memory, a\nuse-after-free from timer softirq. This is a disconnect/rmmod race.\n\nPoison the URB first, then shut the timer down, before freeing the URB.\nusb_poison_urb() kills any in-flight URB and permanently rejects further\nsubmissions, so a poke timer that is still pending cannot re-submit the\nURB from ghl_magic_poke() in the window before timer_shutdown_sync() runs.\nusb_kill_urb() would not suffice: it only cancels the in-flight URB and\nleaves it submittable once it returns, so the pending timer could\nre-submit it and put a fresh URB in flight over the freed sc.\ntimer_shutdown_sync() then drains any last callback and blocks re-arming.\nThe probe error path is unaffected: it is only reached before the timer\nis armed.\n\nReproduced under KASAN on next-20260710 via dummy_hcd + raw-gadget\nemulation of the GHL PS4 dongle (VID 0x1430 / PID 0x07bb): hid-sony binds\nand arms the poke timer, the poke URB is held in flight, the driver is\nunbound (freeing sc), then the URB is released. The completion re-arms the\ntimer on the freed sc, and the re-armed timer fires ~8 s later:\n\n  BUG: KASAN: slab-use-after-free in ghl_magic_poke+0x98/0xb0\n  Read of size 8 at addr ffff88810b02fd50 by task swapper/0/0\n   ghl_magic_poke+0x98/0xb0\n   call_timer_fn+0x35/0x2b0\n   __run_timers+0x69c/0x9a0\n   run_timer_softirq+0x173/0x2a0\n  Allocated by task 169:  sony_probe\n  Freed by task 338:      devres_release_group <- hid_device_remove (sony_remove)\n\nFound by 0sec (https://0sec.ai) using automated source analysis.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: sony: fix UAF of ghl_poke_timer / ghl_urb at driver unbind\n\nFor GHL (Guitar Hero Live) dongles, sony_probe() arms a periodic timer:\nghl_magic_poke() (the timer callback) submits sc->ghl_urb, and the URB\ncompletion ghl_magic_poke_cb() re-arms the timer with mod_timer().\n\nsony_remove() drained the timer with timer_delete_sync() and then freed\nthe URB with usb_free_urb():\n\n\ttimer_delete_sync(&sc->ghl_poke_timer);\n\tusb_free_urb(sc->ghl_urb);\n\ntimer_delete_sync() does not block re-arming, and while the URB is in\nflight the timer is not pending, so the sync delete is a no-op. A URB\ncompletion that runs after the delete re-arms the timer, and usb_free_urb()\nonly drops a reference -- it does not kill an in-flight URB. sc is\nallocated with devm_kzalloc() and freed once sony_remove() returns, so the\nre-armed ghl_poke_timer (embedded in sc) then fires on freed memory, a\nuse-after-free from timer softirq. This is a disconnect/rmmod race.\n\nPoison the URB first, then shut the timer down, before freeing the URB.\nusb_poison_urb() kills any in-flight URB and permanently rejects further\nsubmissions, so a poke timer that is still pending cannot re-submit the\nURB from ghl_magic_poke() in the window before timer_shutdown_sync() runs.\nusb_kill_urb() would not suffice: it only cancels the in-flight URB and\nleaves it submittable once it returns, so the pending timer could\nre-submit it and put a fresh URB in flight over the freed sc.\ntimer_shutdown_sync() then drains any last callback and blocks re-arming.\nThe probe error path is unaffected: it is only reached before the timer\nis armed.\n\nReproduced under KASAN on next-20260710 via dummy_hcd + raw-gadget\nemulation of the GHL PS4 dongle (VID 0x1430 / PID 0x07bb): hid-sony binds\nand arms the poke timer, the poke URB is held in flight, the driver is\nunbound (freeing sc), then the URB is released. The completion re-arms the\ntimer on the freed sc, and the re-armed timer fires ~8 s later:\n\n  BUG: KASAN: slab-use-after-free in ghl_magic_poke+0x98/0xb0\n  Read of size 8 at addr ffff88810b02fd50 by task swapper/0/0\n   ghl_magic_poke+0x98/0xb0\n   call_timer_fn+0x35/0x2b0\n   __run_timers+0x69c/0x9a0\n   run_timer_softirq+0x173/0x2a0\n  Allocated by task 169:  sony_probe\n  Freed by task 338:      devres_release_group <- hid_device_remove (sony_remove)\n\nFound by 0sec (https://0sec.ai) using automated source analysis.","source":"cvelist"}],"published":"2026-09-11T19:45:22.097Z","modified":"2026-10-30T13:20:22.903Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"cc894ac553605c9193a7a94372ff2f8af5766f46","fixed":"9405e50a64b07d9c6216381d7eac5373e8ce5077","status":"affected"},{"type":"git","introduced":"cc894ac553605c9193a7a94372ff2f8af5766f46","fixed":"8c18db1d6618b37efdb819e35a44d16bfabf171b","status":"affected"},{"type":"git","introduced":"cc894ac553605c9193a7a94372ff2f8af5766f46","fixed":"56ef23198bdd51644372b1a9917802544b30987a","status":"affected"},{"type":"git","introduced":"cc894ac553605c9193a7a94372ff2f8af5766f46","fixed":"0e3d42ef008f0931e3878b4f1b046b6e45a95bde","status":"affected"},{"type":"git","introduced":"cc894ac553605c9193a7a94372ff2f8af5766f46","fixed":"114a58640aaf3c2eb97b5b01c75ab5e541d15d9c","status":"affected"},{"type":"git","introduced":"cc894ac553605c9193a7a94372ff2f8af5766f46","fixed":"3155dc327344d286f17345cd371be05e255a4328","status":"affected"},{"type":"git","introduced":"cc894ac553605c9193a7a94372ff2f8af5766f46","fixed":"a26705bd2e2728833e7a538ce91e58a5eeff496a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/9405e50a64b07d9c6216381d7eac5373e8ce5077","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8c18db1d6618b37efdb819e35a44d16bfabf171b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/56ef23198bdd51644372b1a9917802544b30987a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0e3d42ef008f0931e3878b4f1b046b6e45a95bde","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/114a58640aaf3c2eb97b5b01c75ab5e541d15d9c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3155dc327344d286f17345cd371be05e255a4328","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a26705bd2e2728833e7a538ce91e58a5eeff496a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89625","url":"https://www.cve.org/CVERecord?id=CVE-2026-89625","licence":"CVE Terms of Use","modified":"2026-10-30T12:32:20.618Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89625","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89625","licence":"Public domain","modified":"2026-10-30T13:20:22.903Z"}],"updatedAt":"2026-11-25T22:59:38.088Z","epss":{"score":0.00215,"percentile":0.06843,"date":"2026-11-30T12:00:22.000Z"}}