# CVE-2026-72427: bpf: Fix effective prog array index with BPF\_F\_PREORDER

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-28)
- **Published:** 2026-08-15T05:56:44.197Z
- **Modified:** 2026-10-16T19:17:30.050Z

## Who should check

- Anyone running Linux \>= bc8023ef3b11410682e5d4990e05e5bc2d3e1c94, \< 525e408c27ae714e538b8c608c3a974df3ab6c92; \>= 555c0b713ca83968d3c843cb15485b9ba3367b1b, \< 41b4320b84fdafe1ab586b06453d30d50415db59; \>= 4b82b181a26cff8bf7adc3a85a88d121d92edeaf, \< 9697db03e010391c55ae75192cbdf30c5a72c114; \>= 4b82b181a26cff8bf7adc3a85a88d121d92edeaf, \< b584f107ab90222bd825dcb4c5977326ff684109; \>= 4b82b181a26cff8bf7adc3a85a88d121d92edeaf, \< f08aaee3152d0dfc578b3f2586932d82062701dd; 4707ad649cf662add3058bff47430817811b048d; \>= 6.6.93, \< 6.6.145; \>= 6.12.31, \< 6.12.97; \>= 6.14.9, \< 6.15
- Anyone running Linux 6.15

## Description

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.

## Affected and fixed versions

- Linux: \>= bc8023ef3b11410682e5d4990e05e5bc2d3e1c94, \< 525e408c27ae714e538b8c608c3a974df3ab6c92; \>= 555c0b713ca83968d3c843cb15485b9ba3367b1b, \< 41b4320b84fdafe1ab586b06453d30d50415db59; \>= 4b82b181a26cff8bf7adc3a85a88d121d92edeaf, \< 9697db03e010391c55ae75192cbdf30c5a72c114; \>= 4b82b181a26cff8bf7adc3a85a88d121d92edeaf, \< b584f107ab90222bd825dcb4c5977326ff684109; \>= 4b82b181a26cff8bf7adc3a85a88d121d92edeaf, \< f08aaee3152d0dfc578b3f2586932d82062701dd; 4707ad649cf662add3058bff47430817811b048d; \>= 6.6.93, \< 6.6.145; \>= 6.12.31, \< 6.12.97; \>= 6.14.9, \< 6.15 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 6.15 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-72427. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-72427.md
Affected: Linux >= bc8023ef3b11410682e5d4990e05e5bc2d3e1c94, < 525e408c27ae714e538b8c608c3a974df3ab6c92; >= 555c0b713ca83968d3c843cb15485b9ba3367b1b, < 41b4320b84fdafe1ab586b06453d30d50415db59; >= 4b82b181a26cff8bf7adc3a85a88d121d92edeaf, < 9697db03e010391c55ae75192cbdf30c5a72c114; >= 4b82b181a26cff8bf7adc3a…
Fixed in: Linux 525e408c27ae714e538b8c608c3a974df3ab6c92, Linux 41b4320b84fdafe1ab586b06453d30d50415db59, Linux 9697db03e010391c55ae75192cbdf30c5a72c114, Linux 6.6.145, Linux 6.12.97, Linux 6.15

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-72427 being exploited?

There is no confirmed exploitation: CVE-2026-72427 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-72427?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-72427?

Linux \>= bc8023ef3b11410682e5d4990e05e5bc2d3e1c94, \< 525e408c27ae714e538b8c608c3a974df3ab6c92; \>= 555c0b713ca83968d3c843cb15485b9ba3367b1b, \< 41b4320b84fdafe1ab586b06453d30d50415db59; \>= 4b82b181a26cff8bf7adc3a85a88d121d92edeaf, \< 9697db03e010391c55ae75192cbdf30c5a72c114; \>= 4b82b181a26cff8bf7adc3a85a88d121d92edeaf, \< b584f107ab90222bd825dcb4c5977326ff684109; \>= 4b82b181a26cff8bf7adc3a85a88d121d92edeaf, \< f08aaee3152d0dfc578b3f2586932d82062701dd; 4707ad649cf662add3058bff47430817811b048d; \>= 6.6.93, \< 6.6.145; \>= 6.12.31, \< 6.12.97; \>= 6.14.9, \< 6.15; Linux 6.15.

### Is there a fix for CVE-2026-72427?

Yes. Fixed in Linux 525e408c27ae714e538b8c608c3a974df3ab6c92, Linux 41b4320b84fdafe1ab586b06453d30d50415db59, Linux 9697db03e010391c55ae75192cbdf30c5a72c114, Linux 6.6.145, Linux 6.12.97, Linux 6.15. Upgrade Linux to 6.15 or later.

### How do I check if I'm affected by CVE-2026-72427?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/525e408c27ae714e538b8c608c3a974df3ab6c92>
- other: <https://git.kernel.org/stable/c/41b4320b84fdafe1ab586b06453d30d50415db59>
- other: <https://git.kernel.org/stable/c/9697db03e010391c55ae75192cbdf30c5a72c114>
- other: <https://git.kernel.org/stable/c/b584f107ab90222bd825dcb4c5977326ff684109>
- other: <https://git.kernel.org/stable/c/f08aaee3152d0dfc578b3f2586932d82062701dd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-72427>

HTML: <https://flawdb.com/CVE-2026-72427> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-72427>
