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 6B02F283FDC for ; Wed, 18 Jun 2025 10:55:05 +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=1750244105; cv=none; b=ocsc9wtAWO/vyCQ7gk5baXQNn9V3ezvdctnfeOhY9czBoZLLd5q3+eXj+LAJGQIK6WLCK2hSsc7fEW+A4JATzwuFnx+/dCWQ7QAdRddEbbTOIYHAr49KiuSy4tjWZj8meWwpKXqDnwQ7tNKtRb7DNrEfqSsOSpQZir1Cn03jKlk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244105; c=relaxed/simple; bh=Xd6z3BFISD/Rpsbe6qUMEOiuylw87nLBwihoiELJJkw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FqPu/NyzNxzori/Mz8xlRTmZlzmHjjbmC5yUihvZdvfK40YMElNzap0aFYXwdBF7HtrfOKlrsyLenluqDnzdbSTl8D/tk3zxTJBrpCinN34gSq3HLloJ6zXE5BLCf8Ts4uBnchJSMYZsH66X/WQrGkQFDJKwaC+1sqStHoby2mk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vHXEa46y; 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="vHXEa46y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93DA9C4CEE7; Wed, 18 Jun 2025 10:55:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244105; bh=Xd6z3BFISD/Rpsbe6qUMEOiuylw87nLBwihoiELJJkw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vHXEa46ywpRIZDKpJnt9MLdqPSeRFotSJrdK/EMvEpooFQZ9J16RfIgxceiUdDSA8 vKKLquk9EBYVxMMncExAkPAFYpVZ9cvmusmTQzyrMWJ0hgllmXxxQ43poxSqXtT7hv 8yjV6CVD50hrDNfJ0ZcpTmjElrv/s6uv6HhlG6k0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49937: media: mceusb: Use new usb_control_msg_*() routines Date: Wed, 18 Jun 2025 12:54:48 +0200 Message-ID: <2025061847-CVE-2022-49937-5d01@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=3991; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6qY2TQ4NdzIg2DpqGrFc8LJDOdww1y23DRlIZyNbyRY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBs743+bh/We6z/sz7Y9fsju9fvkdOZfbFaPd72xouO 7CaXr//riOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmYljBsGBOltSH1wsuWFVs lX5dEmmRzd7hFM4wV2KdFEPhrh177+/4NYP7/pagg5s6vwEA 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: media: mceusb: Use new usb_control_msg_*() routines Automatic kernel fuzzing led to a WARN about invalid pipe direction in the mceusb driver: ------------[ cut here ]------------ usb 6-1: BOGUS control dir, pipe 80000380 doesn't match bRequestType 40 WARNING: CPU: 0 PID: 2465 at drivers/usb/core/urb.c:410 usb_submit_urb+0x1326/0x1820 drivers/usb/core/urb.c:410 Modules linked in: CPU: 0 PID: 2465 Comm: kworker/0:2 Not tainted 5.19.0-rc4-00208-g69cb6c6556ad #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.13.0-1ubuntu1.1 04/01/2014 Workqueue: usb_hub_wq hub_event RIP: 0010:usb_submit_urb+0x1326/0x1820 drivers/usb/core/urb.c:410 Code: 7c 24 40 e8 ac 23 91 fd 48 8b 7c 24 40 e8 b2 70 1b ff 45 89 e8 44 89 f1 4c 89 e2 48 89 c6 48 c7 c7 a0 30 a9 86 e8 48 07 11 02 <0f> 0b e9 1c f0 ff ff e8 7e 23 91 fd 0f b6 1d 63 22 83 05 31 ff 41 RSP: 0018:ffffc900032becf0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8881100f3058 RCX: 0000000000000000 RDX: ffffc90004961000 RSI: ffff888114c6d580 RDI: fffff52000657d90 RBP: ffff888105ad90f0 R08: ffffffff812c3638 R09: 0000000000000000 R10: 0000000000000005 R11: ffffed1023504ef1 R12: ffff888105ad9000 R13: 0000000000000040 R14: 0000000080000380 R15: ffff88810ba96500 FS: 0000000000000000(0000) GS:ffff88811a800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffe810bda58 CR3: 000000010b720000 CR4: 0000000000350ef0 Call Trace: usb_start_wait_urb+0x101/0x4c0 drivers/usb/core/message.c:58 usb_internal_control_msg drivers/usb/core/message.c:102 [inline] usb_control_msg+0x31c/0x4a0 drivers/usb/core/message.c:153 mceusb_gen1_init drivers/media/rc/mceusb.c:1431 [inline] mceusb_dev_probe+0x258e/0x33f0 drivers/media/rc/mceusb.c:1807 The reason for the warning is clear enough; the driver sends an unusual read request on endpoint 0 but does not set the USB_DIR_IN bit in the bRequestType field. More importantly, the whole situation can be avoided and the driver simplified by converting it over to the relatively new usb_control_msg_recv() and usb_control_msg_send() routines. That's what this fix does. The Linux kernel CVE team has assigned CVE-2022-49937 to this issue. Affected and fixed versions =========================== Fixed in 5.10.142 with commit 587f793c64d99d92be8ef01c4c69d885a3f2edb6 Fixed in 5.15.66 with commit 75913c562f5ba4cf397d835c63f443879167c6f6 Fixed in 5.19.8 with commit d69c738ac9310b56e84c51c8f09fc018a8291bc6 Fixed in 6.0 with commit 608e58a0f4617977178131f5f68a3fce1d3f5316 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-49937 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/media/rc/mceusb.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/587f793c64d99d92be8ef01c4c69d885a3f2edb6 https://git.kernel.org/stable/c/75913c562f5ba4cf397d835c63f443879167c6f6 https://git.kernel.org/stable/c/d69c738ac9310b56e84c51c8f09fc018a8291bc6 https://git.kernel.org/stable/c/608e58a0f4617977178131f5f68a3fce1d3f5316