bpf: Fix use-after-free in bpf_uprobe_multi_link_attach()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bpf: Fix use-after-free in bpf_uprobe_multi_link_attach()
If bpf_link_prime() fails, bpf_uprobe_multi_link_attach() goes to the error_free label and frees the array of bpf_uprobe's without calling bpf_uprobe_unregister().
This leaks bpf_uprobe->uprobe and worse, this frees bpf_uprobe->consumer without removing it from the uprobe->consumers list.
From the CVE record · Linux
The Linux kernel has a use-after-free in bpf_uprobe_multi_link_attach(). If bpf_link_prime() fails, the error path frees a consumer without removing it from the uprobe consumers list and also leaks a uprobe. The input does not specify an attack path, authentication requirements, or user interaction.
Engineers running the Linux kernel should check their versions; affected versions are not specified in the input.