CVE-2026-72427 (GCVE-0-2026-72427)
Vulnerability from cvelistv5
Published
2026-08-15 05:56
Modified
2026-08-17 05:44
Severity ?
VLAI Severity ?
EPSS score ?
Summary
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix effective prog array index with BPF_F_PREORDER
replace_effective_prog() and purge_effective_progs() located the slot in
the effective array by walking the program hlist and counting entries
linearly. That count does not match the array layout: compute_effective_
progs() places BPF_F_PREORDER programs at the front (ancestor cgroup
first, attach order within a cgroup) and the rest after them (descendant
cgroup first). So when a preorder program is present, the linear hlist
position no longer equals the program's index in the effective array.
For replace_effective_prog() (bpf_link_update()) this overwrote the
wrong slot, corrupting the effective order. For purge_effective_progs(),
it could dummy out a slot belonging to a different program and leave the
detached program in the array while bpf_prog_put() drops its reference,
i.e. a use-after-free.
Fix both by replaying compute_effective_progs()'s placement (including
the per-cgroup preorder reversal) in a shared effective_prog_pos()
helper. Identify the entry by its struct bpf_prog_list pointer rather
than by (prog, link) value, so the lookup resolves to exactly the
attachment the syscall selected even when the same bpf_prog is attached
to several cgroups in the hierarchy.
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| Linux | Linux |
Version: bc8023ef3b11410682e5d4990e05e5bc2d3e1c94 Version: 555c0b713ca83968d3c843cb15485b9ba3367b1b Version: 4b82b181a26cff8bf7adc3a85a88d121d92edeaf Version: 4b82b181a26cff8bf7adc3a85a88d121d92edeaf Version: 4b82b181a26cff8bf7adc3a85a88d121d92edeaf Version: 4707ad649cf662add3058bff47430817811b048d Version: 6.6.93 ≤ Version: 6.12.31 ≤ Version: 6.14.9 ≤ |
||
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"kernel/bpf/cgroup.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "525e408c27ae714e538b8c608c3a974df3ab6c92",
"status": "affected",
"version": "bc8023ef3b11410682e5d4990e05e5bc2d3e1c94",
"versionType": "git"
},
{
"lessThan": "41b4320b84fdafe1ab586b06453d30d50415db59",
"status": "affected",
"version": "555c0b713ca83968d3c843cb15485b9ba3367b1b",
"versionType": "git"
},
{
"lessThan": "9697db03e010391c55ae75192cbdf30c5a72c114",
"status": "affected",
"version": "4b82b181a26cff8bf7adc3a85a88d121d92edeaf",
"versionType": "git"
},
{
"lessThan": "b584f107ab90222bd825dcb4c5977326ff684109",
"status": "affected",
"version": "4b82b181a26cff8bf7adc3a85a88d121d92edeaf",
"versionType": "git"
},
{
"lessThan": "f08aaee3152d0dfc578b3f2586932d82062701dd",
"status": "affected",
"version": "4b82b181a26cff8bf7adc3a85a88d121d92edeaf",
"versionType": "git"
},
{
"status": "affected",
"version": "4707ad649cf662add3058bff47430817811b048d",
"versionType": "git"
},
{
"lessThan": "6.6.145",
"status": "affected",
"version": "6.6.93",
"versionType": "semver"
},
{
"lessThan": "6.12.97",
"status": "affected",
"version": "6.12.31",
"versionType": "semver"
},
{
"lessThan": "6.15",
"status": "affected",
"version": "6.14.9",
"versionType": "semver"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"kernel/bpf/cgroup.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "6.15"
},
{
"lessThan": "6.15",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.145",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.97",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.40",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.1.*",
"status": "unaffected",
"version": "7.1.5",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.6.145",
"versionStartIncluding": "6.6.93",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.97",
"versionStartIncluding": "6.12.31",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.40",
"versionStartIncluding": "6.15",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.1.5",
"versionStartIncluding": "6.15",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.2",
"versionStartIncluding": "6.15",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.14.9",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix effective prog array index with BPF_F_PREORDER\n\nreplace_effective_prog() and purge_effective_progs() located the slot in\nthe effective array by walking the program hlist and counting entries\nlinearly. That count does not match the array layout: compute_effective_\nprogs() places BPF_F_PREORDER programs at the front (ancestor cgroup\nfirst, attach order within a cgroup) and the rest after them (descendant\ncgroup first). So when a preorder program is present, the linear hlist\nposition no longer equals the program\u0027s index in the effective array.\n\nFor replace_effective_prog() (bpf_link_update()) this overwrote the\nwrong slot, corrupting the effective order. For purge_effective_progs(),\nit could dummy out a slot belonging to a different program and leave the\ndetached program in the array while bpf_prog_put() drops its reference,\ni.e. a use-after-free.\n\nFix both by replaying compute_effective_progs()\u0027s placement (including\nthe per-cgroup preorder reversal) in a shared effective_prog_pos()\nhelper. Identify the entry by its struct bpf_prog_list pointer rather\nthan by (prog, link) value, so the lookup resolves to exactly the\nattachment the syscall selected even when the same bpf_prog is attached\nto several cgroups in the hierarchy."
}
],
"metrics": [
{
"cvssV3_1": {
"baseScore": 7.8,
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - Exploitation requires local bpf() syscalls (BPF_LINK_CREATE/BPF_PROG_ATTACH with BPF_F_PREORDER, BPF_LINK_UPDATE, BPF_PROG_DETACH/BPF_LINK_DETACH) through __cgroup_bpf_replace/__cgroup_bpf_detach in kernel/bpf/cgroup.c; per kernel CNA guidance BPF cgroup hooks are Local even when later triggered by packets.\nAC:L - Attacker fully controls cgroup hierarchy, BPF_F_PREORDER|BPF_F_ALLOW_MULTI attachments, and bpf_link_update/detach timing; purge_effective_progs UAF needs update_effective_progs() OOM which attacker can induce via memory pressure/large hierarchies, and bpf_link_update ordering corruption triggers without OOM.\nPR:L - Reaching the bug requires CAP_BPF (and CAP_NET_ADMIN for most cgroup BPF types) plus cgroup v2 attach access, commonly obtainable by unprivileged users via delegated cgroups or user namespaces (CAP_BPF/CAP_NET_ADMIN), not init-namespace root.\nUI:N - Attacker loads, attaches, and updates/detaches their own cgroup BPF programs and links via bpf(); no separate victim or administrator action is required.\nS:U - The bug corrupts kernel cgroup BPF effective-prog arrays causing UAF/ordering corruption within the same kernel security domain, enabling local privilege escalation rather than crossing VM, IOMMU, or sandbox boundaries.\nC:H - purge_effective_progs() can leave a detached bpf_prog pointer in the RCU-protected effective array while bpf_prog_put() frees it, yielding a use-after-free read when __cgroup_bpf_run_filter_* later executes the stale program under RCU.\nI:H - UAF of bpf_prog objects enables heap reuse for arbitrary kernel writes/control-flow hijack; bpf_link_update() mis-indexing can overwrite another attachment\u0027s effective slot so attacker-controlled BPF runs in place of security/filter programs on traffic for the whole cgroup tree.\nA:H - Freed-but-still-referenced programs are executed from softirq/network cgroup hooks and reliably cause kernel oops/panic/KASAN failures; ordering corruption can also crash or hang filtering paths serving container/cloud workloads."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-08-17T05:44:07.623Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/525e408c27ae714e538b8c608c3a974df3ab6c92"
},
{
"url": "https://git.kernel.org/stable/c/41b4320b84fdafe1ab586b06453d30d50415db59"
},
{
"url": "https://git.kernel.org/stable/c/9697db03e010391c55ae75192cbdf30c5a72c114"
},
{
"url": "https://git.kernel.org/stable/c/b584f107ab90222bd825dcb4c5977326ff684109"
},
{
"url": "https://git.kernel.org/stable/c/f08aaee3152d0dfc578b3f2586932d82062701dd"
}
],
"title": "bpf: Fix effective prog array index with BPF_F_PREORDER",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-72427",
"datePublished": "2026-08-15T05:56:44.197Z",
"dateReserved": "2026-08-09T03:40:39.928Z",
"dateUpdated": "2026-08-17T05:44:07.623Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…