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 4CC5A12FB3C for ; Tue, 21 May 2024 14:23:13 +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=1716301394; cv=none; b=UmePkKEe3vuEyYQlrfNrtI67THWlz/hXM9m7H6XPXsWFK7XYsmQ7CkVtKSkD7fmmN7jORE4u/oMhVsD7hPaxQ6ecyBLSLzycVd1gW5Nid53mdZPI9KHDpeLOO5XpBSxd5LbkrCIZcLL6k5pqkq4PFh7c0v6BrDsHzwBD/tPnOtA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301394; c=relaxed/simple; bh=DH+bDBQaO/TZYX+HmybFOvgg20pRRs5LoScMOExhdWQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tGZQA853k+UuYu1mpcXu44uKcLp96dh27AK2sN/OsGIE2DHbcSPQZHSIwu8n1TTwn95SVNd/jOOQnAYd2sXuikJRFzyEs53h5f7ES8/mVkBJC+U/+3Bk0BU9NRY0lL75HTJyadCs51NNaNGTigzN8zaYsaBM+F13Puq7FcNPC3U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=woZzGBGs; 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="woZzGBGs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B8B1C32789; Tue, 21 May 2024 14:23:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301393; bh=DH+bDBQaO/TZYX+HmybFOvgg20pRRs5LoScMOExhdWQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=woZzGBGsEvsB37SqCqBBmiZThXSSPDTjswLRLFy7m5eApf1He7OgjcGqYBn4hq9c2 WRQh+7RXnx2TdNkj0UNMjm1HUwLfkugXSaIUBkjptpO9YE64EXQlZcVF+NJfjtZU9U VEbNxwLNnYZyELTFB2IU2svN0ax23JlPiMl2hm9M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47273: usb: dwc3-meson-g12a: fix usb2 PHY glue init when phy0 is disabled Date: Tue, 21 May 2024 16:20:27 +0200 Message-ID: <2024052151-CVE-2021-47273-1c92@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=2465; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DH+bDBQaO/TZYX+HmybFOvgg20pRRs5LoScMOExhdWQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+a9t1PG9vtGyqCwzc/N3K/WG8e8HMaz/C2s02sHeyP tGJE/7XEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOxbGeYn9Kb4OH+673Kq6Sz 27VbVCTqSzP3McwveczvJio2f67cfxa+Mv8bqcU3JQsA 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: dwc3-meson-g12a: fix usb2 PHY glue init when phy0 is disabled When only PHY1 is used (for example on Odroid-HC4), the regmap init code uses the usb2 ports when doesn't initialize the PHY1 regmap entry. This fixes: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000020 ... pc : regmap_update_bits_base+0x40/0xa0 lr : dwc3_meson_g12a_usb2_init_phy+0x4c/0xf8 ... Call trace: regmap_update_bits_base+0x40/0xa0 dwc3_meson_g12a_usb2_init_phy+0x4c/0xf8 dwc3_meson_g12a_usb2_init+0x7c/0xc8 dwc3_meson_g12a_usb_init+0x28/0x48 dwc3_meson_g12a_probe+0x298/0x540 platform_probe+0x70/0xe0 really_probe+0xf0/0x4d8 driver_probe_device+0xfc/0x168 ... The Linux kernel CVE team has assigned CVE-2021-47273 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 013af227f58a and fixed in 5.10.44 with commit 750a0d755642 Issue introduced in 5.8 with commit 013af227f58a and fixed in 5.12.11 with commit d8dd3754e707 Issue introduced in 5.8 with commit 013af227f58a and fixed in 5.13 with commit 4d2aa178d2ad 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-47273 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/dwc3/dwc3-meson-g12a.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/750a0d75564293be3ed50f13ef7f38ab75106421 https://git.kernel.org/stable/c/d8dd3754e707104a34f8ec595034d503ea8871a2 https://git.kernel.org/stable/c/4d2aa178d2ad2fb156711113790dde13e9aa2376