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 E9AD358B6D5 for ; Fri, 11 Sep 2026 20:01:38 +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=1789156901; cv=none; b=iFbihCYMDrecsQ0/J1NOifmN82Clyams06e3ttgb4lEDwN7+ebIvMkK7pDseHhqPFMmy3gfYdF8a+ZvGdw+jZVsPUmmI1OFG5HKeuw3ssgLWCevoZCo535I+1RVaQOrUm2FsQk/4ZG4tL+8LLbECJGyy13MVsTV8NN3dJcWVcuw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156901; c=relaxed/simple; bh=YpCLKGD5SY0uJYp6big31AZHxVhNfIckyj+GaRJ0kD8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KaieLcRz5B6nLkjK7zivl9vZXbSLylTqRxRrwxeiZhJERQZznbvKPwP2BbCf7HsKB5mmWoLdTIcTDRvs9Yh4083edzplKHDjf5KBGapRGlZ7HPI0FuWYP421vcGXd+zwRJ3M3gocyPX8DtQ56RI8378kYGRz4xhP6RsD7qhwPRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L58Vhx2N; 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="L58Vhx2N" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04A0B1F000FF; Fri, 11 Sep 2026 20:01:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156898; bh=sVc+uwDg5FoEIEYAFCztdAwPT6niKY5vwQHNkCrCTkk=; h=From:To:Cc:Subject:Date:Reply-To; b=L58Vhx2Nuso03Zqxz2cU+0jJrhMAD4HMC/ylYchX8F6pqwGA/y9+VlBTqJGOOKK2H ZujgIpssXQ4jAYPwvfCpESGEKKqdcxkjGKXjzm9kwNhUNCaeLUIRACKUACX3ZilsBM HU62jWcM1p8LP6g0266iz0++u3AhpZh6vwQQan28= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89624: HID: universal-pidff: stop the device when force-feedback init fails Date: Fri, 11 Sep 2026 21:45:13 +0200 Message-ID: <2026091138-CVE-2026-89624-bb8b@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=4249; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0q8/uoS4ZKSjYCjja30QdBCWQ8V8G6QQ1zxNt0EUVRM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIos+6Jy/JVYivGR51LNMT3ue+mNWN+6wbDj+y6rV7 crKys7VHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRYE+GBVu5msM/+q4Sz3j2 8o53Dve7jg1f8xlms4tpPWArmqLNWLnCcJbBZJb4j8YRAA== 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: universal-pidff: stop the device when force-feedback init fails universal_pidff_probe() starts the device with hid_hw_start() and then, if force-feedback initialisation fails, returns the error through a label that only does "return error". The device is left started. The HID core does not unwind on the driver's behalf. __hid_device_probe() releases the devres group, closes the report and clears hdev->driver: if (ret) { devres_release_group(&hdev->dev, hdev->devres_group_id); hid_close_report(hdev); hdev->driver = NULL; } The hidraw character device that hid_hw_start() registered through hid_connect() is allocated with kzalloc() and added with cdev_device_add(), so it is not devres-managed and survives that. With hdev->driver NULL, hid_device_remove() skips hid_hw_stop() as well, because it only unwinds while a driver is still attached. The registration therefore outlives the device on both paths. Opening the surviving /dev/hidrawX writes into freed memory. KASAN reports a use-after-free write from hidraw_open() -> hid_hw_open() -> the transport's open callback, which takes a spinlock inside the freed object. A descriptor that carries a PID usage page and no input reports is enough: hidraw claims the device so hid_hw_start() succeeds, while hid->inputs stays empty so force-feedback init fails. The other failure returns in hid_pidff_init_with_quirks() - no output reports, an allocation failure, pidff_init_fields(), pidff_check_autocenter(), an unusable effect count, input_ff_create() - all reach the same label. Stop the device on that path. hid-dr.c and hid-emsff.c, which start the device with the same HID_CONNECT_DEFAULT & ~HID_CONNECT_FF mask, already do this. The two earlier gotos must keep returning without hid_hw_stop(), since neither has a started device, so give the path that fails after the start its own label. Discovered by XBOW, triaged by Baul Lee The Linux kernel CVE team has assigned CVE-2026-89624 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit f06bf8d94fffbb544b1cb5402c92e0a075f0d420 and fixed in 6.18.50 with commit 01d9874e84d3ab78fd212ad822412eb3af84497f Issue introduced in 6.15 with commit f06bf8d94fffbb544b1cb5402c92e0a075f0d420 and fixed in 7.2.4 with commit c457bb516b61edeab940235a011928e26925381e Issue introduced in 6.15 with commit f06bf8d94fffbb544b1cb5402c92e0a075f0d420 and fixed in 7.3-rc1 with commit ce08c5555cabcd444d8b77fa69a7cb68bb05f611 Issue introduced in 6.6.88 with commit c1fde337b317f0a226de92803288741c30799eb0 Issue introduced in 6.12.24 with commit f45f26a6b3e7260c129c7c6bb0ace63aeb7b3868 Issue introduced in 6.13.12 with commit af9f2471dfe5a48384f5b7f021a673fbc741465e Issue introduced in 6.14.3 with commit b797352954eee6dc084cfaed0659dea60adfb484 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-89624 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-universal-pidff.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/01d9874e84d3ab78fd212ad822412eb3af84497f https://git.kernel.org/stable/c/c457bb516b61edeab940235a011928e26925381e https://git.kernel.org/stable/c/ce08c5555cabcd444d8b77fa69a7cb68bb05f611