Description
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.
Published: 2026-06-24
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel test harness for BPF programs, bpf_prog_test_run_skb, erroneously uses the packet's Ethertype to access L3 headers even when the supplied test input contains only an Ethernet header. This can cause an out‑of‑bounds read of the raw socket buffer, potentially leading to a kernel panic and a denial‑of‑service situation, and could be leveraged for privilege escalation if the attacker can run BPF programs.

Affected Systems

All Linux kernel versions that have not yet integrated the commit that rejects short IPv4/IPv6 inputs are affected. The bug is present in the upstream kernel and any distribution using an unpatched kernel should be considered at risk. No specific version range is listed, so the default assumption is any pre‑patch release. The vendor is the Linux kernel maintainers.

Risk and Exploitability

The vulnerability is scored with no EPSS data and is not listed in the CISA KEV catalog, suggesting limited known exploitation. The failure mode is a read past the end of an Ethernet frame, an out‑of‑bounds read that can trigger a kernel fault. Attack vectors are inferred to be local or remote depending on whether an attacker can load and execute BPF programs; the test harness is part of the kernel's BPF subsystem, implying that exploitation requires BPF program execution privileges. The CVSS score is not provided, so the severity assessment must rely on the impact of a kernel panic and the exploitability described above.

Generated by OpenCVE AI on June 24, 2026 at 19:17 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to the latest stable release that includes the bpf_prog_test_run_skb patch or apply the upstream patch directly.
  • If a kernel upgrade is not possible, avoid using the test harness with packets that contain only an Ethernet header when the EtherType indicates IPv4 or IPv6; ensure test inputs include complete L3 headers.
  • Monitor system logs for kernel panic or oops messages that may indicate exploitation attempts and ensure host integrity monitoring is in place.

Generated by OpenCVE AI on June 24, 2026 at 19:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 24 Jun 2026 19:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-125

Wed, 24 Jun 2026 17:15:00 +0000

Type Values Removed Values Added
Description 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.
Title bpf: reject short IPv4/IPv6 inputs in bpf_prog_test_run_skb
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-24T16:30:15.337Z

Reserved: 2026-06-09T07:44:35.383Z

Link: CVE-2026-53074

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-24T19:30:08Z

Weaknesses