CVE-2026-53095: Linux Kernel eBPF freplace Privilege Boundary Bypass
A vulnerability in the Linux kernel's eBPF (extended Berkeley Packet Filter) subsystem allows unprivileged local users to corrupt kernel function arguments through a chain of two eBPF programs. By combining a kprobe program (which monitors kernel functions) with a freplace program (which wraps or replaces other programs), an attacker can manipulate CPU registers that control function parameters, causing the kernel to execute with altered behavior. This could lead to a denial of service or logic corruption within the kernel.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 5.5 MEDIUM · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- —
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-24 / 2026-07-21
NVD description (verbatim)
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix abuse of kprobe_write_ctx via freplace uprobe programs are allowed to modify struct pt_regs. Since the actual program type of uprobe is KPROBE, it can be abused to modify struct pt_regs via kprobe+freplace when the kprobe attaches to kernel functions. For example, SEC("?kprobe") int kprobe(struct pt_regs *regs) { return 0; } SEC("?freplace") int freplace_kprobe(struct pt_regs *regs) { regs->di = 0; return 0; } freplace_kprobe prog will attach to kprobe prog. kprobe prog will attach to a kernel function. Without this patch, when the kernel function runs, its first arg will always be set as 0 via the freplace_kprobe prog. To fix the abuse of kprobe_write_ctx=true via kprobe+freplace, disallow attaching freplace programs on kprobe programs with different kprobe_write_ctx values.
3 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
CVE-2026-53095 is a privilege escalation and kernel integrity issue stemming from improper validation in the eBPF verifier. The vulnerability arises because kprobe programs are conventionally attached to user-space probes (uprobes) where register modification is intentional, but can also attach to kernel functions via the same KPROBE program type. When a freplace program (designed to replace or wrap eBPF programs) is attached to a kprobe program that monitors a kernel function, the freplace program inherits write access to struct pt_regs without restriction. This permits modification of general-purpose registers used to pass function arguments (such as rdi, rsi, rdx for x86_64 calling conventions). The fix enforces that freplace programs cannot attach to kprobe programs that have different kprobe_write_ctx values, preventing this cross-context abuse.
Business impact
Organizations running unpatched Linux kernels face a local denial-of-service risk and potential kernel state corruption. An unprivileged local user (or container/VM process escape scenario) could trigger kernel logic errors by corrupting function arguments to critical kernel code paths. This could result in system crashes, data inconsistency, or unpredictable kernel behavior. The impact is localized to denial of service rather than data exfiltration, but can affect system availability and reliability. Virtualized environments and multi-tenant systems are particularly sensitive to this class of privilege boundary bypass.
Affected systems
The Linux kernel is affected. All versions prior to the patch are vulnerable. The vulnerability requires local access and eBPF capabilities to be enabled on the system (eBPF is widely enabled in modern distributions). Affected systems include standard Linux distributions, container hosts (Docker, Kubernetes), and virtualized Linux deployments where unprivileged users have eBPF syscall access or are inside containers with relaxed seccomp/AppArmor policies.
Exploitability
Exploitability is moderate. An attacker must have local user-level access and eBPF program loading capability (CAP_BPF or CAP_SYS_ADMIN in some kernel versions, or unrestricted eBPF in containers). The attack requires writing two cooperating eBPF programs and understanding eBPF calling conventions and register layouts. This is not a remote vulnerability and does not affect unprivileged users on hardened systems with eBPF disabled or restricted. No known public exploits exist at the time of analysis.
Remediation
Apply the kernel patch that adds validation to reject freplace program attachment when the freplace program and target kprobe program have incompatible kprobe_write_ctx settings. This is a kernel-level fix requiring a kernel update and system reboot. No userspace mitigation is available. Verify the patch is included in the stable kernel branch you use (linux-stable, your distribution's kernel team, etc.) and deploy it through normal system update procedures.
Patch guidance
Update to a Linux kernel version that includes the fix for CVE-2026-53095. Verify against the kernel release notes or your distribution's security advisory for the specific version number that resolves this issue. Typical mitigation is available through linux-stable releases and distribution kernel updates (Red Hat, Ubuntu, Debian, etc.). After patching, reboot to activate the fixed kernel. Test in a staging environment first to ensure stability.
Detection guidance
Monitor for loading of freplace eBPF programs via audit logs (auditctl rules on bpf syscalls, or eBPF_PROG_LOAD events). Check kernel logs for rejection of freplace attach attempts (should see EBPF verifier errors post-patch). Host-based endpoint detection can flag processes attempting to load kprobe+freplace chains. In development/CI environments, enforce static analysis of eBPF bytecode to reject suspicious freplace chains before deployment.
Why prioritize this
Assign this a medium-to-high priority in environments where unprivileged eBPF is enabled (containers, developer workstations, multi-tenant systems). For traditional closed systems where eBPF is disabled or restricted to root, priority is lower. The CVSS score of 5.5 reflects local-only attack vector and availability impact; however, the privilege boundary bypass nature and prevalence of eBPF in cloud-native stacks warrant expedited patching. Prioritize kernel updates for container hosts, Kubernetes nodes, and systems running untrusted workloads.
Risk score, explained
CVSS 3.1 score of 5.5 (MEDIUM) reflects: local attack vector (AV:L), low attack complexity (AC:L), low privilege requirement (PR:L—unprivileged user), no user interaction (UI:N), unchanged scope (S:U), and high availability impact (A:H). The score does not account for confidentiality or integrity impact because the vulnerability is primarily a denial-of-service vector and kernel logic corruption (which may be better characterized as availability rather than integrity from a CVSS perspective). Real-world risk may be elevated in container and cloud environments where eBPF usage is standard.
Frequently asked questions
Can an unprivileged user on a standard Linux desktop exploit this?
Only if the system has eBPF program loading enabled for unprivileged users (non-standard). Most Linux desktops restrict eBPF to root or disable it entirely. However, unprivileged users inside containers often have eBPF access, making them vulnerable in that context.
Is this a remote vulnerability?
No. This vulnerability requires local user-level access to load eBPF programs. It cannot be exploited over the network.
What is freplace and why is it used?
freplace is an eBPF program type that wraps or replaces the implementation of another eBPF program. It is commonly used for testing, instrumentation, and dynamic patching of eBPF logic. The vulnerability arises when freplace is used to wrap kprobe programs in an unintended way.
If I disable eBPF entirely, am I safe?
Yes. Disabling eBPF (via kernel config or sysctl) eliminates this vulnerability. However, modern distributions and container platforms rely on eBPF for performance monitoring, security tools, and networking features, so disabling it may not be practical.
This analysis is based on publicly available CVE data as of the published date. Exploit details and patch availability may evolve; consult official Linux kernel security advisories and your distribution's security updates for the latest information. No working public exploit is known at the time of writing. This analysis is for informational and defensive purposes only; unauthorized access to computer systems is illegal. Source: NVD (public-domain), retrieved 2026-08-01. Analysis generated by SEC.co (claude-haiku-4-5).
Affected vendors
Related vulnerabilities
- CVE-2025-71313MEDIUMLinux Kernel PCI Endpoint NULL Pointer Dereference
- CVE-2025-71314MEDIUMLinux Panthor GPU Driver Denial of Service via Cache Flush Timeout
- CVE-2025-71315MEDIUMLinux Kernel vkms DRM Vblank Timer Denial of Service
- CVE-2026-0268MEDIUMPrisma Access Agent Linux VPN Bypass Vulnerability
- CVE-2026-10004MEDIUMChrome UI Spoofing Vulnerability – Password Dialog Hijacking
- CVE-2026-10018MEDIUMInteger Overflow in Chrome ANGLE GPU Graphics Layer
- CVE-2026-10912MEDIUMChrome Extension Same-Origin Policy Bypass (CVSS 6.5)
- CVE-2026-10916MEDIUMChrome DevTools UXSS Vulnerability