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 E78911EB5EB for ; Thu, 1 May 2025 14:15:01 +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=1746108902; cv=none; b=ejmFu8FYeu1DD5utOvQ4v95iHa+kWy5gD4sjBfOrVrpeJo3imfYPrNpYeuzL7Q0hBmpMVLU8GCYWBE4fqTw7ri/qHTNukgcld3Q9wvl3oT9ag8ubD9K6yz1eKRYT91mmsdFs/kkNxtI+eYE0B0osJFjDyAUP1GHrYOmyqpQhhVg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108902; c=relaxed/simple; bh=3QR0pkAi7fWNtIwW00mWm4i9ipsKRnPPbeQQMiAfGFo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QvtOVAL24AyKStSiOKQ8Bxyk7EiDT6/p2AP/W4VL1vx6AiE7wyrNY9JW5cOagMot68DInsGsDSAz+QwXccgUnwXp67Hooo6aBQsZfn4ux+448hcjYoJRCiHZfD6fJT4QedFmnVMYYxh7FmrxHKtPx4Exm++yKm2wzJVrEGOV9rA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0RhSIlnp; 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="0RhSIlnp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C798C4CEE3; Thu, 1 May 2025 14:15:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108901; bh=3QR0pkAi7fWNtIwW00mWm4i9ipsKRnPPbeQQMiAfGFo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0RhSIlnpXC8ENRTxqEOxRs48ItjTlJR+w2MAvXlMVnTt+eBzWRvFQBZHkVUxafi6b Uyjx/Pe//xTS8yeM9RCUc3+1etnhcfwEDO1MqyxWq3HtEJsmB/5yRqxyVEKGRYFdQL WXTRu7cf9sTmn+TkZGlj8hLG4pgXhMzeqq6ElW4E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49847: net: ethernet: ti: am65-cpsw: Fix segmentation fault at module unload Date: Thu, 1 May 2025 16:10:37 +0200 Message-ID: <2025050142-CVE-2022-49847-347b@gregkh> X-Mailer: git-send-email 2.49.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=4525; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ix/w4YuShdWc/uZ11/3w01MWIZVOOR1/zyBDgnISgQQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDctq6syOTmwq/7IiLTI9are17LXn1/+c8/Cz1bri/ EVMbVp/RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEdDXDgvlrjtbI3tdVN19m mbvdMq98tpXSVYYFPeYf5Yxc7Jcs+/9wYkDuojhDbeufAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net: ethernet: ti: am65-cpsw: Fix segmentation fault at module unload Move am65_cpsw_nuss_phylink_cleanup() call to after am65_cpsw_nuss_cleanup_ndev() so phylink is still valid to prevent the below Segmentation fault on module remove when first slave link is up. [ 31.652944] Unable to handle kernel paging request at virtual address 00040008000005f4 [ 31.684627] Mem abort info: [ 31.687446] ESR = 0x0000000096000004 [ 31.704614] EC = 0x25: DABT (current EL), IL = 32 bits [ 31.720663] SET = 0, FnV = 0 [ 31.723729] EA = 0, S1PTW = 0 [ 31.740617] FSC = 0x04: level 0 translation fault [ 31.756624] Data abort info: [ 31.759508] ISV = 0, ISS = 0x00000004 [ 31.776705] CM = 0, WnR = 0 [ 31.779695] [00040008000005f4] address between user and kernel address ranges [ 31.808644] Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP [ 31.814928] Modules linked in: wlcore_sdio wl18xx wlcore mac80211 libarc4 cfg80211 rfkill crct10dif_ce phy_gmii_sel ti_am65_cpsw_nuss(-) sch_fq_codel ipv6 [ 31.828776] CPU: 0 PID: 1026 Comm: modprobe Not tainted 6.1.0-rc2-00012-gfabfcf7dafdb-dirty #160 [ 31.837547] Hardware name: Texas Instruments AM625 (DT) [ 31.842760] pstate: 40000005 (nZcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 31.849709] pc : phy_stop+0x18/0xf8 [ 31.853202] lr : phylink_stop+0x38/0xf8 [ 31.857031] sp : ffff80000a0839f0 [ 31.860335] x29: ffff80000a0839f0 x28: ffff000000de1c80 x27: 0000000000000000 [ 31.867462] x26: 0000000000000000 x25: 0000000000000000 x24: ffff80000a083b98 [ 31.874589] x23: 0000000000000800 x22: 0000000000000001 x21: ffff000001bfba90 [ 31.881715] x20: ffff0000015ee000 x19: 0004000800000200 x18: 0000000000000000 [ 31.888842] x17: ffff800076c45000 x16: ffff800008004000 x15: 000058e39660b106 [ 31.895969] x14: 0000000000000144 x13: 0000000000000144 x12: 0000000000000000 [ 31.903095] x11: 000000000000275f x10: 00000000000009e0 x9 : ffff80000a0837d0 [ 31.910222] x8 : ffff000000de26c0 x7 : ffff00007fbd6540 x6 : ffff00007fbd64c0 [ 31.917349] x5 : ffff00007fbd0b10 x4 : ffff00007fbd0b10 x3 : ffff00007fbd3920 [ 31.924476] x2 : d0a07fcff8b8d500 x1 : 0000000000000000 x0 : 0004000800000200 [ 31.931603] Call trace: [ 31.934042] phy_stop+0x18/0xf8 [ 31.937177] phylink_stop+0x38/0xf8 [ 31.940657] am65_cpsw_nuss_ndo_slave_stop+0x28/0x1e0 [ti_am65_cpsw_nuss] [ 31.947452] __dev_close_many+0xa4/0x140 [ 31.951371] dev_close_many+0x84/0x128 [ 31.955115] unregister_netdevice_many+0x130/0x6d0 [ 31.959897] unregister_netdevice_queue+0x94/0xd8 [ 31.964591] unregister_netdev+0x24/0x38 [ 31.968504] am65_cpsw_nuss_cleanup_ndev.isra.0+0x48/0x70 [ti_am65_cpsw_nuss] [ 31.975637] am65_cpsw_nuss_remove+0x58/0xf8 [ti_am65_cpsw_nuss] The Linux kernel CVE team has assigned CVE-2022-49847 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit e8609e69470f369509b44d5f2619f94541fe9df6 and fixed in 6.0.9 with commit 442fd1bfe599bc54d118775e9e1a4fe913e4b369 Issue introduced in 5.18 with commit e8609e69470f369509b44d5f2619f94541fe9df6 and fixed in 6.1 with commit 1a0c016a4831ea29be09bbc8162d4a2a0690b4b8 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-49847 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/ethernet/ti/am65-cpsw-nuss.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/442fd1bfe599bc54d118775e9e1a4fe913e4b369 https://git.kernel.org/stable/c/1a0c016a4831ea29be09bbc8162d4a2a0690b4b8