CVE-2026-139318
publishedbpf: Read the probe of a perf event under event_mutex
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux41bdc4b40ed6fb26c6acc655ed9a243a348709c9 to < e1b668adaa02c6f45f0d68b466aacb854e6b473c · 41bdc4b40ed6fb26c6acc655ed9a243a348709c9 to < f5d96a5f4aea1fcd9b4093f274715c052bf7715c · 41bdc4b40ed6fb26c6acc655ed9a243a348709c9 to < fd3e7631fb502f6b51dc25e4724acc836683145d · 41bdc4b40ed6fb26c6acc655ed9a243a348709c9 to < be367c0bf210854265cf6b6dcaf74c5ad632978c · 41bdc4b40ed6fb26c6acc655ed9a243a348709c9 to < 3ccd700543f16a2b2ab656f35dcaeb6bd7c45e22 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.18 (affected) · 0 to < 4.18 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 41bdc4b40ed6fb26c6acc655ed9a243a348709c9 to < e1b668adaa02c6f45f0d68b466aacb854e6b473c (affected · git)41bdc4b40ed6fb26c6acc655ed9a243a348709c9 to < f5d96a5f4aea1fcd9b4093f274715c052bf7715c (affected · git)41bdc4b40ed6fb26c6acc655ed9a243a348709c9 to < fd3e7631fb502f6b51dc25e4724acc836683145d (affected · git)41bdc4b40ed6fb26c6acc655ed9a243a348709c9 to < be367c0bf210854265cf6b6dcaf74c5ad632978c (affected · git)41bdc4b40ed6fb26c6acc655ed9a243a348709c9 to < 3ccd700543f16a2b2ab656f35dcaeb6bd7c45e22 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.18 (affected)0 to < 4.18 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/3ccd700543f16a2b2ab656f35dcaeb6bd7c45e22
- https://git.kernel.org/stable/c/be367c0bf210854265cf6b6dcaf74c5ad632978c
- https://git.kernel.org/stable/c/e1b668adaa02c6f45f0d68b466aacb854e6b473c
- https://git.kernel.org/stable/c/f5d96a5f4aea1fcd9b4093f274715c052bf7715c
- https://git.kernel.org/stable/c/fd3e7631fb502f6b51dc25e4724acc836683145d
Provider assertions
1Linux · cna
bpf: Read the probe of a perf event under event_mutex
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ff913d9d91da060c5e233c5253072460bef5937d36108943366b0751e17d57fb
- Ingested
- 30 Nov 2026, 13:42:23 UTC
- Source record
- Official CVE record