# CVE-2025-68208: bpf: account for current allocated stack depth in widen\_imprecise\_scalars()

> 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-12-16T13:48:35.298Z
- **Modified:** 2026-10-15T22:19:10.613Z

## Who should check

- Anyone running Linux \>= ab470fefce2837e66b771c60858118d50bb5bb10, \< 64b12dca2b0abcb5fc0542887d18b926ea5cf711; \>= 2793a8b015f7f1caadb9bce9c63dc659f7522676, \< 9944c7938cd5b3f37b0afec0481c7c015e4f1c58; \>= 2793a8b015f7f1caadb9bce9c63dc659f7522676, \< 57e04e2ff56e32f923154f0f7bc476fcb596ffe7; \>= 2793a8b015f7f1caadb9bce9c63dc659f7522676, \< b0c8e6d3d866b6a7f73877f71968dbffd27b7785; \>= 6.6.15, \< 6.6.117
- Anyone running Linux 6.7

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: account for current allocated stack depth in widen\_imprecise\_scalars()

The usage pattern for widen\_imprecise\_scalars() looks as follows:

    prev\_st = find\_prev\_entry(env, ...);
    queued\_st = push\_stack(...);
    widen\_imprecise\_scalars(env, prev\_st, queued\_st);

Where prev\_st is an ancestor of the queued\_st in the explored states
tree. This ancestor is not guaranteed to have same allocated stack
depth as queued\_st. E.g. in the following case:

    def main():
      for i in 1..2:
        foo(i)        // same callsite, differnt param

    def foo(i):
      if i == 1:
        use 128 bytes of stack
      iterator based loop

Here, for a second 'foo' call prev\_st-\>allocated\_stack is 128,
while queued\_st-\>allocated\_stack is much smaller.
widen\_imprecise\_scalars() needs to take this into account and avoid
accessing bpf\_verifier\_state-\>frame\[\*\]-\>stack out of bounds.

## Affected and fixed versions

- Linux: \>= ab470fefce2837e66b771c60858118d50bb5bb10, \< 64b12dca2b0abcb5fc0542887d18b926ea5cf711; \>= 2793a8b015f7f1caadb9bce9c63dc659f7522676, \< 9944c7938cd5b3f37b0afec0481c7c015e4f1c58; \>= 2793a8b015f7f1caadb9bce9c63dc659f7522676, \< 57e04e2ff56e32f923154f0f7bc476fcb596ffe7; \>= 2793a8b015f7f1caadb9bce9c63dc659f7522676, \< b0c8e6d3d866b6a7f73877f71968dbffd27b7785; \>= 6.6.15, \< 6.6.117 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 6.6.117 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68208.md
Affected: Linux >= ab470fefce2837e66b771c60858118d50bb5bb10, < 64b12dca2b0abcb5fc0542887d18b926ea5cf711; >= 2793a8b015f7f1caadb9bce9c63dc659f7522676, < 9944c7938cd5b3f37b0afec0481c7c015e4f1c58; >= 2793a8b015f7f1caadb9bce9c63dc659f7522676, < 57e04e2ff56e32f923154f0f7bc476fcb596ffe7; >= 2793a8b015f7f1caadb9bce…
Fixed in: Linux 64b12dca2b0abcb5fc0542887d18b926ea5cf711, Linux 9944c7938cd5b3f37b0afec0481c7c015e4f1c58, Linux 57e04e2ff56e32f923154f0f7bc476fcb596ffe7, Linux 6.6.117

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-2025-68208 being exploited?

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

### How serious is CVE-2025-68208?

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

### Which versions are affected by CVE-2025-68208?

Linux \>= ab470fefce2837e66b771c60858118d50bb5bb10, \< 64b12dca2b0abcb5fc0542887d18b926ea5cf711; \>= 2793a8b015f7f1caadb9bce9c63dc659f7522676, \< 9944c7938cd5b3f37b0afec0481c7c015e4f1c58; \>= 2793a8b015f7f1caadb9bce9c63dc659f7522676, \< 57e04e2ff56e32f923154f0f7bc476fcb596ffe7; \>= 2793a8b015f7f1caadb9bce9c63dc659f7522676, \< b0c8e6d3d866b6a7f73877f71968dbffd27b7785; \>= 6.6.15, \< 6.6.117; Linux 6.7.

### Is there a fix for CVE-2025-68208?

Yes. Fixed in Linux 64b12dca2b0abcb5fc0542887d18b926ea5cf711, Linux 9944c7938cd5b3f37b0afec0481c7c015e4f1c58, Linux 57e04e2ff56e32f923154f0f7bc476fcb596ffe7, Linux 6.6.117. Upgrade Linux to 6.6.117 or later.

### How do I check if I'm affected by CVE-2025-68208?

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/64b12dca2b0abcb5fc0542887d18b926ea5cf711>
- other: <https://git.kernel.org/stable/c/9944c7938cd5b3f37b0afec0481c7c015e4f1c58>
- other: <https://git.kernel.org/stable/c/57e04e2ff56e32f923154f0f7bc476fcb596ffe7>
- other: <https://git.kernel.org/stable/c/b0c8e6d3d866b6a7f73877f71968dbffd27b7785>

## 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-2025-68208>

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