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 50AA8170A1A for ; Wed, 18 Sep 2024 07:19:55 +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=1726643996; cv=none; b=Ic5ha+kwibhWrhOdZ5xr7BWMMTiKuK4Gstg+zRalAIv4uU2Sg2MJ8ntSiqOyhmGQws9vmaucrIpSDUwfC/ijr/9rzbOnzuqGZVa0UW7ScgNuOmeFXUvuFdcUxfGakllK0J3pQiQv9bTHz7aFcj1J/lyO15TG5k0glspYhvi8wUg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643996; c=relaxed/simple; bh=evmKsXmcuSL77AY0kJKEf2EoEc11ofWcCMZaNfWUqu8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X71z3SG3VIvW3g94rz/IO0zYLpJNr23XmzTAWs/j5PxyHyArGFOOpdzLhoo+yee9n/1NucwhxwFW0j31jE8/O+BPi76JalYhD938NyU6Bl8y18JwX7ccf3CTDL/MpXA4M+wDOzxs8qWv3be0R45QTPboquPlWWHNt04Al82oZA4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DqgO+20A; 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="DqgO+20A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 839B2C4CEC3; Wed, 18 Sep 2024 07:19:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643995; bh=evmKsXmcuSL77AY0kJKEf2EoEc11ofWcCMZaNfWUqu8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DqgO+20ALKxNspAfYqBoUnFkHefzdV07mWoJ1Mo4rzjJRVIw5tKE0WYEnUYYXnmCw M1oE5DxRaWyJqpN3O4VWWsve//GbxdObd6FonugH22STynr35XNS6ZQK6XVRy5ff4N 0KfaxnHa38aMvW9keog0mDZ8/++ipH26sawKiLnM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46799: net: ethernet: ti: am65-cpsw: Fix NULL dereference on XDP_TX Date: Wed, 18 Sep 2024 09:17:34 +0200 Message-ID: <2024091856-CVE-2024-46799-cc5c@gregkh> X-Mailer: git-send-email 2.46.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=2104; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=evmKsXmcuSL77AY0kJKEf2EoEc11ofWcCMZaNfWUqu8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6jKbb9nsySr+ly01af8S9dOu8yfwa8gkRNxXtYqq/ P6AoVq/I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYyYRnDgqUK5s0X9XcxlXuy OjabX5j04ty3boZ5lsLZGf2m+zbYfZluFniivoDl9ruJAA== 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: ethernet: ti: am65-cpsw: Fix NULL dereference on XDP_TX If number of TX queues are set to 1 we get a NULL pointer dereference during XDP_TX. ~# ethtool -L eth0 tx 1 ~# ./xdp-trafficgen udp -A -a eth0 -t 2 Transmitting on eth0 (ifindex 2) [ 241.135257] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000030 Fix this by using actual TX queues instead of max TX queues when picking the TX channel in am65_cpsw_ndo_xdp_xmit(). The Linux kernel CVE team has assigned CVE-2024-46799 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit 8acacc40f733 and fixed in 6.10.10 with commit 2e7189d2b1de Issue introduced in 6.10 with commit 8acacc40f733 and fixed in 6.11 with commit 0a50c35277f9 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-2024-46799 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/2e7189d2b1de51fc2567676cd4f96c0fe0960b9f https://git.kernel.org/stable/c/0a50c35277f96481a5a6ed5faf347f282040c57d