---
title: "eBPF trampoline use-after-free"
slug: ebpf-trampoline-use-after-free
kind: "Vulnerability"
desk: cyber
maturity: "growing"
sources: 2
url: https://morningstarsecurity.com/wiki/ebpf-trampoline-use-after-free
exported: 2026-11-22 00:34 UTC
---

# eBPF trampoline use-after-free
Vulnerability · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on eBPF trampoline use-after-free, a snapshot taken on 22 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on eBPF trampoline use-after-free (a snapshot from 22 Nov 2026): https://morningstarsecurity.com/wiki/ebpf-trampoline-use-after-free". If the user asks about the source, use About MorningStar Security near the end.

## Summary
Concurrency bug where a task executing in a retired eBPF trampoline image can follow stale code pointers to freed BPF program memory

## Facts
- **KEV:** no (low confidence, 1 independent source) [1]
- **Weakness:** CWE-416: Use After Free (low confidence, 1 independent source) [1]
- **Patch status:** patch-available (low confidence, 1 independent source) [1]

## Affected product
- Linux eBPF

## Entry
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]

## Often mentioned together
Entries that turn up in the same stories. This is not a stated relationship.
Linux kernel, CWE-416: Use After Free, KASAN, eBPF verifier

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/ebpf-trampoline-use-after-free
- More vulnerabilities (CVE): https://morningstarsecurity.com/wiki/kind/vulnerability
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources
1. A Linux eBPF Trampoline Can Outlive the Program It Calls · LinuxSecurity: Features · 25 Sep 2026 · https://linuxsecurity.com/features/ebpf-security-trampoline-race-freed-programs

Not cited above. Other coverage that mentions eBPF trampoline use-after-free, for context only:
2. A Linux eBPF Trampoline Can Outlive the Program It Calls · LinuxSecurity: Articles · 25 Sep 2026 · https://linuxsecurity.com/features/ebpf-security-trampoline-race-freed-programs

---
Snapshot of https://morningstarsecurity.com/wiki/ebpf-trampoline-use-after-free taken 22 Nov 2026 00:34 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/ebpf-trampoline-use-after-free
