Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CD82620AF9A for ; Tue, 1 Apr 2025 15:41:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522101; cv=none; b=q5kwy//4qqHbVEQrnIaBYOrFGKQtNnY9o4Q54T9GLJfAI2FfRcWrOjS1HmFrX+Iv/+z6568j16yDdcokOGZC2Px5Es9FIWuqyMsiWRXnFCY6Mr+zYpcelwTrxD97pMxyGwLzkpkHv8XVXlQRb8remxiDTd146s8gXrHoVdMhSDc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522101; c=relaxed/simple; bh=ewLLpuwvbDfH8/uGsSczeAApGSe/S0IkET+8uQqW+X0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nMH27i+iFGoPuFUDfFsnd/laqE9lVm/XdSY06L/oKRRrtH/2olTc0E7coP76gGM3KW4LyQ3Vul3BX784rj/10FPdeZbFwqOwleYpQJhqo08v8+j/7pTuFrX3+bMcWX7z1DV8PlTGPskaZeyPL3C0BFmAehXkPw2sScRedSEeNK8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MkeWIOUy; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MkeWIOUy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 689E6C4CEE4; Tue, 1 Apr 2025 15:41:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522101; bh=ewLLpuwvbDfH8/uGsSczeAApGSe/S0IkET+8uQqW+X0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MkeWIOUybFE9BV0kjQA3SlERnqSrKmRiK1h9lgbLGOsifEKuwwR6aCsBf54ztric6 266gzJpm09+h4HPeREq+GdYOiwosyew2Iatqkh62Wf+E8US1VW2JGc918sqMUa3u9Z MPPIEaAXUsNjI4hDHfdoO+nVZJqLmoUWXE8KN59Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21923: HID: hid-steam: Fix use-after-free when detaching device Date: Tue, 1 Apr 2025 16:39:47 +0100 Message-ID: <2025040132-CVE-2025-21923-5c6e@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2469; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ewLLpuwvbDfH8/uGsSczeAApGSe/S0IkET+8uQqW+X0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvOLaoLO7b+PRa1oVHz4WOe8xv9fq/cWUM5zePDUHLe GY9zvyh0BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATmSfHMD9XLUFm+vS7Xb/r paRj98kGtqq8t2WYH/KnrEHrtLbMow9ry5hzf3wQ8j+pBgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: HID: hid-steam: Fix use-after-free when detaching device When a hid-steam device is removed it must clean up the client_hdev used for intercepting hidraw access. This can lead to scheduling deferred work to reattach the input device. Though the cleanup cancels the deferred work, this was done before the client_hdev itself is cleaned up, so it gets rescheduled. This patch fixes the ordering to make sure the deferred work is properly canceled. The Linux kernel CVE team has assigned CVE-2025-21923 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.79 with commit e1147961b2145fa61c3078a4a797d9576cde91ab and fixed in 6.6.83 with commit 026714ec7546de741826324a6a1914c91024d06c Issue introduced in 6.12.16 with commit 3e38cbbfa0a128a9d64773240a9eb3bc7bae3b1a and fixed in 6.12.19 with commit a899adf7063c6745aaff1ec869f3c7f6329ed0a1 Issue introduced in 6.13.4 with commit 053fa3888d2a957f4db26c05e503f4c6b9570a30 and fixed in 6.13.7 with commit ea3f18d2f02629653b7bfe42607737ccd1343e54 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-2025-21923 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-steam.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/026714ec7546de741826324a6a1914c91024d06c https://git.kernel.org/stable/c/a899adf7063c6745aaff1ec869f3c7f6329ed0a1 https://git.kernel.org/stable/c/ea3f18d2f02629653b7bfe42607737ccd1343e54 https://git.kernel.org/stable/c/e53fc232a65f7488ab75d03a5b95f06aaada7262