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 B5813197543 for ; Tue, 16 Jul 2024 11:13:46 +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=1721128426; cv=none; b=ISLTN4FZjQDz7IFviWl/DOkVw0MOcQWNlaFwlQHrHnDTUkChwZY4BSWNC5hd7HCRiX7c2X8AG9wDbr1NMkuCNup4dVpceop6b6iBWUViEiFIuw2n14wqd6VlRPw+Qt8zxUsJm8HUIKHEDiiJEDuAUGP8dI0D+1TA+irIIcpICPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721128426; c=relaxed/simple; bh=RmM3Fqa3MdpJZWgRRjrmkxKVTk03zgIjA/5+a8r9sPo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CuxZUz+qEFblvZngpOpOItOlGE4aYUXBCIWmP9cs18e7vmPyBqfrOBFTZ7eC3Fz5rQLJfnAR67+bvmcFjpwMz5ikPwUtk/6QTyhlC3Fsl2ajZtTf2/XoupJhZ7MT6dCfCOq/OVspogwQRoHVMQVW5PXpGN8ZkxRpWqMNN5wgh8o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=k6FaZEUV; 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="k6FaZEUV" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEC54C116B1; Tue, 16 Jul 2024 11:13:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721128426; bh=RmM3Fqa3MdpJZWgRRjrmkxKVTk03zgIjA/5+a8r9sPo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=k6FaZEUVXI9W1tvyFduVO0TuSyg2ZeEbG+7Hfl9F6eNBECv0bHSVvmqOJ9N+2unWp nYVYDPSOUFWmXjXb9XnAPp3VBWt2M3mT1xBP5O58Ljp639qiym4ybaE6ImxBpcMZkv 8JS0ed44xAwS9byeN4JmVhzkqt6M1w7fyet5LZRg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48783: net: dsa: lantiq_gswip: fix use after free in gswip_remove() Date: Tue, 16 Jul 2024 13:13:37 +0200 Message-ID: <2024071633-CVE-2022-48783-baab@gregkh> X-Mailer: git-send-email 2.45.2 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=2036; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RmM3Fqa3MdpJZWgRRjrmkxKVTk03zgIjA/5+a8r9sPo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnTQu9K1Z5YN2PmvH/f5rvcrhHf39V3fkPUp1MRWh0+V U4nODdodsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEYlkZ5gcI2vjYfJFVXyyV /HUpE19wVkzoEoZ5dkzR/AcPZK/Zp1E6La1fS6/q8vVdAA== 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: dsa: lantiq_gswip: fix use after free in gswip_remove() of_node_put(priv->ds->slave_mii_bus->dev.of_node) should be done before mdiobus_free(priv->ds->slave_mii_bus). The Linux kernel CVE team has assigned CVE-2022-48783 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.101 with commit e177d2e85ebc and fixed in 5.10.102 with commit f48bd3413771 Issue introduced in 5.15.24 with commit b5652bc50dde and fixed in 5.15.25 with commit df2495f329b0 Issue introduced in 5.16.10 with commit 2443ba2fe396 and fixed in 5.16.11 with commit c61f599b8d33 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-48783 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/dsa/lantiq_gswip.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/f48bd34137718042872d06f2c7332b3267a29165 https://git.kernel.org/stable/c/df2495f329b08ac0d0d3e6334a01955ae839005e https://git.kernel.org/stable/c/c61f599b8d33adfa256126a6695c734c0de331cb https://git.kernel.org/stable/c/8c6ae46150a453f8ae9a6cd49b45f354f478587d