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 35DCF1D1506 for ; Mon, 21 Oct 2024 20:10:25 +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=1729541426; cv=none; b=mIY1dPuZUhV6W8gxOAsnr2WXOZ9NX8G6U5p5QjHsOadsWyewSqauFkV7ASahW93qQqmxkIbZmX5EfEzF/W522sgJVMYOCrMWl5qoZwqkEH2LfJ1bJNMVwnBxQb4+Qzdk89ooiexGx/sfGE1TkFdV5amojg9cAeastrAAF1Ar5Yk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541426; c=relaxed/simple; bh=jcCc43fMxM+m7aCm3Ke+qs73doGZGDfGA0mXYCyx4CY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WUB4qn0HcmDBqrS92Im5KSwwabI/LrtUX/p3EjA3ESF1Yq+Y7hfHlYvm3/q5LSOZ0SfKNJaLyjHt3dkAyn9knHmgQw+zz10D2mOOYkLsJlzeXws6sIaWBALhzY34Kl4W+BvDaVDSbv7b6pEs8aOG7O6n4ciyp9vJH10W1qoZvKk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Vk/6nnAn; 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="Vk/6nnAn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 443E7C4CEC3; Mon, 21 Oct 2024 20:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541425; bh=jcCc43fMxM+m7aCm3Ke+qs73doGZGDfGA0mXYCyx4CY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Vk/6nnAna+s5j9Y3RoOVnLpDaslg3MdqGDiXoCYDjwntolWlAaKOrLyelSqLTL5Bn mwl5XIhFgU5qvL2NAaPSAj3Lja9z3kmNOiAC0Up2QpeFKgjL0YHvlVSm/m12vOR8Y6 0fu1akB4ovD64a2JBjEXNgsc38T8mcU3B+x82arM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48960: net: hisilicon: Fix potential use-after-free in hix5hd2_rx() Date: Mon, 21 Oct 2024 22:05:52 +0200 Message-ID: <2024102142-CVE-2022-48960-c9af@gregkh> X-Mailer: git-send-email 2.47.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=2845; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jcCc43fMxM+m7aCm3Ke+qs73doGZGDfGA0mXYCyx4CY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW8Qiju0pPaj6cd+H50uPJl8UbhK5qvtuamYt29xp8 2zMMzy/dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEbn1hWHC9+V3Od3lhc+Xn J/9Gl6iLaerO62NYcCZcI6NjzZVvAWyx9xwfNfU8SgxfBQA= 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: hisilicon: Fix potential use-after-free in hix5hd2_rx() The skb is delivered to napi_gro_receive() which may free it, after calling this, dereferencing skb may trigger use-after-free. The Linux kernel CVE team has assigned CVE-2022-48960 to this issue. Affected and fixed versions =========================== Issue introduced in 3.16 with commit 57c5bc9ad7d7 and fixed in 4.9.336 with commit 179499e7a240 Issue introduced in 3.16 with commit 57c5bc9ad7d7 and fixed in 4.14.302 with commit 8067cd244cea Issue introduced in 3.16 with commit 57c5bc9ad7d7 and fixed in 4.19.269 with commit 3a4eddd1cb02 Issue introduced in 3.16 with commit 57c5bc9ad7d7 and fixed in 5.4.227 with commit 1b6360a093ab Issue introduced in 3.16 with commit 57c5bc9ad7d7 and fixed in 5.10.159 with commit 93aaa4bb72e3 Issue introduced in 3.16 with commit 57c5bc9ad7d7 and fixed in 5.15.83 with commit b8ce0e6f9f88 Issue introduced in 3.16 with commit 57c5bc9ad7d7 and fixed in 6.0.13 with commit b6307f7a2fc1 Issue introduced in 3.16 with commit 57c5bc9ad7d7 and fixed in 6.1 with commit 433c07a13f59 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-48960 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/hisilicon/hix5hd2_gmac.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/179499e7a240b2ef590f05eb379c810c26bbc8a4 https://git.kernel.org/stable/c/8067cd244cea2c332f8326842fd10158fa2cb64f https://git.kernel.org/stable/c/3a4eddd1cb023a71df4152fcc76092953e6fe95a https://git.kernel.org/stable/c/1b6360a093ab8969c91a30bb58b753282e2ced4c https://git.kernel.org/stable/c/93aaa4bb72e388f6a4887541fd3d18b84f1b5ddc https://git.kernel.org/stable/c/b8ce0e6f9f88a6bb49d291498377e61ea27a5387 https://git.kernel.org/stable/c/b6307f7a2fc1c5407b6176f2af34a95214a8c262 https://git.kernel.org/stable/c/433c07a13f59856e4585e89e86b7d4cc59348fab