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 C3802143890 for ; Tue, 21 May 2024 15:07: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=1716304063; cv=none; b=X32RZjcjSOrdnPSJ1/vj1bVKsWXeRImNnYzXbGdXfkKZQ52z6jR2AugZTJbQuCCEpgkx8/b/caE5/Mrt1dGope5KnCep3OAfsjJ6CtuiTPEN8gDEnwHlh8CFHc0wOIqBzur5PRaBHy9heNN3gBRgxHILeUv4diOhRx7C1HdYkR0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716304063; c=relaxed/simple; bh=UsXzce9ZYmDJ/uq+F6CUwyaqC9EuKbinyLIZ/+T1AgI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lTGW5owbAgHNGV46zCKZ4XcEBoe9AEliggigMsZi8khk8JCAqEU7lZgMA4cvwnG/WBrpdCb+jRuzya908sAuMWdDf1ZcNp35/etCwJ9ywygmh3C+6kn7hBShvTPWVKn+3MHnSQCcBh8TZ0eaKs2a7EVZqNSDCXL9F01kDL2lqr0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n3c1aOcu; 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="n3c1aOcu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FEA6C2BD11; Tue, 21 May 2024 15:07:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716304063; bh=UsXzce9ZYmDJ/uq+F6CUwyaqC9EuKbinyLIZ/+T1AgI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=n3c1aOcut7VZKX4WG2b/DKKrE4Tte08aU90xMQMjHMoSPcI+KUh4CTxl6DXWMjkyq oTv2zktYVmfO6Uo9oRyvZ9fN+gRYntSgFVaHsDOEdVlzn1MM+kMGbtdZdVOWbTpd0D xV32PiV13QB52GUDTKLdRw5GH1JQJPFtYrEIgmII= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47409: usb: dwc2: check return value after calling platform_get_resource() Date: Tue, 21 May 2024 17:04:26 +0200 Message-ID: <2024052151-CVE-2021-47409-1856@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=2134; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=UsXzce9ZYmDJ/uq+F6CUwyaqC9EuKbinyLIZ/+T1AgI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+228IqzrverEoMIm1JplFOqGB7ZGXjLP+m/Nzt8ycE yHV+KK+I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyaybDgkkxnxk/8ZefWvym 4eqGPTf1N38XnMAwP26ytmJ73YWDP/MyGcPVs3e77yzvBgA= 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: dwc2: check return value after calling platform_get_resource() It will cause null-ptr-deref if platform_get_resource() returns NULL, we need check the return value. The Linux kernel CVE team has assigned CVE-2021-47409 to this issue. Affected and fixed versions =========================== Fixed in 4.14.250 with commit 4b7f4a0eb92b Fixed in 4.19.210 with commit a7182993dd8e Fixed in 5.4.152 with commit 8b9c1c33e51d Fixed in 5.10.72 with commit 2754fa3b73df Fixed in 5.14.11 with commit 337f00a0bc62 Fixed in 5.15 with commit 856e6e8e0f93 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-47409 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/dwc2/hcd.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/4b7f4a0eb92bf37bea4cd838c7f83ea42823ca8b https://git.kernel.org/stable/c/a7182993dd8e09f96839ddc3ac54f9b37370d282 https://git.kernel.org/stable/c/8b9c1c33e51d0959f2aec573dfbac0ffd3f5c0b7 https://git.kernel.org/stable/c/2754fa3b73df7d0ae042f3ed6cfd9df9042f6262 https://git.kernel.org/stable/c/337f00a0bc62d7cb7d10ec0b872c79009a1641df https://git.kernel.org/stable/c/856e6e8e0f9300befa87dde09edb578555c99a82