Linux
bpf: Mark tracing_multi trampolines as ftrace managed
In the Linux kernel, the following vulnerability has been resolved: bpf: Mark tracing_multi trampolines as ftrace managed Since tracing_multi link does not set ftrace_managed, it would fail to release the tracing_multi link when attaching tracing_multi link and then attaching fentry link. [ 3.714215] WARNING: kernel/bpf/trampoline.c:1727 at bpf_trampoline_multi_detach+0x20b/0x240, CPU#1: test_progs/97 ... [ 3.733170] bpf_tracing_multi_link_release+0x14/0x30 [ 3.733890] bpf_link_free+0x58/0x130 [ 3.734414] bpf_link_release+0x23/0x30 Fix it by setting 'ftrace_managed = true' in register_fentry_multi().
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= aef4dfa790b22d8052cfb78044eadbe03c876c39, < 280145253fd38fa975cc04963ddaf74c7f415011
- >= aef4dfa790b22d8052cfb78044eadbe03c876c39, < 30bdd6d1384d894931f113eb595636092d8e650c
Fixed in 280145253fd38fa975cc04963ddaf74c7f415011, 30bdd6d1384d894931f113eb595636092d8e650c
- 7.2
Fixed in 0, 7.2.6, 7.3
Mitigation
Upgrade Linux to 280145253fd38fa975cc04963ddaf74c7f415011 or 30bdd6d1384d894931f113eb595636092d8e650c or later.
Upgrade Linux to 0 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.