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 5103923BD1F for ; Tue, 16 Sep 2025 13:01:20 +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=1758027680; cv=none; b=a0yqy6BdK9IhBkIESn/7hs1pcdL/5fNExHbrctFLbG9hztytvf20aSrfBPFJJ1Gcr89eVcnQMTrCT3rbS/BI0qnJg1h3NHYhQiCBrZXzhTbj5jcPGZb3oEXJQb32IT8u2kpMrigSWJhEsm03DHCsFz3HTgWtlrFAh5vuVGdHmkQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758027680; c=relaxed/simple; bh=zpcEbG33RknoShKj7l4QEUFT8rYcAnArE9IbnArqheY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LQZDq2EOn+izbn6+uO4UGC4uuVb618GKII2NfqWKy+1t2YzAoAuTxA76ENF8wpW58uvaaFOuuEKYYbSzxkzOMzwyvNxa/I+epIijnNLI7nY1BFlXMsIgpDzX6LV7h/7NokB6HhoFKXMud5vsMIPjN0rzeK4Fbavupd8WXBMkDrE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eoj4fgkx; 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="eoj4fgkx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C4C7AC4CEFA; Tue, 16 Sep 2025 13:01:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758027680; bh=zpcEbG33RknoShKj7l4QEUFT8rYcAnArE9IbnArqheY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eoj4fgkxUU4CIt8sJ7xP4mj6wFcmlcoBMnEDwo9hKBIdrCGpSNAS26j933/yS/ct7 K3I13cAuxNFBvnv62VM0kxt8QrDPGNCgkPImmIXtjrcktPeCv8conhr83YyE/j1vrM YNdAr7g5kqUXsR3SSBEk8P0VVoQMORmBI1VA1Id8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39808: HID: hid-ntrig: fix unable to handle page fault in ntrig_report_version() Date: Tue, 16 Sep 2025 15:00:14 +0200 Message-ID: <2025091613-CVE-2025-39808-a964@gregkh> X-Mailer: git-send-email 2.51.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=2947; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=X1vUb9T9zJVo/kMHkbChIdNjvPOj6Wzo9//6Fe4LJLM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn42NFHGavWprR/U5F9b3WtBkNmybu6989X10u/JDH/ 8a1PHN3dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEVjMzzDPc8XP/X54LSVqv Tm1zX3hfYEbQZ2OGBW3FNmv+VPW5Tkrk/NC3aOeV18GH2AE= 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: hid-ntrig: fix unable to handle page fault in ntrig_report_version() in ntrig_report_version(), hdev parameter passed from hid_probe(). sending descriptor to /dev/uhid can make hdev->dev.parent->parent to null if hdev->dev.parent->parent is null, usb_dev has invalid address(0xffffffffffffff58) that hid_to_usb_dev(hdev) returned when usb_rcvctrlpipe() use usb_dev,it trigger page fault error for address(0xffffffffffffff58) add null check logic to ntrig_report_version() before calling hid_to_usb_dev() The Linux kernel CVE team has assigned CVE-2025-39808 to this issue. Affected and fixed versions =========================== Fixed in 5.4.298 with commit 22ddb5eca4af5e69dffe2b54551d2487424448f1 Fixed in 5.10.242 with commit 019c34ca11372de891c06644846eb41fca7c890c Fixed in 5.15.191 with commit 4338b0f6544c3ff042bfbaf40bc9afe531fb08c7 Fixed in 6.1.150 with commit 6070123d5344d0950f10ef6a5fdc3f076abb7ad2 Fixed in 6.6.104 with commit e422370e6ab28478872b914cee5d49a9bdfae0c6 Fixed in 6.12.45 with commit 98520a9a3d69a530dd1ee280cbe0abc232a35bff Fixed in 6.16.5 with commit 183def8e4d786e50165e5d992df6a3083e45e16c Fixed in 6.17-rc4 with commit 185c926283da67a72df20a63a5046b3b4631b7d9 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-39808 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-ntrig.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/22ddb5eca4af5e69dffe2b54551d2487424448f1 https://git.kernel.org/stable/c/019c34ca11372de891c06644846eb41fca7c890c https://git.kernel.org/stable/c/4338b0f6544c3ff042bfbaf40bc9afe531fb08c7 https://git.kernel.org/stable/c/6070123d5344d0950f10ef6a5fdc3f076abb7ad2 https://git.kernel.org/stable/c/e422370e6ab28478872b914cee5d49a9bdfae0c6 https://git.kernel.org/stable/c/98520a9a3d69a530dd1ee280cbe0abc232a35bff https://git.kernel.org/stable/c/183def8e4d786e50165e5d992df6a3083e45e16c https://git.kernel.org/stable/c/185c926283da67a72df20a63a5046b3b4631b7d9