From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100080; b=V3NzOL4bdeB5uhwg9jKbV8CiZ5Q14lHBrD3nRdfqUDvP3VMAC21HAC6mBQbKGFHSVtMb pNFDmWKgQDHfJsfqG2mNCQUNO9N49Y4GjEmUxA2lx8J0S/jZXpR1uZKKd4sW+rsrNUdef 5pf4sUlFTj992l9eSj9XVpVppjpr2UxTfRR2rGydvvWb5RQA3e9USxi363JlFxfdHkbjZ fRV7b6ENsBjSeaGFBO1ChpRiJ0LOboK0f1DtxDIOsTzr04wvuxaQrTUObjmqtYLxp2Zbp heTCLYL5gmxXHeGjZ9z74oUTToVkXxgTxSXQmE6NE+AIn599tKCvczoA4x1lFjFNLdw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100080; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=0aHQZ+roKPzzA89Kv8bkOZZkLmxog+ClN4aH8695n0E=; b=HLSpHhqQDqXEx2Qrdgd9S5UPXlNrH3qdg+PmHJsKBNAtb6FGf6sAt6kqrc6BJTN6mR8c m3fcAVuheUr063AVBn7SEXSkjVdbzG62e4+9XOy9j6mFwzjjyQFMDRUvleDIk7WpeNJ3Y sSy8FMP1tWFed5E8VS6oaLl0J/ipXNILEz6KhFP+i0XUzDYQqYnkLLbLSzjcWHdBoshpM UnoQGdwOpniqdsBctaEG8hCWPwnlC1d0pT9/85ImD0eKg7na47u1VPAXS5WdQVTSzl4ni AgZUk2EwqUiFOvjYOzP794ZoyYAOEuAaYV8Jh/Q1t4XyRcNZMzkI7JFUjvlj2npFGDg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ooyD2dDx; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58B3C606A325 for ; Thu, 19 Nov 2026 14:54:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ooyD2dDx Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD9D31F000C5; Thu, 19 Nov 2026 14:54:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100080; bh=0aHQZ+roKPzzA89Kv8bkOZZkLmxog+ClN4aH8695n0E=; h=From:To:Cc:Subject:Date:Reply-To; b=ooyD2dDxX0Vc0TEoCWe3lkMJZJfNkBOfgpBpvFgF3+bn7yQvszd43pOJF7wToHyn6 5l0mygpGJwepIG1SavGE6g4d5ujsjATGt+rXo64xLLRQS7dLkWUnfUkF23ilk7hKUp XBSKAaAVi2dY0v1bhY867+yhXwedGnOWjIRr+GXc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99474: HID: hiddev: keep state alive through disconnect unlock Date: Thu, 19 Nov 2026 15:26:12 +0100 Message-ID: <2026111911-CVE-2026-99474-e16f@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2815; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RHcp3YB44zXXdem4/sJlllLeEJdabHERudrxojYE16A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2bo9v6i9kEm7ufth7B6eiPLZ/5ni91xKnh8yt+hj1 jzlgtXSHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRiRUM8+tY9wt9bXn0a6Od 3yHGUjfeqfJrGxlmsznvXHKIu9hH/Umyy4Mn56I3xR+pAgA= 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: hiddev: keep state alive through disconnect unlock mutex_unlock() clears the mutex owner before taking its wait lock. A thread spinning in the final hiddev file release can acquire existancelock after hiddev_disconnect() clears the owner, then free hiddev before the disconnecting thread reaches the mutex wait lock. This causes a use-after-free in the mutex slow unlock path. Give the connection and each open file an explicit reference. Drop each reference only after its existancelock critical section has completed, so neither unlock path can free the mutex while the other is still using it. The Linux kernel CVE team has assigned CVE-2026-99474 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.29 with commit 079034073faf974973baa0256b029451f6e768ad and fixed in 6.12.117 with commit 81e3e5ae4228f95414665877f5e487917fbef9c0 Issue introduced in 2.6.29 with commit 079034073faf974973baa0256b029451f6e768ad and fixed in 6.18.61 with commit 1b7b31f0d4bbfb9a87dd8acce1e001a3cf1c1623 Issue introduced in 2.6.29 with commit 079034073faf974973baa0256b029451f6e768ad and fixed in 7.3.2 with commit f214e9fe86a0aba6deb4a0b31b9998fb2b6879b5 Issue introduced in 2.6.29 with commit 079034073faf974973baa0256b029451f6e768ad and fixed in 7.4-rc1 with commit 03f449b5de36a25fc5eba7dabf2b4494389bdb91 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-99474 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/usbhid/hiddev.c include/linux/hiddev.h 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/81e3e5ae4228f95414665877f5e487917fbef9c0 https://git.kernel.org/stable/c/1b7b31f0d4bbfb9a87dd8acce1e001a3cf1c1623 https://git.kernel.org/stable/c/f214e9fe86a0aba6deb4a0b31b9998fb2b6879b5 https://git.kernel.org/stable/c/03f449b5de36a25fc5eba7dabf2b4494389bdb91