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 8C1754F4CF0 for ; Thu, 17 Sep 2026 16:13:59 +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=1789661640; cv=none; b=KTv5OPMvL4w1HQXz7eeSDW8F+xAIL+5/38ZE0ZmpdQUEysLcZsSJofHDY/J2Xcoo1sxUIlt5Vj1NqUD+ky8fp1qoH7QOyKDFn5BnQms7rbo2y5XcbsyAHJMa9sSXh1Hgj3VgsrrkfRAx3OUDojJ1MTRRBHyM2UQvmsX4kEgq3G4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661640; c=relaxed/simple; bh=TIMgezzpo/qp5Vbq0ula21l4R3Z5RyIjZnpLLKjKrDc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QdaoWAV7XZhHiJi/a/bFDpolhQv71je6pkCwe0I9QzK9d1HqlphXt6kWQLIlFixNEehYsC579aadfQvysGyq772eVdvMiIWn82zQi089tdVRuySx+QMC4YbHZ0zVBzJ7hSNCckvms/Bt8IZsBL7ePEl8lLeI6bTXly1wbFgz7B8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RDPjFQ9p; 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="RDPjFQ9p" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A06E01F00893; Thu, 17 Sep 2026 16:13:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661639; bh=JfVXlNgGFV8g6ieBFaWskycvHX2EJ7JAksHKFq021QQ=; h=From:To:Cc:Subject:Date:Reply-To; b=RDPjFQ9pcu0f90BBanmuua27Twe6DQZJ4NeHRB0DlWcuCmltpgV0pV6/5CQm5qQAM D2IoflOb/Ng1EF72uuoxhe8b9Gc1K3MebSWDUf0dAs2iPaH0A9469LFryJb0cLA8tL c5OnU2517jupYL5nYYPZE9c3IxWb+JCXyG4rwnIA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90058: net/sched: bound qdisc_pkt_len to prevent qdisc soft lockup Date: Thu, 17 Sep 2026 17:08:08 +0100 Message-ID: <2026091704-CVE-2026-90058-6ea1@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=5021; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lhYhXSrf2eeL/6bP3oua4loUrWhcrmzmBmMvyg9lPTc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBFKMpsQ8jRbbFGXSr8izoCR0UqNahtUJPYkrbd7Tv BIUzkR2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQU9BjmCl1MurbvaOhigcnc +2Oni+zOviw1nWF+ffXm6NnzK9UF9zWufHMu9vXJiSFuAA== 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: bound qdisc_pkt_len to prevent qdisc soft lockup qdisc_get_stab() accepts a user-supplied size table, and __qdisc_calculate_pkt_len() amplifies qdisc_pkt_len() through the overhead, the size-table data (u16), and size_log (up to STAB_SIZE_LOG_MAX). A crafted stab can therefore set qdisc_pkt_len() to ~1 GiB for an ordinary skb. Per-flow deficit schedulers such as DRR and ETS replenish one quantum per loop iteration; with a tiny quantum (1) they spin billions of times under the qdisc lock, producing a soft lockup / RCU stall as illustrated by vega@nebusec.ai. Cap the final qdisc_pkt_len() to QDISC_PKT_LEN_MAX so the size-table amplification cannot drive deficit schedulers into an unbounded loop. A legitimate size table (e.g. qfq's overhead 999999999, which is handled by dropping) is still accepted. Introduce cap QDISC_PKT_LEN_MAX (1 << 20) = 1 MiB which is well above any legitimate single-skb wire length: the largest current skb->len is GSO_MAX_SIZE (524280), and an ATM-style size table (53/48 cell tax) amplifies that to ~578 KB, both comfortably below 1 MiB. At the same time, 1 MiB bounds the deficit refill loop to ~1M iterations per packet with quantum=1, which completes in a few milliseconds well under the demonstrated softlockup threshold (~10^9 iterations). Conditions to recreate the bug: - CONFIG_NET_SCHED=y, CONFIG_NET_SCH_DRR=y (or CONFIG_NET_SCH_ETS=y). - Attach a DRR (or ETS) root qdisc with a crafted TCA_STAB that amplifies qdisc_pkt_len to ~1 GiB (e.g. size_log=15, data=[32768]). - Add a class with a tiny quantum of 1 and send one small packet; the deficit loop spins billions of times under the qdisc lock and trips the softlockup detector (panic with kernel.softlockup_panic=1). - Reachable as root or from an unprivileged user in a fresh user+net namespace (unshare -Urn) with namespace-local CAP_NET_ADMIN. The Linux kernel CVE team has assigned CVE-2026-90058 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.270 with commit 4f0f4b09a95ef602fbdae948326beadd9c20eab3 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.221 with commit 0bc5a6280a132a2170c6fa742436e01b635f02de Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.188 with commit 448c34421b38ec7c93a0060a885218ca319d382b Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.157 with commit 82fdbf49b9f7528c82bf608cfa9710e5f81a198c Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.110 with commit 6e78792d8ce1fa3561713860ee8086901dde4f99 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.52 with commit 1a5c26e586481bc82abc19ac92c3d9f10518f525 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2.6 with commit 16d21a27df3f50b7251c9388fc5a7ab22703b469 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3-rc1 with commit 8f735d64382dcf162f4276d6699d03ad2f859c0b 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-90058 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: include/net/pkt_sched.h net/sched/sch_api.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/4f0f4b09a95ef602fbdae948326beadd9c20eab3 https://git.kernel.org/stable/c/0bc5a6280a132a2170c6fa742436e01b635f02de https://git.kernel.org/stable/c/448c34421b38ec7c93a0060a885218ca319d382b https://git.kernel.org/stable/c/82fdbf49b9f7528c82bf608cfa9710e5f81a198c https://git.kernel.org/stable/c/6e78792d8ce1fa3561713860ee8086901dde4f99 https://git.kernel.org/stable/c/1a5c26e586481bc82abc19ac92c3d9f10518f525 https://git.kernel.org/stable/c/16d21a27df3f50b7251c9388fc5a7ab22703b469 https://git.kernel.org/stable/c/8f735d64382dcf162f4276d6699d03ad2f859c0b