CVE-2026-139318

Not scored yetLast modified Nov 30, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

VendorProductVersions
LinuxLinux>= 41bdc4b40ed6fb26c6acc655ed9a243a348709c9, < e1b668adaa02c6f45f0d68b466aacb854e6b473c; >= 41bdc4b40ed6fb26c6acc655ed9a243a348709c9, < f5d96a5f4aea1fcd9b4093f274715c052bf7715c; >= 41bdc4b40ed6fb26c6acc655ed9a243a348709c9, < fd3e7631fb502f6b51dc25e4724acc836683145d; >= 41bdc4b40ed6fb26c6acc655ed9a243a348709c9, < be367c0bf210854265cf6b6dcaf74c5ad632978c; >= 41bdc4b40ed6fb26c6acc655ed9a243a348709c9, < 3ccd700543f16a2b2ab656f35dcaeb6bd7c45e22
LinuxLinux4.18

References

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-139319In the Linux kernel, the following vulnerability has been resolved: bpf: Don't let bpf_skb_adjust_room() use up the MSS When bpf_skb_adjusCVE-2026-139326.5Inappropriate implementation in Sharing in Google Chrome on Android prior to 150.0.7871.47 allowed a remote attacker who had compromised theCVE-2026-1393207.8In the Linux kernel, the following vulnerability has been resolved: bpf: Look at all 64 bits of a BPF_JSET mask on 32-bit In the branch ofCVE-2026-139321In the Linux kernel, the following vulnerability has been resolved: bpf: Forbid sleeping in bpf_find_vma() callbacks A sleepable program cCVE-2026-139322In the Linux kernel, the following vulnerability has been resolved: bpf: Reject sleepable programs for task_vma iterator A sleepable "iterCVE-2026-139323In the Linux kernel, the following vulnerability has been resolved: bpf: Don't hand out a linked element as extra element When htab_map_upCVE-2026-139324In the Linux kernel, the following vulnerability has been resolved: bpf: Don't leak the inode when token creation fails bpf_token_create()CVE-2026-139325In the Linux kernel, the following vulnerability has been resolved: bpf: Forbid sleeping in hash map for_each callbacks A sleepable prograCVE-2026-1393268.1In the Linux kernel, the following vulnerability has been resolved: bpf: Use the frame mem type in devmap egress XDP A devmap egress progrCVE-2026-139327In the Linux kernel, the following vulnerability has been resolved: bpf: Fix verifier WARN on narrow read of bpf_tcp_sock u64 fields A BPFCVE-2026-139328In the Linux kernel, the following vulnerability has been resolved: sched_ext: Fix a bypassed task stalling on a cpu its scheduler has no cCVE-2026-139329In the Linux kernel, the following vulnerability has been resolved: ALSA: jack: Protect the index scan against control removal A control f
CVE-2026-139318: Unscored | Vulnix