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 975D419923E for ; Tue, 16 Jul 2024 12:29:16 +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=1721132956; cv=none; b=Yi5M+UNRlIZzJpVLv+kF1mBl/LucP0cNh9ER4oT08a4UiWKCA1AqD5Ok3Mat201eCkmuZmTu2x9A5HLPITHBJav10/JmyVB86AWLj2ftEhJrXU8c8bV5VcvE//Qxdj51YALhnqKthryWBSlPXdkcgzZTePC0bwgECxpkd4Z5Tpo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721132956; c=relaxed/simple; bh=oQeDP2FfFdsqk4+3HgOpgR2GTcWXp2D6vOGFVjIQCw8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=igaXahQUnaRw/K5yznYu8XgRoxQgknvKOp12ioMIBw6jYpsFM/2vsyiUxRU6UuBHdwh7IB6CuwOkucy6geKjOpJXpiZJP0beQWPKv+imldf6jsVrYKqZB1iXSV6Nn3GhP4k/YrnQXZKdmRRoXqCtfkhdc+vUNB4vRSwx6PB0zmg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=P9Xyarly; 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="P9Xyarly" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B37F8C116B1; Tue, 16 Jul 2024 12:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721132956; bh=oQeDP2FfFdsqk4+3HgOpgR2GTcWXp2D6vOGFVjIQCw8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=P9XyarlymqnOCulXA7lSIKuRxfcMeG1PFujPiCOwwrMLE88rPYOvAPb12W6nyCihb cM546JLd+O3jCA8imLmR29ccCju07ehx/rPRfJOxzMD+a/fuXraGkNdjRY/HDyfv7Z blX33jVocRRwOop7odcsVauldUz0xqkR2IWqTAz8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48866: HID: hid-thrustmaster: fix OOB read in thrustmaster_interrupts Date: Tue, 16 Jul 2024 14:27:51 +0200 Message-ID: <2024071629-CVE-2022-48866-93bd@gregkh> X-Mailer: git-send-email 2.45.2 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=2228; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=oQeDP2FfFdsqk4+3HgOpgR2GTcWXp2D6vOGFVjIQCw8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnT0o2i02fcLI32j32Q5BBs5fu6LipY8J6Z2U13nomvv fktjPd2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwETObGJYcHEqS0N++4edB9Jk tjFMNX+4KnB1J8NcSd+WjI4VrLftdWfPMk+eNZVPW08QAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: HID: hid-thrustmaster: fix OOB read in thrustmaster_interrupts Syzbot reported an slab-out-of-bounds Read in thrustmaster_probe() bug. The root case is in missing validation check of actual number of endpoints. Code should not blindly access usb_host_interface::endpoint array, since it may contain less endpoints than code expects. Fix it by adding missing validaion check and print an error if number of endpoints do not match expected number The Linux kernel CVE team has assigned CVE-2022-48866 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit c49c33637802 and fixed in 5.15.29 with commit 3ffbe85cda7f Issue introduced in 5.13 with commit c49c33637802 and fixed in 5.16.15 with commit 56185434e1e5 Issue introduced in 5.13 with commit c49c33637802 and fixed in 5.17 with commit fc3ef2e3297b 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-48866 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-thrustmaster.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/3ffbe85cda7f523dad896bae08cecd8db8b555ab https://git.kernel.org/stable/c/56185434e1e50acecee56d8f5850135009b87947 https://git.kernel.org/stable/c/fc3ef2e3297b3c0e2006b5d7b3d66965e3392036