# CVE-2026-139318: bpf: Read the probe of a perf event under event_mutex


- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 30 Nov 2026
- **Updated:** 30 Nov 2026
- **Also known as:** AZL-117052, BELL-CVE-2026-139318, DEBIAN-CVE-2026-139318, GHSA-fx87-3mf7-jv2w, UBUNTU-CVE-2026-139318

## What is CVE-2026-139318?

CVE-2026-139318 is a vulnerability in Linux, published on 30 Nov 2026. 

### Official description

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

bpf: Read the probe of a perf event under event_mutex

For a perf event on a kprobe or uprobe event which was made in tracefs,
bpf_get_kprobe_info() and bpf_get_uprobe_info() look the probe up by
name in the list of dynamic events, and hand a pointer to its symbol or
file name back to the caller. None of the callers holds event_mutex.

The perf event keeps its trace event alive, nothing else. Other dynamic
events are removed from the list and freed during the walk. And a probe
which shares its event with other probes can be deleted while the event
is in use, so even the probe which is found can be freed, together with
the string, before the caller has measured and copied it. The result is
a use-after-free in the walk, in strlen() and in the copy to user space,
or a NULL pointer dereference.

The readers are BPF_OBJ_GET_INFO_BY_FD and fdinfo of a perf link, for
whoever holds a descriptor of the link, and BPF_TASK_FD_QUERY. The other
side is anybody who may write to dynamic_events, kprobe_events or
uprobe_events.

Take event_mutex in bpf_get_perf_event_info() and give the caller a copy
of the name, which it has to free.

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


## How do I fix CVE-2026-139318?

Upgrade to a fixed version.

## Is CVE-2026-139318 being exploited?

There is no known exploitation of CVE-2026-139318 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-139318 and fix it if it is affected.

What it is: CVE-2026-139318 is a vulnerability in Linux, published on 30 Nov 2026. 
Exploitation: There is no known exploitation of CVE-2026-139318 in the wild and no public exploit code.

Affected product: Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-139318/ (Markdown: https://insights.sbomify.com/CVE-2026-139318/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-139318
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-139318
- OSV: https://osv.dev/vulnerability/CVE-2026-139318

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-139318/
Summaries are generated and may contain mistakes; the official description above is the record.
