UBUNTU-CVE-2026-89625: Use After Free
In the Linux kernel, the following vulnerability has been resolved: HID: sony: fix UAF of ghlpoketimer / ghlurb at driver unbind For GHL (Guitar Hero Live) dongles, sonyprobe() arms a periodic timer: ghlmagicpoke() (the timer callback) submits sc->ghlurb, and the URB completion ghlmagicpokecb() re-arms the timer with modtimer(). sonyremove() drained the timer with timerdeletesync() and then freed the URB with usbfreeurb(): timerdeletesync(&sc->ghlpoketimer); usbfreeurb(sc->ghlurb); timerdeletesync() does not block re-arming, and while the URB is in flight the timer is not pending, so the sync delete is a no-op. A URB completion that runs after the delete re-arms the timer, and usbfreeurb() only drops a reference -- it does not kill an in-flight URB. sc is allocated with devmkzalloc() and freed once sonyremove() returns, so the re-armed ghlpoketimer (embedded in sc) then fires on freed memory, a use-after-free from timer softirq. This is a disconnect/rmmod race. Poison the URB first, then shut the timer down, before freeing the URB. usbpoisonurb() kills any in-flight URB and permanently rejects further submissions, so a poke timer that is still pending cannot re-submit the URB from ghlmagicpoke() in the window before timershutdownsync() runs. usbkillurb() would not suffice: it only cancels the in-flight URB and leaves it submittable once it returns, so the pending timer could re-submit it and put a fresh URB in flight over the freed sc. timershutdownsync() then drains any last callback and blocks re-arming. The probe error path is unaffected: it is only reached before the timer is armed. Reproduced under KASAN on next-20260710 via dummyhcd + raw-gadget emulation of the GHL PS4 dongle (VID 0x1430 / PID 0x07bb): hid-sony binds and arms the poke timer, the poke URB is held in flight, the driver is unbound (freeing sc), then the URB is released. The completion re-arms the timer on the freed sc, and the re-armed timer fires ~8 s later: BUG: KASAN: slab-use-after-free in ghlmagicpoke+0x98/0xb0 Read of size 8 at addr ffff88810b02fd50 by task swapper/0/0 ghlmagicpoke+0x98/0xb0 calltimerfn+0x35/0x2b0 runtimers+0x69c/0x9a0 runtimersoftirq+0x173/0x2a0 Allocated by task 169: sonyprobe Freed by task 338: devresreleasegroup <- hiddeviceremove (sonyremove) Found by 0sec (https://0sec.ai) using automated source analysis.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1 - Compensating control
In the HID Sony driver cleanup path, call usb_poison_urb(sc->ghl_urb) before timer_shutdown_sync(&sc->ghl_poke_timer), then free the URB; replace timer_delete_sync() because it does not prevent the completion callback from re-arming the timer.