CVE-2026-139318

bpf: Read the probe of a perf event under event_mutex

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The CVE describes a use‑after‑free and null‑pointer dereference that occurs when BPF helper functions bpf_get_kprobe_info() or bpf_get_uprobe_info() access a perf event’s probe reference without holding the required event_mutex. While the event remains in use, the underlying probe data may be freed, causing the helper to read or copy memory that has already been released. This kernel memory corruption could trigger a crash or denial of service, but the description does not explicitly state privilege escalation.

Affected Systems

The vulnerability affects the Linux kernel; it is present in all distributions that ship an unpatched kernel. No specific version list is provided, so any kernel older than the one that includes the patch in the upstream repository is potentially vulnerable.

Risk and Exploitability

This flaw depends on an attacker’s ability to execute BPF code or submit kprobe/uprobe queries that trigger the faulty helper functions. Based on the description, it is inferred that the attack vector requires local access or privileged execution of eBPF programs. The exploit requires local access and no public or documented exploits exist at this time. EPSS is not available, so the exploitation probability cannot be quantified; however, the vulnerability can cause a kernel panic or crash, potentially bringing down the affected host. The vulnerability is not listed in the CISA KEV catalog, and the CVE does not indicate that remote or unauthenticated exploitation is possible from the data provided.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a kernel version that applies the patch adding event_mutex protection to bpf_get_perf_event_info()
  • Reboot the system after upgrading to ensure the fixed kernel is running
  • If an immediate kernel upgrade is not possible, restrict or disable BPF helpers that perform kprobe/uprobe queries, or enforce stricter security profiles such as AppArmor or SELinux to limit eBPF execution

Generated by OpenCVE AI on December 1, 2026 at 11:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
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.
Title bpf: Read the probe of a perf event under event_mutex
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM