All of lore.kernel.org
 help / color / mirror / Atom feed
* CVE-2026-80771: HID: nintendo: register input device after capabilities are set
@ 2026-09-04 15:11 Greg Kroah-Hartman
  0 siblings, 0 replies; only message in thread
From: Greg Kroah-Hartman @ 2026-09-04 15:11 UTC (permalink / raw)
  To: linux-cve-announce; +Cc: Greg Kroah-Hartman

From: Greg Kroah-Hartman <gregkh@kernel.org>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

HID: nintendo: register input device after capabilities are set

input_register_device() exposes the device to userspace immediately.
In joycon_input_create() it was called before joycon_config_rumble()
configures the FF_RUMBLE capability and the memless force-feedback
device, so a concurrent EVIOCSFF could dereference a NULL dev->ff.

Registering early also means the initial udev event lacks button and
axis information, which can make input managers ignore the device.

Move input_register_device() to the end of joycon_input_create(), after
all capabilities, the IMU input device and the force-feedback callbacks
have been configured.

The Linux kernel CVE team has assigned CVE-2026-80771 to this issue.


Affected and fixed versions
===========================

	Issue introduced in 5.16 with commit 2af16c1f846bd60240745bbd3afa13d5f040c61a and fixed in 6.12.106 with commit 3288bec1a21d582b504344380139cdc0e88ebe4d
	Issue introduced in 5.16 with commit 2af16c1f846bd60240745bbd3afa13d5f040c61a and fixed in 6.18.47 with commit 268679f501386ad46405d42c2bcf89384cb5e256
	Issue introduced in 5.16 with commit 2af16c1f846bd60240745bbd3afa13d5f040c61a and fixed in 7.1.11 with commit a9fc7547f911ada09da33c5e204e5acda38e765a
	Issue introduced in 5.16 with commit 2af16c1f846bd60240745bbd3afa13d5f040c61a and fixed in 7.2.1 with commit 27dc4b8eadac73b3c3cc526c8547d8b4ae8528be
	Issue introduced in 5.16 with commit 2af16c1f846bd60240745bbd3afa13d5f040c61a and fixed in 7.3-rc1 with commit d723bc1fe2e72b9252234e94c11af644ec477bf7

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-2026-80771
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/3288bec1a21d582b504344380139cdc0e88ebe4d
	https://git.kernel.org/stable/c/268679f501386ad46405d42c2bcf89384cb5e256
	https://git.kernel.org/stable/c/a9fc7547f911ada09da33c5e204e5acda38e765a
	https://git.kernel.org/stable/c/27dc4b8eadac73b3c3cc526c8547d8b4ae8528be
	https://git.kernel.org/stable/c/d723bc1fe2e72b9252234e94c11af644ec477bf7

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-04 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-04 15:11 CVE-2026-80771: HID: nintendo: register input device after capabilities are set Greg Kroah-Hartman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.