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 016C24D486D for ; Thu, 17 Sep 2026 16:14:32 +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=1789661674; cv=none; b=BFtWAa1PimKD+hCc4OSRPDwcMiWiRcU24hy8F/PFOpO63mac+v8ktuJyyXIAqkfoCNHnlPuXRhtdPbG2cr4TzBEcUrA48nynFCvP7NA7isR+/By9i8zdd2p3Jjno+QPAnTL5D8L9mFS6YKgY/rW9HjjWbxLuycNGb2edvhJb7K4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661674; c=relaxed/simple; bh=Rba9ouN45P/rv6K7BKNlMxlLHO6RC8BmBtREsqngpLE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a9w6WrHof6qm/Ffkqie+uD6PXjmZAVaE7rgeF2NQXHMFNTu+YIiQsW0Oq9UhsvOLvfWQTXHPB7MludcltQKUWLJEOeNEau33+Tc9GadhYSpBKrAVqXWvu+3SLyvxHzbg8kkoZ0V8i0DESioEumoX/7on1idxqJs3BvFDlaDd/To= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m/nQQtCr; 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="m/nQQtCr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43E2C1F000FF; Thu, 17 Sep 2026 16:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661672; bh=BTL41gEkYYoj63P499hNvPX2BCHeN33//PBgCxFKgKg=; h=From:To:Cc:Subject:Date:Reply-To; b=m/nQQtCrfAluxS0x403GMb5dUke2HRkHdEf/nb1sa58Tmf8lgla3PEzCpYY8XXv4d ETQt4bRqdJcCbCKBq7a127YJDaN6P7jMCy/zmMRJR4RD1pP4aB7EjdsU6TrhlzCROp f0xhccA5avSwzS98R8gvaIBkO3ou/PF31yD/OrV8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90099: net/sched: account classifier filter allocations to memcg Date: Thu, 17 Sep 2026 17:08:49 +0100 Message-ID: <2026091713-CVE-2026-90099-07bf@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=4087; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DaqKqp59fekoEFKkPAFAtEpbyjq2JCPUibs34uFy9eg=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBHIPNqdM9VE/MvkJv0P+Tr/ca2YrFIOFufc+2vC7n PPeN44fHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR+4kMC1rui62v9zyy5HKI t+2Vo9M2rwtVN2OYzc7ksHHn/hreo4tj20JjFu3wFzHvAAA= 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: account classifier filter allocations to memcg Allocations in the tc classifier *_change() paths (filter objects, per-CPU counters, and per-filter aux data) use plain GFP_KERNEL without __GFP_ACCOUNT, allowing unprivileged users to pin kernel memory outside memcg charging. The shared tcf_exts_init_ex() action array allocation in cls_api.c was also uncharged; this patch closes it along with the per-classifier filter-object/percpu/aux allocations that remain unaccounted. Add GFP_KERNEL_ACCOUNT to: - the shared tcf_exts_init_ex() action array (cls_api.c), common to every filter of every classifier (32 pointers, 256 bytes); - the filter-object, per-CPU-counter, and per-filter aux allocations in cls_basic, cls_bpf, cls_cgroup, cls_flow, cls_flower, cls_fw, cls_matchall, cls_route and cls_u32; - the u32_init_knode() replace-path knode allocation (cls_u32.c), which allocates the same struct tc_u_knode + sel.keys on every replace of an existing knode and was missed by the create-path-only conversion. Also fix the cls_basic error path: basic_change() inserts fnew into the IDR before allocating the per-CPU counter. If alloc_percpu() fails the errout path kfree'd fnew without idr_remove, leaving a dangling pointer in the IDR. With GFP_KERNEL_ACCOUNT the percpu alloc becomes failable on demand (memcg at memory.max), making the dead path attacker-reachable and burning the handle permanently. Add the idr_remove on the percpu failure path, matching the basic_set_parms failure-path pattern. Note: vega@nebusec.ai provided a poc for basic_cls, but it was easy to extend to the other classifiers. Conditions to recreate the bug: - CONFIG_NET_SCHED, CONFIG_NET_CLS_* (the classifier being used), CONFIG_NET_CLS_ACT, CONFIG_MEMCG, CONFIG_USER_NS, CONFIG_NET_NS. - Unprivileged user in a fresh user+network namespace (unshare -Urn), or root with CAP_NET_ADMIN. - Create a large number of tc filters (e.g. tc filter add dev lo ingress ... ...) while watching a memcg-limited cgroup: system slab grows far faster than memory.current, pinning kernel memory outside memcg charging. The Linux kernel CVE team has assigned CVE-2026-90099 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.18 with commit 0da974f4f303a6842516b764507e3c0a03f41e5a and fixed in 7.2.6 with commit 18c68c8f3d3ff0a4def1391021b439c4333a6c71 Issue introduced in 2.6.18 with commit 0da974f4f303a6842516b764507e3c0a03f41e5a and fixed in 7.3-rc1 with commit 1beb81947eb486716af80db7a584f9e9fef7e003 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-90099 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/cls_api.c net/sched/cls_basic.c net/sched/cls_bpf.c net/sched/cls_cgroup.c net/sched/cls_flow.c net/sched/cls_flower.c net/sched/cls_fw.c net/sched/cls_matchall.c net/sched/cls_route.c net/sched/cls_u32.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/18c68c8f3d3ff0a4def1391021b439c4333a6c71 https://git.kernel.org/stable/c/1beb81947eb486716af80db7a584f9e9fef7e003