CVE-2026-53074: Linux Kernel BPF Test Function Denial-of-Service Vulnerability
CVE-2026-53074 is a denial-of-service vulnerability in the Linux kernel's BPF (Berkeley Packet Filter) test framework. The vulnerability occurs when the kernel attempts to test BPF programs using artificially crafted network packets. Specifically, when a test packet claims to be IPv4 or IPv6 but lacks the required network header data, the kernel can crash or hang because it tries to read header information that doesn't exist in the packet. The fix ensures the kernel validates that sufficient packet data is present before attempting to access network headers, preventing the crash.
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: reject short IPv4/IPv6 inputs in bpf_prog_test_run_skb bpf_prog_test_run_skb() calls eth_type_trans() first and then uses skb->protocol to initialize sk family and address fields for the test run. For IPv4 and IPv6 packets, it may access ip_hdr(skb) or ipv6_hdr(skb) even when the provided test input only contains an Ethernet header. Reject the input earlier if the Ethernet frame carries IPv4/IPv6 EtherType but the L3 header is too short. Fold the IPv4/IPv6 header length checks into the existing protocol switch and return -EINVAL before accessing the network headers.
8 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in bpf_prog_test_run_skb(), a kernel function used to execute BPF programs against test network packets. The function calls eth_type_trans() to identify the Ethernet frame type, then uses skb->protocol to determine the address family. For IPv4 and IPv6 packets, the code may subsequently call ip_hdr(skb) or ipv6_hdr(skb) to access layer 3 headers. However, if a malicious or malformed test input provides an Ethernet header indicating IPv4/IPv6 but contains insufficient bytes for the actual network header, the kernel attempts to dereference memory beyond the packet's actual length, causing an out-of-bounds read. The fix adds explicit length validation in the protocol handling switch statement, rejecting inputs where the packet is too short for the advertised protocol before any header access occurs.
Business impact
This vulnerability primarily affects systems running custom or third-party BPF programs in test environments. Since BPF programs are increasingly used for in-kernel networking, tracing, and security monitoring, developers and platform teams that rely on bpf_prog_test_run() for validation and development workflows may experience service disruptions. In production scenarios where BPF programs are actively deployed, a local attacker with appropriate privileges could trigger kernel panics, resulting in unplanned downtime and potential data loss if the system is not properly recovered. The impact is localized to the BPF subsystem and requires local access, limiting exposure in typical hosted or cloud environments.
Affected systems
The vulnerability affects the Linux kernel. All versions of the Linux kernel that include the vulnerable bpf_prog_test_run_skb() function are susceptible. Organizations running custom BPF programs, particularly those used in packet filtering, monitoring, or load balancing, should assess whether their kernel version requires patching. Verify the specific kernel version against the vendor advisory for patch eligibility.
Exploitability
The vulnerability requires local access (AV:L) and can be triggered by a user with limited privileges (PR:L). No special interaction (UI:N) is needed once the attacker gains local access. The attack surface is limited to systems where BPF program testing is enabled or where users can invoke bpf_prog_test_run(). This is a relatively low-friction attack that does not require network access or privilege escalation to the root level, making it a practical concern for multi-user or containerized Linux systems. However, the CVSS score of 5.5 (MEDIUM) reflects that the impact is primarily availability-related without confidentiality or integrity compromise.
Remediation
Apply the Linux kernel patch that adds input validation to bpf_prog_test_run_skb(). The fix involves validating packet length against the advertised Ethernet frame type before accessing network headers. Users should check the official Linux kernel security advisories and their distribution's kernel update channels for the patched version applicable to their deployment. Test the patched kernel in a non-production environment before rolling out to production systems to ensure compatibility with existing BPF programs.
Patch guidance
Obtain the patched Linux kernel version from your distribution's official repositories or from kernel.org. Verify against the vendor advisory that the kernel version includes the fix for CVE-2026-53074. Apply the patch through your standard kernel update mechanism (e.g., apt, yum, or pacman, depending on your distribution). For systems running custom or mission-critical BPF programs, test the updated kernel in a staging environment to confirm that existing BPF program functionality remains unaffected. Plan for a reboot window, as kernel updates typically require a system restart to take effect.
Detection guidance
Monitor kernel logs and system event tracers for crashes or hung tasks originating in the bpf subsystem, particularly in bpf_prog_test_run_skb() or related BPF testing functions. Use tools such as journalctl or dmesg to review kernel panic messages for BPF-related stack traces. If you run eBPF programs in production, track any unexpected kernel panics or system reboots correlated with the invocation of BPF test suites or BPF program loading. Audit process logs to identify which users or applications are invoking bpf() syscalls with BPF_PROG_TEST_RUN operations. Intrusion detection signatures might flag attempts to pass deliberately malformed packet test data to bpf_prog_test_run().
Why prioritize this
Although the CVSS score is MEDIUM (5.5), this vulnerability deserves prompt attention because it can cause kernel panics and system downtime. BPF is increasingly integral to modern Linux networking, container orchestration, and security monitoring. A denial-of-service crash that impacts system availability is operationally critical. However, the requirement for local access and limited privileges means this is not an immediate threat to internet-facing systems without local user access. Organizations should prioritize patching based on their BPF usage: teams actively developing or testing BPF programs should update immediately, while systems using only production-stable BPF features can follow standard maintenance windows.
Risk score, explained
The CVSS 3.1 score of 5.5 (MEDIUM) reflects: (1) Attack Vector: Local — the vulnerability cannot be exploited remotely; (2) Attack Complexity: Low — no special conditions or user interaction required once local access is obtained; (3) Privileges Required: Low — standard user privileges suffice; (4) Impact: Availability is High (system crash), but Confidentiality and Integrity remain None. The MEDIUM rating appropriately balances the seriousness of kernel-level denial-of-service against the requirement for local access, making it a concern for multi-user systems and containers but not for single-tenant cloud VMs or appliances without local user accounts.
Frequently asked questions
Can this vulnerability be exploited remotely?
No. CVE-2026-53074 requires local access to the system and the ability to invoke BPF program test functions. It cannot be exploited over the network.
Does this affect production BPF programs already deployed in the kernel?
Primarily, the vulnerability is triggered by the bpf_prog_test_run() interface used during development and testing. However, if a production BPF program is loaded and an attacker with local privileges can trigger the vulnerable code path (by passing a malformed test packet), a kernel panic could result. Organizations should patch regardless and validate that their deployed BPF programs are not inadvertently exposed to untrusted input.
What versions of the Linux kernel are affected?
All versions that include the bpf_prog_test_run_skb() function are potentially affected. Consult your distribution's security advisory or kernel.org for the specific version range and patched releases applicable to your kernel branch.
Do I need to reboot after applying the patch?
Yes. Kernel updates require a system reboot to activate. Plan a maintenance window and test the updated kernel in a non-production environment first if you rely on custom BPF programs.
This analysis is provided for informational purposes and reflects publicly available information as of the publication date. The vulnerability details, patch status, and affected kernel versions should be verified against official Linux kernel security advisories, your distribution's security bulletins, and vendor recommendations. SEC.co does not guarantee the accuracy, completeness, or timeliness of this information. Organizations should conduct their own risk assessment based on their specific infrastructure, BPF usage, and threat model. Always test patches in a non-production environment before deployment. For critical systems, consult with your vendor or a qualified security professional before applying updates. 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