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 C922E137C45 for ; Tue, 27 Feb 2024 09:49:43 +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=1709027383; cv=none; b=aZiC/WbgD+fJesn4pVctSXTrXYKhxGQhIo6b+wcgK0SNyormADoez7NKhXcrXoOa2WcV8fMqVC8FF2ea2EjknygKx7VdRVBq1190QldHj3vfuGwK2v3BqUZ60P0dfgEjFQjUL8IukftlWxQi2Qhpd9HiZnqVS2KxVwCWSJ/fuP8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709027383; c=relaxed/simple; bh=YZriYc4ftwRJAnHv+CvNrO1GILDnMdZzdGzMDQ92128=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n9utb/B1D09cmCfCRxprYh1febRyxeKCnVLuMKV38BYrlIOyfEKkINOVzTsbdemEETv3TMEk35eZc91RhEVi++op51Sd6gFysiyt2tRkARTN+qdPGum0ccXpt326BhNID8os41cL7JgK/cLiGx9SdzGYbdC/N9SBzhsPy9ETvh0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XXy+hZtV; 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="XXy+hZtV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00B45C433C7; Tue, 27 Feb 2024 09:49:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709027383; bh=YZriYc4ftwRJAnHv+CvNrO1GILDnMdZzdGzMDQ92128=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XXy+hZtVBw4Vt7d8Q7ID/XA226YzQyqbC4iPBtv/I8qSHW9kXA3sMHjsqfYUEvRxf YXYY8z3aQjmZ3IEN6/ox+lXydx6OWjcx9qjILRXYLMHeFGUXG52nljdMFnH6sTkoyA jXeN4NXkji/BMGgDk3TYXo5jfG+js2544NbteQV0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46930: usb: mtu3: fix list_head check warning Date: Tue, 27 Feb 2024 10:48:51 +0100 Message-ID: <2024022749-CVE-2021-46930-99ca@gregkh> X-Mailer: git-send-email 2.44.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=2481; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YZriYc4ftwRJAnHv+CvNrO1GILDnMdZzdGzMDQ92128=; b=owGbwMvMwCRo6H6F97bub03G02pJDKl3NzDe5+mpn1i9le19/qvaZ7KxPmGL/SR6UiKsM/bxs J+/OV2zI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbiupJhrsS7RTdvLeFf+X2d 8Kz4zX1T3KIZpjDMdz2zMVLgfF3n7V/Nd3S0n/0rv/9tOgA= 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: usb: mtu3: fix list_head check warning This is caused by uninitialization of list_head. BUG: KASAN: use-after-free in __list_del_entry_valid+0x34/0xe4 Call trace: dump_backtrace+0x0/0x298 show_stack+0x24/0x34 dump_stack+0x130/0x1a8 print_address_description+0x88/0x56c __kasan_report+0x1b8/0x2a0 kasan_report+0x14/0x20 __asan_load8+0x9c/0xa0 __list_del_entry_valid+0x34/0xe4 mtu3_req_complete+0x4c/0x300 [mtu3] mtu3_gadget_stop+0x168/0x448 [mtu3] usb_gadget_unregister_driver+0x204/0x3a0 unregister_gadget_item+0x44/0xa4 The Linux kernel CVE team has assigned CVE-2021-46930 to this issue. Affected and fixed versions =========================== Issue introduced in 5.2 with commit 83374e035b62 and fixed in 5.4.170 with commit 585e2b244dda Issue introduced in 5.2 with commit 83374e035b62 and fixed in 5.10.90 with commit 3b6efe0b7ba0 Issue introduced in 5.2 with commit 83374e035b62 and fixed in 5.15.13 with commit 249ddfbe0057 Issue introduced in 5.2 with commit 83374e035b62 and fixed in 5.16 with commit 8c313e3bfd9a Please see https://www.kernel.org or 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-2021-46930 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/usb/mtu3/mtu3_gadget.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/585e2b244dda7ea733274e4b8fa27853d625d3bf https://git.kernel.org/stable/c/3b6efe0b7ba03cc2acf0694b46d6ff33c5b4c295 https://git.kernel.org/stable/c/249ddfbe00570d6dc76208e88017937d4d374c79 https://git.kernel.org/stable/c/8c313e3bfd9adae8d5c4ba1cc696dcbc86fbf9bf