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 2FDF5286D6F for ; Wed, 18 Jun 2025 11:03:13 +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=1750244593; cv=none; b=QrigGyqrqYFC7avUGbGpiHGhXZbJLap5rLdaLhaqZu8qY8UOV7hr/Um/frceeBoYVAafEVpzUAtv4QRUJnRYD2ROPAFZ7jnc2wzktgIkvMo18ThaIT+Ml6OeDJyuKbt5GCQVkN+4JsU/js/1lf0ErviwVD+J6hcXhNzMNB6xUUg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244593; c=relaxed/simple; bh=eFrKdiTnEx9Fh4HPqn0ka8QM231ZNlmDFpurt0yw7ek=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=dj8qtck5UUmkR729sDaD4Z3O4r41BMfCv70ZyjhV6l/VqNm+kwP4uMzvYw/E7S++NJ6aR53WNz2ebj8qZ9ZFzHaAjSai5bFz/UHP53JlhXiZWwm7AnD5nQAxQgJ4hmhrd8xYUzbkV8Wai04orvTj3W5Y/HmvqLEIZTb5SDBb+TA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IInSpkyv; 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="IInSpkyv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A675FC4CEE7; Wed, 18 Jun 2025 11:03:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244593; bh=eFrKdiTnEx9Fh4HPqn0ka8QM231ZNlmDFpurt0yw7ek=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IInSpkyvcC1STR+VFBA1jdpV1ApzbzbX4WH92KxkEC9/yWb9CBjqnWGa+5PXZiBsi NwmP9WJaEN5+QeERDPfzFpJfNSApZjCpuO32QvcrlaqxYgPD2BuwaMnXIFB7Ba5WU6 5wc5PW0ihC85z7KEKtEQvZpFUt+xO7ONKXscmOrw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49974: HID: nintendo: fix rumble worker null pointer deref Date: Wed, 18 Jun 2025 13:00:39 +0200 Message-ID: <2025061818-CVE-2022-49974-86bb@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=1940; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=h2c0pgGpnoMr386TCzLcTjG6toaCi6dBmAJSAgCFjyQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc5y85A4tL7R64rBFID7m5SN/rssh3earW8S4Z/gs9 rocV/OvI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayWIJhDo93nloVW+RZ1RVX Jnd+upvYUvtiBsP8hHsxzpdnL6s3W5yndOLZJIGLrrseAAA= 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: fix rumble worker null pointer deref We can dereference a null pointer trying to queue work to a destroyed workqueue. If the device is disconnected, nintendo_hid_remove is called, in which the rumble_queue is destroyed. Avoid using that queue to defer rumble work once the controller state is set to JOYCON_CTLR_STATE_REMOVED. This eliminates the null pointer dereference. The Linux kernel CVE team has assigned CVE-2022-49974 to this issue. Affected and fixed versions =========================== Fixed in 5.19.7 with commit 7c6e6c334154be16740b44dcd7638fb510b9bd91 Fixed in 6.0 with commit 1ff89e06c2e5fab30274e4b02360d4241d6e605e 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-2022-49974 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/7c6e6c334154be16740b44dcd7638fb510b9bd91 https://git.kernel.org/stable/c/1ff89e06c2e5fab30274e4b02360d4241d6e605e