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 CA9BB3D9525 for ; Tue, 6 Oct 2026 10:23:23 +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=1791282205; cv=none; b=r3MAEioP6C6IvyGJ4dSkSFDNVNnVdarMN9UPg8YsakUeNqQQOZ3SF5uM+thwyyc5kmrx2nx/7GzkudqnRDtUG185c3XsC2hL/4vboAKRnqfE/tLUwyBMbA4OQhLm5wVn35S4lPukRpWjNHkytC6e/VgpBdH8Oby5jKkVGiA1RwI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282205; c=relaxed/simple; bh=P51CbLzWpErvBpS+KqvIWyahHX8fZCVAaefwAhVOurw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BXSMCutuRsbsXBtWxI8bJOPC7CFA+xnu5pqQ17jVK8qbKEemG9hTSLL//7Cz/widogrJDyraDWCd013VwZS8TDe8sPcBbrZBHEX5hWZdd+ngplHS61kJ1aTAdJJu/3cUlHBucxqbdpEtly+3+bDZeueR0FCvlSocwjeyHboxfg8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=meXBBrA7; 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="meXBBrA7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D021D1F000FF; Tue, 6 Oct 2026 10:23:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282203; bh=nTQh2AcZaPpTKgiEtlidu2Ni8chWDQNHUdzAPLdszgE=; h=From:To:Cc:Subject:Date:Reply-To; b=meXBBrA7j1yjTfoIP601zgZuZO5TQlORhguxbk1brkV/qHw83oPZ9rMncInCth73E tCrg34AbwoIJRdotN0uoKFntTy007ymOwB4xuM9sYRHQh5j+nQHyMAY1cbTqdLeYT7 +cFA0mn0FVrjlJz7SJ8xnRtVX2n3/FDan+bZYUQ4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98234: net/sched: hhf: cap hh_flows_limit at change time Date: Tue, 6 Oct 2026 10:45:35 +0200 Message-ID: <2026100647-CVE-2026-98234-f74a@gregkh> X-Mailer: git-send-email 2.56.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=4505; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ed+0iB2oSqIyPOCaOKb9yVfocOEVHAN9PgDJ7LgRimg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtvz/KW3DvDlq+q07u3b9389SFfXT8uuLz87T40Jv/ EyXdZkg3RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATecPKsGCZx4Z4qxZZS1e+ tMVSfF08c2v43zDMs5m9y+yVa9xRlVLRRTvvmxy/Uin6AwA= 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/sched: hhf: cap hh_flows_limit at change time hhf_change() stores TCA_HHF_HH_FLOWS_LIMIT with no upper bound. A huge hh_flows_limit lets each new heavy-hitter flow pass the hh_flows_current_cnt check in alloc_new_hh() and forces a fixed-size kzalloc(GFP_ATOMIC) per flow under spoofed traffic, for unbounded memory growth. Bound the attribute with NLA_POLICY_MAX() at 2*HH_FLOWS_CNT (the hhf_init() default) and report the rejected value via extack. The deprecated nested parse is kept: legacy tc does not set NLA_F_NESTED on TCA_OPTIONS. Configs relying on hh_limit above the default were relying on unbounded, unsafe behaviour and are not supported going forward. hhf_init() also ran hhf_change() before setting the default hh_flows_limit, so a user-supplied hh_limit at add time was clobbered back to 2048. Set the default before hhf_change() so the configured value sticks. This is a follow-up to commit eb56a495f59b ("net/sched: hhf: clamp quantum in change and init paths"), which bounded the quantum of the same qdisc; the hh_flows_limit bound is the remaining unbounded knob of that series' scope. Conditions to recreate the bug: CAP_NET_ADMIN in a user namespace; tc qdisc change dev X root hhf hh_limit 4294967295 succeeds and the value is echoed by tc qdisc show, unbounding heavy-hitter flow allocations; also tc qdisc add dev X root hhf hh_limit 500 stores 2048 instead of 500. The Linux kernel CVE team has assigned CVE-2026-98234 to this issue. Affected and fixed versions =========================== Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 5.10.271 with commit 7adfd0a42174b85c6bd678858ecd6674f403f336 Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 5.15.222 with commit 35fd423a5c5132c6f4321f6c4f0a7b4b90af830c Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 6.1.189 with commit 06d2a101e89063cb0b9b459104db48bdfb0a797d Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 6.6.158 with commit d8e2f1f0263b7c97b222c06070cccf13e0ab7112 Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 6.12.112 with commit f3f4a5cb4a6e9b1f1f25d34dfc25f836a1601db4 Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 6.18.54 with commit 1731ff1d20489afe4cd01b7d16d37f324746ac54 Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 7.2.8 with commit f6547d27ce2093c5627636fb63dd0b7523c466f9 Issue introduced in 3.14 with commit 10239edf86f137ce4c39b62ea9575e8053c549a0 and fixed in 7.3-rc4 with commit 2cef2588c995722a901368def30befeef9ae55c6 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-98234 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: net/sched/sch_hhf.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/7adfd0a42174b85c6bd678858ecd6674f403f336 https://git.kernel.org/stable/c/35fd423a5c5132c6f4321f6c4f0a7b4b90af830c https://git.kernel.org/stable/c/06d2a101e89063cb0b9b459104db48bdfb0a797d https://git.kernel.org/stable/c/d8e2f1f0263b7c97b222c06070cccf13e0ab7112 https://git.kernel.org/stable/c/f3f4a5cb4a6e9b1f1f25d34dfc25f836a1601db4 https://git.kernel.org/stable/c/1731ff1d20489afe4cd01b7d16d37f324746ac54 https://git.kernel.org/stable/c/f6547d27ce2093c5627636fb63dd0b7523c466f9 https://git.kernel.org/stable/c/2cef2588c995722a901368def30befeef9ae55c6