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 2DA8C12FB0B for ; Tue, 21 May 2024 14:22:44 +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=1716301365; cv=none; b=qhy/ajVmw7HoFKnsqmSuAdFwPjg947yayubCoqDu6Al9KK5SvaXkvx0OTpD+KGZUx3Qu554Fn081tvA9oQGPtGHctpZmpmCX5bMUo4rMslDX3SnzxkTlP58oAuUDG9J3TQ+oeupqGFWnuTXn4d9Covj46e/B12JoFs2ZlzYIhgc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301365; c=relaxed/simple; bh=hcENcM7uvaV5GRxNNR0xfqH4SFPV9QtjKTzg5OiJE4c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PeJXMwBrze/xpWI261PBl8eCjQ7vUU9xqCYehw8x7HfD6n+A3u1uLKsIflHJ9EAfiDH/qYZgR2++jJR+TFGzQoOaE+Ao3F2eLH5GLcEO7TyweqepkkcqYgXwr3ZdHYqlCTSf0U/k+jMxlbT6kl3/ZIVRTIAplkBmr91gG3ujZr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cpcoUAZR; 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="cpcoUAZR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53BC6C2BD11; Tue, 21 May 2024 14:22:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301364; bh=hcENcM7uvaV5GRxNNR0xfqH4SFPV9QtjKTzg5OiJE4c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cpcoUAZRvqSB+gamF2VH96kP1+qzTn5KBi8dVeb+yLgfxh028m7GNqYzFjGRMCEIB 17YIBF2MfEWvFGDqKohXQiiYb5hRMP7r84B0+5vPTprqY3ZIrzAZgzm1K5wG7PnLxI RHb4qGR3WkYENl0sVJZ78H9af27pYiEuygj81+ME= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47270: usb: fix various gadgets null ptr deref on 10gbps cabling. Date: Tue, 21 May 2024 16:20:24 +0200 Message-ID: <2024052150-CVE-2021-47270-700e@gregkh> X-Mailer: git-send-email 2.45.1 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=3050; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hcENcM7uvaV5GRxNNR0xfqH4SFPV9QtjKTzg5OiJE4c=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+a9vMft2f5hR34dWEfRNzvwo6XF80h+1f6skan6cTO RpOL/G42BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATqctmWLCcx9dk5r/9ZfLX Wd7XPNgV6q8UkMiwYLrJlpKbm4TbVP34mWW2X29gW5wpDwA= 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: fix various gadgets null ptr deref on 10gbps cabling. This avoids a null pointer dereference in f_{ecm,eem,hid,loopback,printer,rndis,serial,sourcesink,subset,tcm} by simply reusing the 5gbps config for 10gbps. The Linux kernel CVE team has assigned CVE-2021-47270 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit eaef50c76057 and fixed in 4.9.273 with commit beb1e67a5ca8 Issue introduced in 4.6 with commit eaef50c76057 and fixed in 4.14.237 with commit 8cd5f45c1b76 Issue introduced in 4.6 with commit eaef50c76057 and fixed in 4.19.195 with commit 10770d2ac009 Issue introduced in 4.6 with commit eaef50c76057 and fixed in 5.4.126 with commit b4903f7fdc48 Issue introduced in 4.6 with commit eaef50c76057 and fixed in 5.10.44 with commit 4b289a0f3033 Issue introduced in 4.6 with commit eaef50c76057 and fixed in 5.12.11 with commit f17aae7c4009 Issue introduced in 4.6 with commit eaef50c76057 and fixed in 5.13 with commit 90c4d05780d4 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-2021-47270 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/gadget/function/f_ecm.c drivers/usb/gadget/function/f_eem.c drivers/usb/gadget/function/f_hid.c drivers/usb/gadget/function/f_loopback.c drivers/usb/gadget/function/f_printer.c drivers/usb/gadget/function/f_rndis.c drivers/usb/gadget/function/f_serial.c drivers/usb/gadget/function/f_sourcesink.c drivers/usb/gadget/function/f_subset.c drivers/usb/gadget/function/f_tcm.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/beb1e67a5ca8d69703c776db9000527f44c0c93c https://git.kernel.org/stable/c/8cd5f45c1b769e3e9e0f4325dd08b6c3749dc7ee https://git.kernel.org/stable/c/10770d2ac0094b053c8897d96d7b2737cd72f7c5 https://git.kernel.org/stable/c/b4903f7fdc484628d0b8022daf86e2439d3ab4db https://git.kernel.org/stable/c/4b289a0f3033f465b4fd51ba995251a7867a2aa2 https://git.kernel.org/stable/c/f17aae7c4009160f0630a91842a281773976a5bc https://git.kernel.org/stable/c/90c4d05780d47e14a50e11a7f17373104cd47d25