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 BA65324EA8D for ; Tue, 20 May 2025 15:58:58 +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=1747756738; cv=none; b=a9tviX9p49Rm5jVOEGvm9pesxmPoI/WPQkr2vVZlOFiUYqQQ9KFPqZQknym8s6+tB1axkSPTwza/+IbSP+PhPtJC+VmT4mMdfsh0KDbggeLUBT1Wh8JJERksC0MBwUtzJQuDVan8MVzKRkoebrO4iZcHv/VBdG+2+U8O344LrSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747756738; c=relaxed/simple; bh=4W96fJB9LsXXGIjXOkPmCVWMZPLfly8ZEuvpQC/a/3U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M/LemkHDvwcK0dzItd1XH/QQFMf+S34BoCo5II9gO6FH/tfBy2elau9H+2I5oPgQcBkXLevO69TezgV8YzydS0DJ38WnNHteQPYiZ5wSfhVe0eLaXhN/31OVEEdtdRJd8Q0h5ktRVrR1MTG3ornCS2YFG67rT3J9+6Kf410jn9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=T25VsOhh; 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="T25VsOhh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E37D7C4CEE9; Tue, 20 May 2025 15:58:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747756738; bh=4W96fJB9LsXXGIjXOkPmCVWMZPLfly8ZEuvpQC/a/3U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=T25VsOhh2BJTzWFUicsNktpNnVD/Ro60zuEq2QRUIiWLKfLBOamQAXI2XoG8o85hA Do9Bu4xtyNRjx6Vt9jmREUDeWkAKZX5pg37nT1GtnIGaPmo8bu682+TT09a3LOKxxv jmBFcLW6WuH3xBnI8blppDEjBr7eF/2IsqTxp3Fg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37942: HID: pidff: Make sure to fetch pool before checking SIMULTANEOUS_MAX Date: Tue, 20 May 2025 17:58:31 +0200 Message-ID: <2025052043-CVE-2025-37942-fbca@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=2303; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ccCZ0TLTsoGNvuXhkJW/c2J7rIrJzg+DtOeb87UfZr0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6yzbbBOivdlvgHqqf2bTv34eivIbJ5ilsq2ysBKuFf 5V7vmvviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn4P2RYcNYu9vf0VfpZ2al/ VlQJ79oX/EjmHsP8MOUTLxdVvT3N4WgxW2Vff4bb1Fs8AA== 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: pidff: Make sure to fetch pool before checking SIMULTANEOUS_MAX As noted by Anssi some 20 years ago, pool report is sometimes messed up. This worked fine on many devices but casued oops on VRS DirectForce PRO. Here, we're making sure pool report is refetched before trying to access any of it's fields. While loop was replaced with a for loop + exit conditions were moved aroud to decrease the possibility of creating an infinite loop scenario. The Linux kernel CVE team has assigned CVE-2025-37942 to this issue. Affected and fixed versions =========================== Fixed in 6.12.24 with commit 211861869766a7bb7c72158aee0140ec67e182a7 Fixed in 6.13.12 with commit 344d903be8b5c0733ed0f4bc5be34b4a26d905c8 Fixed in 6.14.3 with commit a6f5d30a5c7713238c5c65c98ad95dacb73688d5 Fixed in 6.15-rc1 with commit 1f650dcec32d22deb1d6db12300a2b98483099a9 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-37942 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/hid-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/211861869766a7bb7c72158aee0140ec67e182a7 https://git.kernel.org/stable/c/344d903be8b5c0733ed0f4bc5be34b4a26d905c8 https://git.kernel.org/stable/c/a6f5d30a5c7713238c5c65c98ad95dacb73688d5 https://git.kernel.org/stable/c/1f650dcec32d22deb1d6db12300a2b98483099a9