In the Linux kernel, the following vulnerability has been resolved: bpf: Skip detached progs in trampoline images that are still in use… (CVE-2026-98799)
Description
A vulnerability in the Linux kernel's BPF trampoline handling was resolved. The issue involved detached BPF programs being freed while tasks might still be running in them, potentially causing kernel crashes. The fix ensures that detached programs are not freed prematurely by patching no-op instructions to jumps, preserving program execution safety. This addresses a race condition where tasks sleeping in certain BPF programs could resume execution in freed memory, leading to kernel Oops errors.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel's BPF trampoline mechanism stemmed from improper handling of detached BPF programs within trampoline images. While the trampoline image itself was protected from being freed while in use, the individual BPF programs called by the image were not similarly protected. When a program was detached, its last reference was dropped immediately, and it was freed after grace periods without accounting for tasks sleeping in other BPF programs that called the detached program. This could cause tasks to resume execution in freed program memory, resulting in kernel crashes (e.g., int3 traps). The fix involves having JIT compilers emit patchable no-op instructions before each program call, which are patched to jumps when a program is detached, ensuring that tasks running in any trampoline image are not exposed to freed program memory. This also required lowering the maximum number of trampoline links on some architectures due to increased instruction size.
Potential Impact
The vulnerability could lead to kernel crashes (Oops) due to tasks resuming execution in freed BPF program memory after detachment. This affects system stability and could cause denial of service. There is no indication of code execution or privilege escalation from the provided data.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this vulnerability by patching no-op instructions to jumps when BPF programs are detached, preventing premature freeing of programs still in use. Users should update to the fixed Linux kernel versions containing this patch. No additional mitigations are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-h23c-62pq-37fc
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98799"]
Threat ID: 6ad520aa2cdf04f6569938c0
Added to database: 10/18/2026, 19:40:26 UTC
Last enriched: 10/18/2026, 22:19:22 UTC
Last updated: 10/18/2026, 22:19:22 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.