net/sched: account classifier filter allocations to memcg
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
CVE-2026-90099
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-90099
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "0da974f4f303a6842516b764507e3c0a03f41e5a",
"lessThan": "5fbb06d4f3d4c509ffe95572384a498bf319e5bf",
"versionType": "git"
},
{
"status": "affected",
"version": "0da974f4f303a6842516b764507e3c0a03f41e5a",
"lessThan": "bf6006cea193cf065f7a64fc7974247f8112af33",
"versionType": "git"
},
{
"status": "affected",
"version": "0da974f4f303a6842516b764507e3c0a03f41e5a",
"lessThan": "68fb30607169c92de57c5c82b6af8a733af1cc09",
"versionType": "git"
},
{
"status": "affected",
"version": "0da974f4f303a6842516b764507e3c0a03f41e5a",
"lessThan": "18c68c8f3d3ff0a4def1391021b439c4333a6c71",
"versionType": "git"
},
{
"status": "affected",
"version": "0da974f4f303a6842516b764507e3c0a03f41e5a",
"lessThan": "1beb81947eb486716af80db7a584f9e9fef7e003",
"versionType": "git"
}
],
"programFiles": [
"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"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "2.6.18"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "2.6.18",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.114",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.57",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.6",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"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"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-90099
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #48601 · Revision 1
- Added to Heist Feed
- Publisher date