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 7F9562E8B83 for ; Tue, 30 Dec 2025 12:16:06 +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=1767096966; cv=none; b=R3bHRAIiHxVtTeIqEkLD0ZikG3QQF1JbBm3GBYBVE8nj373o+wjSocmJ/amLMGuEmlsIjmCaXszq46Ypb7lZE6/LqD95GwuTDFulf5B8x/0EGuUD3HZYG3HrEhF8fiygr9NyAolVWqX/NOrityAnb/ofXeOOj1zitjhesEZVQ1g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767096966; c=relaxed/simple; bh=+RNyHxOmcCfgkDhEiciFw9zrVaLIf/6efmzWqY+q4ME=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OBptDYi28AsjQileF6EcQDPElEBUqGgc6UErikincvfJPXIXat8+ZPedGNLK7VWchh7ptzQniRgt1kLmPqsnPIiJPAjpb9x209kyxI6TTYjbNvjE62U9CG45jjGFRVPanrSFgwh50QG6qnl1kJej/fBj33tXMQka0qpJKdktyUw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xYuG2ZNt; 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="xYuG2ZNt" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B850C4CEFB; Tue, 30 Dec 2025 12:16:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767096966; bh=+RNyHxOmcCfgkDhEiciFw9zrVaLIf/6efmzWqY+q4ME=; h=From:To:Cc:Subject:Date:Reply-To:From; b=xYuG2ZNtF3or4LZuwWQK2HwEfGjWZKvN30AgXhJIhZMuPWyaxC6/46ZKjMstARF9s VZmB69Ok+qZjKgraH9Jk7ZcjF4QG/L49hzKQ7s4PIkaLx8BCzqua3aJOfd50g0QDlB 4epz7rRzoaHdB3iTPk9gCuOCQ1Ly2DrGx9RAAgek= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54207: HID: uclogic: Correct devm device reference for hidinput input_dev name Date: Tue, 30 Dec 2025 13:13:37 +0100 Message-ID: <2025123023-CVE-2023-54207-8b3a@gregkh> X-Mailer: git-send-email 2.52.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=2680; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0+5RTatCd8QhvBC6zn9JHAeDT7K9ln5Mcch2V/uNTAw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBBx/Xvws8sGqqSNrkqgf9Nx8Zn4nkWLb2jrjo++b1C +zlbKW2d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEon4wzOGLb+yWS+M55TT3 y/fEBWdDFPof9TIsWFZ/f8UiZaMvQmm7ixLun196iLX3KQA= 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: uclogic: Correct devm device reference for hidinput input_dev name Reference the HID device rather than the input device for the devm allocation of the input_dev name. Referencing the input_dev would lead to a use-after-free when the input_dev was unregistered and subsequently fires a uevent that depends on the name. At the point of firing the uevent, the name would be freed by devres management. Use devm_kasprintf to simplify the logic for allocating memory and formatting the input_dev name string. The Linux kernel CVE team has assigned CVE-2023-54207 to this issue. Affected and fixed versions =========================== Issue introduced in 4.1 with commit cce2dbdf258e6b27b2b100f511531edabb77f427 and fixed in 6.1.53 with commit f283805d984343b2f216e2f4c6c7af265b9542ae Issue introduced in 4.1 with commit cce2dbdf258e6b27b2b100f511531edabb77f427 and fixed in 6.4.16 with commit 4c2707dfee5847dc0b5ecfbe512c29c93832fdc4 Issue introduced in 4.1 with commit cce2dbdf258e6b27b2b100f511531edabb77f427 and fixed in 6.5.3 with commit 58f0d1c0e494a88f301bf455da7df4366f179bbb Issue introduced in 4.1 with commit cce2dbdf258e6b27b2b100f511531edabb77f427 and fixed in 6.6 with commit dd613a4e45f8d35f49a63a2064e5308fa5619e29 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-2023-54207 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-uclogic-core.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/f283805d984343b2f216e2f4c6c7af265b9542ae https://git.kernel.org/stable/c/4c2707dfee5847dc0b5ecfbe512c29c93832fdc4 https://git.kernel.org/stable/c/58f0d1c0e494a88f301bf455da7df4366f179bbb https://git.kernel.org/stable/c/dd613a4e45f8d35f49a63a2064e5308fa5619e29