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 F226E494A02 for ; Fri, 25 Sep 2026 10:32:44 +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=1790332366; cv=none; b=JZrSPHB149e4A17Clf9HdYAqZcVpd0dZI3SjF0NrhAbKoqiI9M1U9xpfq6/9dGpQuTKpjp0vMSS/E+fzNbKVcpmW/6d9BjexM1UggRsJorKDum3CheTZY7Dkr1CEGB5qY2aucOvWqB6cVlPaolfo0RqWjYivDe1LdVlifW1nXYs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332366; c=relaxed/simple; bh=M5mxDbGF6teGMzPOUJUVJ8jzwjxmojVRSd1HazAXSEc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aHP3Frsr2WIqvdFnMaRssi4W/Boyr7IDagWJU2zwxg15aG2LKKD/oPHDRKHpOr/CU2brXgqIL5xUfbVPKdrUaJ05pYK6Cidy3KV6QG0U2lvwtuUh7iPiAPwOXRHRAu5pcvvXkRyHvLgZdbyJ3ZN9nIJ/GxX0x5PnqbOOnrrFEh4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OprWL0op; 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="OprWL0op" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 586011F000FF; Fri, 25 Sep 2026 10:32:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332364; bh=DoT7jbIJh3I4HTGGPk0zM7zK3Q/w7NirThQ+4iLZLYM=; h=From:To:Cc:Subject:Date:Reply-To; b=OprWL0op3WGqZWIuf5cHh5TH+KpRv23KXCkmA9+6XVgmmU9mpG1N9BjDVeE0XYKtK +mYAqvI5z/kRGlrzibtfRmbd7FFkKSKPhfUA+UOdVonAqUwqDedDyvqwa8OBtD95yQ mI6LEw5qXL9+x4RJJQH7MmBIl4g5n0M1q5/cEGXc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98012: net/sched: sfq: clamp quantum in change path Date: Fri, 25 Sep 2026 12:25:14 +0200 Message-ID: <2026092525-CVE-2026-98012-7d10@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=3279; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YEEjPKTWAGgFdQRnBOKfjySO50UJAQcOa3rkuIoCH0A=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvBM7a18EmMls4k8022nZ+6r20KPQrQeOq2ik7Aper Bf/dfvGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI/rcMC85uWH9gJ8/HbdFb eieGM7DYhD6S/sQwT+lOqODS00lufOx7ogN8EjbmCB5rAgA= 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: sfq: clamp quantum in change path sfq_change() accepts any non-negative quantum (only rejects (int)ctl->quantum < 0). With a crafted size table qdisc_pkt_len reaches ~2 GiB, so quantum=1 makes the deficit-refill loop spin ~2^31 times under the qdisc lock (a soft lockup / denial of service). Add max(256U, ...) matching fq_codel_change(). Reject quantum > 1<<20 with -EINVAL, matching fq_codel_change() and the init clamp. Conditions to recreate the bug: CONFIG_NET_SCH_SFQ=y. Requires CAP_NET_ADMIN (namespace-local via unshare -Urn suffices). tc qdisc add dev dummy0 root sfq tc qdisc change dev dummy0 root sfq quantum 1 stab data 32768 size_log 15 cell_log 0 The Linux kernel CVE team has assigned CVE-2026-98012 to this issue. Affected and fixed versions =========================== Issue introduced in 6.12.13 with commit 82bd38bd5467ece1ee274b493f51326cf5220a5a and fixed in 6.12.111 with commit f3820dce042a673fcb28cc31c87ee14257e21a17 Issue introduced in 6.13 with commit e4650d7ae4252f67e997a632adfae0dd74d3a99a and fixed in 6.18.53 with commit 534cd7ecbbc6e8a974f4003a5c1557439c6e0a72 Issue introduced in 6.13 with commit e4650d7ae4252f67e997a632adfae0dd74d3a99a and fixed in 7.2.7 with commit e6c1cb728e389354203a72bc77464c222a247aeb Issue introduced in 6.13 with commit e4650d7ae4252f67e997a632adfae0dd74d3a99a and fixed in 7.3-rc3 with commit fb9f88a33c516ea5c0bcd9a22ca288b246b34567 Issue introduced in 5.4.297 with commit 843cacb88f42f426973f1ed11c6fb562558efb27 Issue introduced in 5.10.239 with commit 4919649699c5f4dbae08b8e2ed536fc9d6c3c2aa Issue introduced in 5.15.186 with commit 548cf048b426729a7a1fa6acd1271c010c9a7380 Issue introduced in 6.1.129 with commit c49ac48fac51a6a54efd5963954d02bacf075085 Issue introduced in 6.6.76 with commit 58ae7465f0e7113d45aa88a66bf2d203c71c195e 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-98012 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_sfq.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/f3820dce042a673fcb28cc31c87ee14257e21a17 https://git.kernel.org/stable/c/534cd7ecbbc6e8a974f4003a5c1557439c6e0a72 https://git.kernel.org/stable/c/e6c1cb728e389354203a72bc77464c222a247aeb https://git.kernel.org/stable/c/fb9f88a33c516ea5c0bcd9a22ca288b246b34567