{"api_version":"1","generated_at":"2026-12-01T14:33:28+00:00","cve":"CVE-2026-139318","urls":{"html":"https://cve.report/CVE-2026-139318","api":"https://cve.report/api/cve/CVE-2026-139318.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139318","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139318"},"summary":{"title":"bpf: Read the probe of a perf event under event_mutex","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Read the probe of a perf event under event_mutex\n\nFor a perf event on a kprobe or uprobe event which was made in tracefs,\nbpf_get_kprobe_info() and bpf_get_uprobe_info() look the probe up by\nname in the list of dynamic events, and hand a pointer to its symbol or\nfile name back to the caller. None of the callers holds event_mutex.\n\nThe perf event keeps its trace event alive, nothing else. Other dynamic\nevents are removed from the list and freed during the walk. And a probe\nwhich shares its event with other probes can be deleted while the event\nis in use, so even the probe which is found can be freed, together with\nthe string, before the caller has measured and copied it. The result is\na use-after-free in the walk, in strlen() and in the copy to user space,\nor a NULL pointer dereference.\n\nThe readers are BPF_OBJ_GET_INFO_BY_FD and fdinfo of a perf link, for\nwhoever holds a descriptor of the link, and BPF_TASK_FD_QUERY. The other\nside is anybody who may write to dynamic_events, kprobe_events or\nuprobe_events.\n\nTake event_mutex in bpf_get_perf_event_info() and give the caller a copy\nof the name, which it has to free.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:56","updated_at":"2026-11-30 14:18:56"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/f5d96a5f4aea1fcd9b4093f274715c052bf7715c","name":"https://git.kernel.org/stable/c/f5d96a5f4aea1fcd9b4093f274715c052bf7715c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e1b668adaa02c6f45f0d68b466aacb854e6b473c","name":"https://git.kernel.org/stable/c/e1b668adaa02c6f45f0d68b466aacb854e6b473c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/be367c0bf210854265cf6b6dcaf74c5ad632978c","name":"https://git.kernel.org/stable/c/be367c0bf210854265cf6b6dcaf74c5ad632978c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3ccd700543f16a2b2ab656f35dcaeb6bd7c45e22","name":"https://git.kernel.org/stable/c/3ccd700543f16a2b2ab656f35dcaeb6bd7c45e22","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fd3e7631fb502f6b51dc25e4724acc836683145d","name":"https://git.kernel.org/stable/c/fd3e7631fb502f6b51dc25e4724acc836683145d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139318","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139318","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 41bdc4b40ed6fb26c6acc655ed9a243a348709c9 e1b668adaa02c6f45f0d68b466aacb854e6b473c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 41bdc4b40ed6fb26c6acc655ed9a243a348709c9 f5d96a5f4aea1fcd9b4093f274715c052bf7715c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 41bdc4b40ed6fb26c6acc655ed9a243a348709c9 fd3e7631fb502f6b51dc25e4724acc836683145d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 41bdc4b40ed6fb26c6acc655ed9a243a348709c9 be367c0bf210854265cf6b6dcaf74c5ad632978c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 41bdc4b40ed6fb26c6acc655ed9a243a348709c9 3ccd700543f16a2b2ab656f35dcaeb6bd7c45e22 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.18","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.18 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/bpf/syscall.c","kernel/trace/bpf_trace.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"e1b668adaa02c6f45f0d68b466aacb854e6b473c","status":"affected","version":"41bdc4b40ed6fb26c6acc655ed9a243a348709c9","versionType":"git"},{"lessThan":"f5d96a5f4aea1fcd9b4093f274715c052bf7715c","status":"affected","version":"41bdc4b40ed6fb26c6acc655ed9a243a348709c9","versionType":"git"},{"lessThan":"fd3e7631fb502f6b51dc25e4724acc836683145d","status":"affected","version":"41bdc4b40ed6fb26c6acc655ed9a243a348709c9","versionType":"git"},{"lessThan":"be367c0bf210854265cf6b6dcaf74c5ad632978c","status":"affected","version":"41bdc4b40ed6fb26c6acc655ed9a243a348709c9","versionType":"git"},{"lessThan":"3ccd700543f16a2b2ab656f35dcaeb6bd7c45e22","status":"affected","version":"41bdc4b40ed6fb26c6acc655ed9a243a348709c9","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/bpf/syscall.c","kernel/trace/bpf_trace.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.18"},{"lessThan":"4.18","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"4.18","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.18","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Read the probe of a perf event under event_mutex\n\nFor a perf event on a kprobe or uprobe event which was made in tracefs,\nbpf_get_kprobe_info() and bpf_get_uprobe_info() look the probe up by\nname in the list of dynamic events, and hand a pointer to its symbol or\nfile name back to the caller. None of the callers holds event_mutex.\n\nThe perf event keeps its trace event alive, nothing else. Other dynamic\nevents are removed from the list and freed during the walk. And a probe\nwhich shares its event with other probes can be deleted while the event\nis in use, so even the probe which is found can be freed, together with\nthe string, before the caller has measured and copied it. The result is\na use-after-free in the walk, in strlen() and in the copy to user space,\nor a NULL pointer dereference.\n\nThe readers are BPF_OBJ_GET_INFO_BY_FD and fdinfo of a perf link, for\nwhoever holds a descriptor of the link, and BPF_TASK_FD_QUERY. The other\nside is anybody who may write to dynamic_events, kprobe_events or\nuprobe_events.\n\nTake event_mutex in bpf_get_perf_event_info() and give the caller a copy\nof the name, which it has to free."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:33:39.275Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/e1b668adaa02c6f45f0d68b466aacb854e6b473c"},{"url":"https://git.kernel.org/stable/c/f5d96a5f4aea1fcd9b4093f274715c052bf7715c"},{"url":"https://git.kernel.org/stable/c/fd3e7631fb502f6b51dc25e4724acc836683145d"},{"url":"https://git.kernel.org/stable/c/be367c0bf210854265cf6b6dcaf74c5ad632978c"},{"url":"https://git.kernel.org/stable/c/3ccd700543f16a2b2ab656f35dcaeb6bd7c45e22"}],"title":"bpf: Read the probe of a perf event under event_mutex","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139318","datePublished":"2026-11-30T13:33:39.275Z","dateReserved":"2026-11-30T13:22:15.926Z","dateUpdated":"2026-11-30T13:33:39.275Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:56","lastModifiedDate":"2026-11-30 14:18:56","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139318","Ordinal":"1","Title":"bpf: Read the probe of a perf event under event_mutex","CVE":"CVE-2026-139318","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139318","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Read the probe of a perf event under event_mutex\n\nFor a perf event on a kprobe or uprobe event which was made in tracefs,\nbpf_get_kprobe_info() and bpf_get_uprobe_info() look the probe up by\nname in the list of dynamic events, and hand a pointer to its symbol or\nfile name back to the caller. None of the callers holds event_mutex.\n\nThe perf event keeps its trace event alive, nothing else. Other dynamic\nevents are removed from the list and freed during the walk. And a probe\nwhich shares its event with other probes can be deleted while the event\nis in use, so even the probe which is found can be freed, together with\nthe string, before the caller has measured and copied it. The result is\na use-after-free in the walk, in strlen() and in the copy to user space,\nor a NULL pointer dereference.\n\nThe readers are BPF_OBJ_GET_INFO_BY_FD and fdinfo of a perf link, for\nwhoever holds a descriptor of the link, and BPF_TASK_FD_QUERY. The other\nside is anybody who may write to dynamic_events, kprobe_events or\nuprobe_events.\n\nTake event_mutex in bpf_get_perf_event_info() and give the caller a copy\nof the name, which it has to free.","Type":"Description","Title":"bpf: Read the probe of a perf event under event_mutex"}]}}}