Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 19C37430CE5 for ; Fri, 25 Sep 2026 10:33:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332418; cv=none; b=ClvyyrZYb2pt78MINBR+80nP1+rbnC/3apXtZIO4BsBfwoIECIMjBZyu4rsyQqIYdVvU08624Jzk0pLuFpfvSizUcK9p02YN8vvgyLxTZDINWCpDAH3LfSqL3wgC6YwlpLgbsDq/6N4R5jZ1BPQ4yFn8w2GkiDLT/6H6VcEziDc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332418; c=relaxed/simple; bh=09A30nEgNopENsELnQf/ugrP5e0YvpLVbeAC4dwbPcU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c16A2NLRb2/pBmjK8LhNI7ewG6Vk5AzltbM+qpzbtwQhBE2aVRzj8u05pUWkuLrLBRG42+fpWA8U2bDJNsy4QoA9fpb6yrEDqyh9VSQdRZ0CXoFEFOcvwnglbSdeBl+Nn+03e3OanE0Jb/CrsglZNhCiiSt+dW3oVE4Id5rBvOE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LXw/5hPe; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LXw/5hPe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74B2A1F000FF; Fri, 25 Sep 2026 10:33:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332417; bh=dFMc36NooiTs2fIh4BnNosZvY2mSVQk2DGq8yj3LT3c=; h=From:To:Cc:Subject:Date:Reply-To; b=LXw/5hPe9Vh460hcfmYNHfMRfLttjlZY3w8xSrUGRtMIZDxiFJ1/0X2bgV+uRzoqn 4M7ye8gmA/YECqKU/juj1g/EjeoKQxEovHJzxUFLURAeSRzcQOe8ghF98eyV3IHI8B 3nyUjSZFc15ASVO08bnl9pvvFUoywRRdeVjABIs0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98029: eth: nfp: bound the ntuple rule dump by the caller's buffer size Date: Fri, 25 Sep 2026 12:25:31 +0200 Message-ID: <2026092528-CVE-2026-98029-8b9d@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2971; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pjwcnvjBhno+m1/mPiZqbkBOYg20KQxIWi6pmZ6Qtjs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvFOMzh2/st7BxHrd6687c+aE3bia+aUk0ttn0VKNV z77f/Ld7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJeE9imJ+yUepB2O0Dfru+ J/TPCLJ+adKcwMwwz6jKp2dF14qGh0vdnZO18v+77z8cBwA= 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: eth: nfp: bound the ntuple rule dump by the caller's buffer size nfp_net_get_fs_loc() dumps every entry of nn->fs.list into rule_locs[] without consulting cmd->rule_cnt, which is how many entries the caller had room for. ETHTOOL_GRXCLSRLALL requires no CAP_NET_ADMIN and the ioctl sizes the buffer from the rule_cnt userspace passes in, so once an admin has installed flow steering rules any user can ask for fewer slots than there are rules and run off the end of the allocation. A rule_cnt of 0 leaves the buffer pointer NULL and the walk dereferences it. Bail out with -EMSGSIZE when the buffer fills up, the way the other ntuple capable drivers do, and report how many locations were filled so a shrinking rule list does not leave the caller reading stale slots. The Linux kernel CVE team has assigned CVE-2026-98029 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 9eb03bb1c035ff6e2c3a34046419446588253dda and fixed in 6.12.111 with commit 82812583b9c69c241da6da4186f14e9df2516488 Issue introduced in 6.8 with commit 9eb03bb1c035ff6e2c3a34046419446588253dda and fixed in 6.18.53 with commit a7e023c63e855761c1426cee8d17c2bca32aa339 Issue introduced in 6.8 with commit 9eb03bb1c035ff6e2c3a34046419446588253dda and fixed in 7.2.7 with commit ecebfdaab72a504c10f4907bd00fc3b705ec3b12 Issue introduced in 6.8 with commit 9eb03bb1c035ff6e2c3a34046419446588253dda and fixed in 7.3-rc3 with commit f1986bf87b0709c95126fe196cf39e5b8c8453a1 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-2026-98029 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/netronome/nfp/nfp_net_ethtool.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/82812583b9c69c241da6da4186f14e9df2516488 https://git.kernel.org/stable/c/a7e023c63e855761c1426cee8d17c2bca32aa339 https://git.kernel.org/stable/c/ecebfdaab72a504c10f4907bd00fc3b705ec3b12 https://git.kernel.org/stable/c/f1986bf87b0709c95126fe196cf39e5b8c8453a1