From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B9C35867EA for ; Fri, 11 Sep 2026 19:59:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156791; cv=none; b=M/Dxh+uHySYXZaZCrqPpKuj8TNv7t3+XCYW+54McbNCXxFvFj43o8/ygkuqrzZE7V9uzHJONIcCXN40d00kqQwWJHLAkkbiweNKUZctVnSCpSgfJcq1mW+YASaQ8C81olRz0jmoN02Sut6GFpwDebNnBhmLcDy1RYVH/unV0LOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156791; c=relaxed/simple; bh=8HzUKHWhKazumIgkEiIG/LvJIqrFBc6NAnDlZarLMzY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bbsj1wdtKYbL5kpgx4kQJobeA6npqmIx7CY5urc06zTB2ELaGNQ/8+gaRGlGzSZUjZ2wnRVKg8n0ML+j5TdbgTEKR/Yrl53SMpUDDtGWYEgPmgmkSsk/0L900pg/RRn8Qdxfj3Ct82tAp0WTsvjy6C1qiNUhJeG4VpqFcycfMLc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=EXukjVWh; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="EXukjVWh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48E5F1F00893; Fri, 11 Sep 2026 19:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156783; bh=7oxdaNrS5AsIteuJ6F86nTv7U73/87TRGh83ko8nQ5Q=; h=From:To:Cc:Subject:Date:Reply-To; b=EXukjVWhX06Ct+66J+wMD8IC5KLhuWTsyDbol9yizVCgGmjn+gkdUlZvPhVRPy0Sj RbHXNGXr7UR/2rZHgB2hRsCLbtR1Lr8HoRh/VBRCZjcrWaAbkzAV+J7PQTHX4Yt7N8 1zfa/473BRjfEWNtHNoEEHlot8ELor1nry8USZy4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89625: HID: sony: fix UAF of ghl_poke_timer / ghl_urb at driver unbind Date: Fri, 11 Sep 2026 21:45:14 +0200 Message-ID: <2026091138-CVE-2026-89625-7340@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4351; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1yLVFOMN3Yeg3lYz9Xfsn2Y3pl/p3OcrA2iQN9HM3jQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIosOG5Xf6F99/5RBpaDolRlH2llkMif4OxzbpHRhs 3Bc0qX0jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIkjUMc8W53H1feGtLdE2r 3Vxtm5ggOv0NJ8NcSY+fuiFXvzvsT3jHEXvNvOeZ9jdlAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: HID: sony: fix UAF of ghl_poke_timer / ghl_urb at driver unbind For GHL (Guitar Hero Live) dongles, sony_probe() arms a periodic timer: ghl_magic_poke() (the timer callback) submits sc->ghl_urb, and the URB completion ghl_magic_poke_cb() re-arms the timer with mod_timer(). sony_remove() drained the timer with timer_delete_sync() and then freed the URB with usb_free_urb(): timer_delete_sync(&sc->ghl_poke_timer); usb_free_urb(sc->ghl_urb); timer_delete_sync() 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 usb_free_urb() only drops a reference -- it does not kill an in-flight URB. sc is allocated with devm_kzalloc() and freed once sony_remove() returns, so the re-armed ghl_poke_timer (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. usb_poison_urb() kills any in-flight URB and permanently rejects further submissions, so a poke timer that is still pending cannot re-submit the URB from ghl_magic_poke() in the window before timer_shutdown_sync() runs. usb_kill_urb() 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. timer_shutdown_sync() 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 dummy_hcd + 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 ghl_magic_poke+0x98/0xb0 Read of size 8 at addr ffff88810b02fd50 by task swapper/0/0 ghl_magic_poke+0x98/0xb0 call_timer_fn+0x35/0x2b0 __run_timers+0x69c/0x9a0 run_timer_softirq+0x173/0x2a0 Allocated by task 169: sony_probe Freed by task 338: devres_release_group <- hid_device_remove (sony_remove) Found by 0sec (https://0sec.ai) using automated source analysis. The Linux kernel CVE team has assigned CVE-2026-89625 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit cc894ac553605c9193a7a94372ff2f8af5766f46 and fixed in 6.18.50 with commit 114a58640aaf3c2eb97b5b01c75ab5e541d15d9c Issue introduced in 5.11 with commit cc894ac553605c9193a7a94372ff2f8af5766f46 and fixed in 7.2.4 with commit 3155dc327344d286f17345cd371be05e255a4328 Issue introduced in 5.11 with commit cc894ac553605c9193a7a94372ff2f8af5766f46 and fixed in 7.3-rc1 with commit a26705bd2e2728833e7a538ce91e58a5eeff496a Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-89625 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/hid/hid-sony.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/114a58640aaf3c2eb97b5b01c75ab5e541d15d9c https://git.kernel.org/stable/c/3155dc327344d286f17345cd371be05e255a4328 https://git.kernel.org/stable/c/a26705bd2e2728833e7a538ce91e58a5eeff496a