Export
The link always opens the latest version of this page.
Ask an AI about it
Open in ChatGPTA new chat that reads this entry from the site Open in ClaudeThe same, in ClaudeShare the link instead of a file, and they will always see the latest version.
Files are a snapshot of today. The live page has anything newer.
eBPF trampoline use-after-free
Concurrency bug where a task executing in a retired eBPF trampoline image can follow stale code pointers to freed BPF program memory
- KEV
- no 1 source
- Weakness
- CWE-416: Use After Free 1 source
A concurrency vulnerability in Linux eBPF where a task executing within a retired trampoline image can dereference stale pointers into freed BPF program memory, potentially leading to memory corruption or code execution.
Vulnerability Details
The flaw occurs when eBPF trampolines—runtime-generated code sequences that facilitate program attachment and execution—are retired while still in active use. A task that continues executing within a retired trampoline image may follow code pointers that reference memory regions that have been deallocated, creating a use-after-free condition 1.
This is fundamentally a race condition between trampoline lifecycle management and task execution paths. The vulnerability arises from insufficient synchronization between the retirement of trampoline images and the completion of in-flight executions that depend on them.
Impact
Exploitation could allow an attacker to corrupt kernel memory or achieve arbitrary code execution with kernel privileges, depending on the specific memory layout and timing of the race condition.
Affected Systems
Linux eBPF subsystem 1.
Disclosure and Remediation
A patch is available 1, though it was not included in the kernel vulnerability tracking database (KEV) 1.
Classification
Weakness: CWE-416: Use After Free 1
Facts 3
| Attribute | Value | Confidence | Sources | Cited |
|---|---|---|---|---|
| KEV | no | low | 1 | 1 |
| Weakness | CWE-416: Use After Free | low | 1 | 1 |
| Patch status | patch-available | low | 1 | 1 |
Affected product 1
Frequently mentioned together 4
Sources 2
- A Linux eBPF Trampoline Can Outlive the Program It Calls · LinuxSecurity: Features
- A Linux eBPF Trampoline Can Outlive the Program It Calls · LinuxSecurity: Articles