# CVE-2026-139604: bpf: Clear the insn array used flag with release semantics

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:36:17.263Z
- **Modified:** 2026-11-30T14:19:42.693Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker can exploit a missing memory ordering in the Linux kernel BPF instruction array handling, leaving stale pointers to freed JIT images on weakly ordered architectures.

## Who should check

- Anyone running Linux \>= b4ce5923e780d6896d4aaf19de5a27652b8bf1ea, \< ee864bab6d8ae655fb016e48cf07ab4ced5dea7f; \>= b4ce5923e780d6896d4aaf19de5a27652b8bf1ea, \< a83512036e0809497ee3259ba7458de287949b94
- Anyone running Linux 6.19

## Description

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

bpf: Clear the insn array used flag with release semantics

A program that fails after the JIT ran, for example in bpf\_check\_tail\_call(),
has already stored its jitted offsets and target pointers into the insn array
maps it uses through bpf\_prog\_update\_insn\_ptrs() when release\_insn\_arrays()
hands them back by clearing the used flag with a plain atomic\_set(). Nothing
orders those stores before the flag, so on a weakly ordered architecture they
can still be in flight when the next program takes the map: it is acquired
with atomic\_xchg() in bpf\_insn\_array\_init() and reset there, and the late
stores then land on top of whatever the new owner has written since, be it
that reset or the pointers its own JIT stored, leaving entries that point
into an image which is about to be freed.

Clear the flag with atomic\_set\_release() instead, so that everything the
releasing program stored is visible before the map can be acquired again.
This pairs with the fully ordered atomic\_xchg() on the acquire side.

## Affected and fixed versions

- Linux: \>= b4ce5923e780d6896d4aaf19de5a27652b8bf1ea, \< ee864bab6d8ae655fb016e48cf07ab4ced5dea7f; \>= b4ce5923e780d6896d4aaf19de5a27652b8bf1ea, \< a83512036e0809497ee3259ba7458de287949b94 (cvelist)
- Linux: 6.19 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-139604.md
Affected: Linux >= b4ce5923e780d6896d4aaf19de5a27652b8bf1ea, < ee864bab6d8ae655fb016e48cf07ab4ced5dea7f; >= b4ce5923e780d6896d4aaf19de5a27652b8bf1ea, < a83512036e0809497ee3259ba7458de287949b94; Linux 6.19
Fixed in: no fixed version listed yet

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-139604 being exploited?

There is no confirmed exploitation: CVE-2026-139604 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

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

It has no CVSS score yet. Unknown.

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

Linux \>= b4ce5923e780d6896d4aaf19de5a27652b8bf1ea, \< ee864bab6d8ae655fb016e48cf07ab4ced5dea7f; \>= b4ce5923e780d6896d4aaf19de5a27652b8bf1ea, \< a83512036e0809497ee3259ba7458de287949b94; Linux 6.19.

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

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

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

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/ee864bab6d8ae655fb016e48cf07ab4ced5dea7f>
- other: <https://git.kernel.org/stable/c/a83512036e0809497ee3259ba7458de287949b94>

## 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-139604>

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