Use after free in Linux kernel BPF perf event probe lookup
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel from 4.18 contains a flaw in its BPF perf event code, where bpf_get_kprobe_info() and bpf_get_uprobe_info() read a kprobe or uprobe name from the dynamic events list without holding event_mutex. A probe can be freed during that read, leading to a use after free or a NULL pointer dereference. A local user who can write to dynamic_events, kprobe_events or uprobe_events, or who holds a perf link descriptor, can trigger it.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
The sources list fixed Linux kernel versions 6.6.163, 6.12.119, 6.18.65, 7.3.6 and 7.4-rc1.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139318
- 2026-11-30 Alias added: GHSA-fx87-3mf7-jv2w
References
Other 5
- https://git.kernel.org/stable/c/e1b668adaa02c6f45f0d68b466aacb854e6b473c
- https://git.kernel.org/stable/c/f5d96a5f4aea1fcd9b4093f274715c052bf7715c
- https://git.kernel.org/stable/c/fd3e7631fb502f6b51dc25e4724acc836683145d
- https://git.kernel.org/stable/c/be367c0bf210854265cf6b6dcaf74c5ad632978c
- https://git.kernel.org/stable/c/3ccd700543f16a2b2ab656f35dcaeb6bd7c45e22
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139318 · CVE Program
- CVE-2026-139318 · NVD
- GHSA-fx87-3mf7-jv2w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences