CVE-2025-38507
JSON

5.5medium

HID: nintendo: avoid bluetooth suspend/resume stalls

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.23% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 2af16c1f846bd60240745bbd3afa13d5f040c61a before 167c610b45b4c23a954aac70df9760a4bf358b20, from 2af16c1f846bd60240745bbd3afa13d5f040c61a before d3c8519f85b786dcae2498b3496f32e3925e4601, from 2af16c1f846bd60240745bbd3afa13d5f040c61a before 7b4a026313529a487821ef6ab494a61f12c1db08, from 2af16c1f846bd60240745bbd3afa13d5f040c61a before 72cb7eef06a5cde42b324dea85fa11fd5bb6a08a, from 2af16c1f846bd60240745bbd3afa13d5f040c61a before 4a0381080397e77792a5168069f174d3e56175ff, 5.16
Not affected: before 5.16, from 6.1.191 up to 6.1.*, from 6.6.160 up to 6.6.*, from 6.12.39 up to 6.12.*, from 6.15.7 up to 6.15.*, from 6.16 up to *
CVE List
linux linux_kernelfrom 5.16 before 6.12.39, from 6.13 before 6.15.7, 6.16NVD

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: HID: nintendo: evitar bloqueos de suspensión/reinicio de bluetooth Asegúrese de que no bloqueemos ni hagamos que el kernel entre en pánico cuando usemos controladores conectados por bluetooth. Esto se informó como un problema en dispositivos Android que usan el kernel 6.6 debido al gancho de reanudación que se había agregado para los joycons usb. Primero, establezca un nuevo valor de estado en JOYCON_CTLR_STATE_SUSPENDED en un nintendo_hid_suspend recién agregado. Esto asegura que no bloquearemos el kernel esperando informes de entrada durante la suspensión de classdev led. Los bloqueos podrían ocurrir si la conectividad no es confiable o se pierde con el controlador antes de la suspensión. Segundo, dado que perdemos la conectividad durante la suspensión, no intentes joycon_init() para controladores bluetooth en la ruta nintendo_hid_resume. Probado a través de múltiples flujos de suspensión/reinicio al usar el controlador en modo USB y bluetooth.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-38507 changed 2026-10-30CVE Terms of Use
NVDCVE-2025-38507 changed 2026-10-30Public domain