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 50FEB259C9F for ; Mon, 28 Jul 2025 11:23:21 +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=1753701801; cv=none; b=cWeAiWAchSFph1jA3ILuSEHr6MGu/I125Vfp9+PfhU98MrcwV6Lr0iTTZOrec7MARshbebfejjWZk6XBXW8LczOZnKLSwz6kep82muuGlM9F0BARxkihohxSc7CJ3TzFygovLjIj01/tDtz2XsG5MIe3fveqysCUH47xrvA1jlw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753701801; c=relaxed/simple; bh=RVBsqeMJGiceBlyJPLq/NttmZKS3c1LI061o+KTIO6c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q549dx5FjOpZZ7m0ARiGhf8jRU1okhihquBoTW4xA8Ec0iaLN7GbeLiY1RCYX3q0Nmp3m+AKw1aKD+D6TGtInACvM3WZ/M2NCBE4NDu5+iF31zxkX3pdZZpBEZQ6lyi4Nyf5zu3WP+yGV+TjxcvJrzoGMoVBv5ywZpNqIzvWpWI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uTDll05b; 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="uTDll05b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B306DC4CEE7; Mon, 28 Jul 2025 11:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1753701801; bh=RVBsqeMJGiceBlyJPLq/NttmZKS3c1LI061o+KTIO6c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uTDll05bxRi5SOtdOI4EDoGGL4CZ/dkNl3gpr4XHpWmc8b5fhemXWNU5hl2URVQOw pC4snYk0cPaqRL0vuOGz1ZagwEimRrRrXMUmcnS4FVJ+Gpv97jyAOxKQiXvsppZFDq 6D7iQLIq/rXXnYeuEdO7HLV8VAzWONlMBdCBuiyc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38494: HID: core: do not bypass hid_hw_raw_request Date: Mon, 28 Jul 2025 13:22:36 +0200 Message-ID: <2025072818-CVE-2025-38494-63e4@gregkh> X-Mailer: git-send-email 2.50.1 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=2238; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gP8l2tSZPtn+SbgocL2jeKkYIXW43l+qryWKngO5qW4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBntsVlSV38GOdnc8D9ZGmJgvWPtnok2TjsEn/x7klDdM IH9m/SjjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIdyLDghnNXhLPXn6+M1Vq ns7RX3u2WrEfVWdYsPhp1YGFs5Y+ear5VGwZx5N/OS49HQA= 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: core: do not bypass hid_hw_raw_request hid_hw_raw_request() is actually useful to ensure the provided buffer and length are valid. Directly calling in the low level transport driver function bypassed those checks and allowed invalid paramto be used. The Linux kernel CVE team has assigned CVE-2025-38494 to this issue. Affected and fixed versions =========================== Fixed in 6.1.147 with commit a62a895edb2bfebffa865b5129a66e3b4287f34f Fixed in 6.6.100 with commit 0e5017d84d650ca0eeaf4a3fe9264c5dbc886b81 Fixed in 6.12.40 with commit d18f63e848840100dbc351a82e7042eac5a28cf5 Fixed in 6.15.8 with commit 19d1314d46c0d8a5c08ab53ddeb62280c77698c0 Fixed in 6.16 with commit c2ca42f190b6714d6c481dfd3d9b62ea091c946b 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-38494 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-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/a62a895edb2bfebffa865b5129a66e3b4287f34f https://git.kernel.org/stable/c/0e5017d84d650ca0eeaf4a3fe9264c5dbc886b81 https://git.kernel.org/stable/c/d18f63e848840100dbc351a82e7042eac5a28cf5 https://git.kernel.org/stable/c/19d1314d46c0d8a5c08ab53ddeb62280c77698c0 https://git.kernel.org/stable/c/c2ca42f190b6714d6c481dfd3d9b62ea091c946b