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 CC85129D295 for ; Sat, 16 Aug 2025 10:58:43 +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=1755341923; cv=none; b=rqzO4QKG3EV+4HD08Sdfp0Yf0xfUvgHSaP6Yr1K2y2A+W6Kzl3fMDFvupx3g9mqhob5xHrzzoFq8t+vJ3jIBA7OP2rdMJ8cMdWqcwFKh8pfaXVoGqw4AyTcsXKcliMP+HUKrShrdZKmsrbrNThEp9Phb1jXNCdoOvbZcR06mnnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755341923; c=relaxed/simple; bh=AIEkiwVNK9kz05TIzlNEnMSxxGHkqg+8mj7uApgJ2kE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=i2ar7pbgxMfaEQDL4THGxPx33kmLiriUhuSE+iaZWwi5x8zfkN2Fq0NUyq40UkXIXze0/rcHEOmTgAQqlr04YpZygNuCr89u1Ad0AplqWE2xBBTZVDPLO4p/xKskle0gssZcRSiv9s/B3j+kobYsUX5E4tEtAjobTxtnqiKM2kM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1q42ZaIk; 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="1q42ZaIk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 074DEC4CEEF; Sat, 16 Aug 2025 10:58:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755341923; bh=AIEkiwVNK9kz05TIzlNEnMSxxGHkqg+8mj7uApgJ2kE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=1q42ZaIkNBjsLZS/MnlhYp+JjrttzKykcooBv7HdwuBkkeWp7DSBC3al0qcraanNS JS2koJFCQtX3i1hYiUZw0gz9LlkbREjnu6qA917D5X1pR6GjKJXqqGPwCQG/zPpwB0 KL98Iym5ew2axRJnDoAeeLgv0yYVhCpjqlJ7tCvE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38507: HID: nintendo: avoid bluetooth suspend/resume stalls Date: Sat, 16 Aug 2025 12:57:49 +0200 Message-ID: <2025081650-CVE-2025-38507-fb6a@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=2510; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fLdjkYGfjzUem+wGm31+EBD1dauANSvl8zUGHtyHMls=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkLUvQyt5zhePqrcxlHmDCrV6T4Fc1dy7PmqXc/OnHt1 c/i6lf+HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRbeIM8xNXt2qcs/FQuuU7 RXanp+l/u9/fOxgWnImeWT+54u7GmG0rd9hHHdO2T5b7CwA= 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: nintendo: avoid bluetooth suspend/resume stalls Ensure we don't stall or panic the kernel when using bluetooth-connected controllers. This was reported as an issue on android devices using kernel 6.6 due to the resume hook which had been added for usb joycons. First, set a new state value to JOYCON_CTLR_STATE_SUSPENDED in a newly-added nintendo_hid_suspend. This makes sure we will not stall out the kernel waiting for input reports during led classdev suspend. The stalls could happen if connectivity is unreliable or lost to the controller prior to suspend. Second, since we lose connectivity during suspend, do not try joycon_init() for bluetooth controllers in the nintendo_hid_resume path. Tested via multiple suspend/resume flows when using the controller both in USB and bluetooth modes. The Linux kernel CVE team has assigned CVE-2025-38507 to this issue. Affected and fixed versions =========================== Fixed in 6.12.39 with commit 7b4a026313529a487821ef6ab494a61f12c1db08 Fixed in 6.15.7 with commit 72cb7eef06a5cde42b324dea85fa11fd5bb6a08a Fixed in 6.16 with commit 4a0381080397e77792a5168069f174d3e56175ff 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-38507 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-nintendo.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/7b4a026313529a487821ef6ab494a61f12c1db08 https://git.kernel.org/stable/c/72cb7eef06a5cde42b324dea85fa11fd5bb6a08a https://git.kernel.org/stable/c/4a0381080397e77792a5168069f174d3e56175ff