From mboxrd@z Thu Jan 1 00:00:00 1970 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 D20B721B8E0 for ; Wed, 26 Feb 2025 02:27:30 +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=1740536850; cv=none; b=pJn2yTPlzi3ljOlC9dDkiSTrA1wG/EjFWNyP7lhXoqe/1irq7GKx9QGzAUYOdf6utHB2VrgV8FGo874hZoIlu7NjGphVFRPUU5ZJPYxy/1vyu84r19j03AdcZcLNY8MybOdLvC6EEl5jrtS+Qm2R5kgZGb0P0xnMb9AMmpHLBeg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536850; c=relaxed/simple; bh=GpcI3ozfUINJG1mR6HiGL38y2CbuRZzOZz/f7X0qgpk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EjGUKeY6Vs5/F8wnXY2tjcy7uFlbLf5mDtg7kXsSdNM+v++Xd07rHhEHpgbASqCQrr8w3K/G9c0JjmHlo3Rl4oOFA2mCYpYXyFerA4eUG9RrSg4Qh7IDW0FVpX5d+vhRQ41bgmG2yrYwYibAkoVZzTdwnb0L81Jo7c/10LqRfKI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Yh3W0eHv; 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="Yh3W0eHv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D633C4CEE6; Wed, 26 Feb 2025 02:27:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536850; bh=GpcI3ozfUINJG1mR6HiGL38y2CbuRZzOZz/f7X0qgpk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Yh3W0eHvLypzqkbxE/7bfiIst6cjeYuNlVdz1ounb4Nq5MNO2VB8+93h8Qww8oMox Wh7qNm1P7rJWsvjU5zTn+ctQ/3i6LWSgEENPhtGwAMwNOJ4+BGLWa8ZzgEEqjGgeJs XfDSFeorAX53eTtMA9lnfkwqdk9Mm7158pOLNba4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49692: net: phy: at803x: fix NULL pointer dereference on AR9331 PHY Date: Wed, 26 Feb 2025 03:24:15 +0100 Message-ID: <2025022627-CVE-2022-49692-0f29@gregkh> X-Mailer: git-send-email 2.48.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=3210; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GpcI3ozfUINJG1mR6HiGL38y2CbuRZzOZz/f7X0qgpk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qh7nzhU/War3mTnisKCuxld1Du3NZ9fqXA7uc+LiN jr6TXdjRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk14dhwZSHSYusn6bypE3t XuJpeP1HqMLvrwwLejdZFslvn/jj4fNtM+q6LMyF/tUdBAA= 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: net: phy: at803x: fix NULL pointer dereference on AR9331 PHY Latest kernel will explode on the PHY interrupt config, since it depends now on allocated priv. So, run probe to allocate priv to fix it. ar9331_switch ethernet.1:10 lan0 (uninitialized): PHY [!ahb!ethernet@1a000000!mdio!switch@10:00] driver [Qualcomm Atheros AR9331 built-in PHY] (irq=13) CPU 0 Unable to handle kernel paging request at virtual address 0000000a, epc == 8050e8a8, ra == 80504b34 ... Call Trace: [<8050e8a8>] at803x_config_intr+0x5c/0xd0 [<80504b34>] phy_request_interrupt+0xa8/0xd0 [<8050289c>] phylink_bringup_phy+0x2d8/0x3ac [<80502b68>] phylink_fwnode_phy_connect+0x118/0x130 [<8074d8ec>] dsa_slave_create+0x270/0x420 [<80743b04>] dsa_port_setup+0x12c/0x148 [<8074580c>] dsa_register_switch+0xaf0/0xcc0 [<80511344>] ar9331_sw_probe+0x370/0x388 [<8050cb78>] mdio_probe+0x44/0x70 [<804df300>] really_probe+0x200/0x424 [<804df7b4>] __driver_probe_device+0x290/0x298 [<804df810>] driver_probe_device+0x54/0xe4 [<804dfd50>] __device_attach_driver+0xe4/0x130 [<804dcb00>] bus_for_each_drv+0xb4/0xd8 [<804dfac4>] __device_attach+0x104/0x1a4 [<804ddd24>] bus_probe_device+0x48/0xc4 [<804deb44>] deferred_probe_work_func+0xf0/0x10c [<800a0ffc>] process_one_work+0x314/0x4d4 [<800a17fc>] worker_thread+0x2a4/0x354 [<800a9a54>] kthread+0x134/0x13c [<8006306c>] ret_from_kernel_thread+0x14/0x1c Same Issue would affect some other PHYs (QCA8081, QCA9561), so fix it too. The Linux kernel CVE team has assigned CVE-2022-49692 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 3265f421887847db9ae2c01a00645e33608556d8 and fixed in 5.18.8 with commit 66fa352215e8455ba2e5f33793535795bd3e36ca Issue introduced in 5.18 with commit 3265f421887847db9ae2c01a00645e33608556d8 and fixed in 5.19 with commit 9926de7315be3d606cc011a305ad9adb9e8e14c9 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-49692 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/net/phy/at803x.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/66fa352215e8455ba2e5f33793535795bd3e36ca https://git.kernel.org/stable/c/9926de7315be3d606cc011a305ad9adb9e8e14c9