CVE-2026-139094

net: use eth_type_trans_careful() in __dev_forward_skb2()

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net: use eth_type_trans_careful() in __dev_forward_skb2()

A tc egress BPF program can push a tiny link-layer header with
bpf_skb_change_head() on an skb whose head is almost empty, then
redirect it to an Ethernet device ingress. __bpf_redirect_common()
only checks mac_header < network_header, and __dev_forward_skb2()
crashes in eth_type_trans():

tc filter add dev lo egress pref 1 matchall action vlan pop_eth continue
tc filter add dev lo egress pref 2 bpf da obj prog.o
# prog: bpf_skb_change_head(skb, 1, 0);
# return bpf_redirect(veth1_ifindex, BPF_F_INGRESS);
# AF_PACKET SOCK_RAW on lo: eth / eth / 8192 bytes of payload

kernel BUG at include/linux/skbuff.h:2839!
RIP: 0010:eth_type_trans (include/linux/etherdevice.h:635 net/ethernet/eth.c:163)
Call Trace:
__dev_forward_skb2 (net/core/dev.c:2507)
dev_forward_skb_nomtu (net/core/dev.c:2546)
__dev_queue_xmit (net/core/dev.c:4738 net/core/dev.c:4998)
packet_sendmsg (net/packet/af_packet.c:3157 net/packet/af_packet.c:3189)

Use eth_type_trans_careful(), and drop the packet if the Ethernet
header can not be pulled. This also covers other dev_forward_skb()
users (veth, macvlan, ipvlan, netdevsim, l2tp_eth).

Update the empty_skb BPF selftest: at lwt_xmit, BPF_PROG_TEST_RUN
strips the Ethernet header, so the "veth ETH_HLEN+1" packet is a 1-byte
skb. Redirecting it to veth ingress used to read the Ethernet header
past skb->tail and deliver a 1-byte frame; it is now dropped with
NET_RX_DROP, as veth_xmit() already does at egress.

Analysis

AI-generated

Technical impact

The Linux kernel’s networking stack can crash when an egress BPF program pushes a minimal link‑layer header onto an skb and redirects it to an Ethernet device’s ingress path. The forwarder __dev_forward_skb2 calls eth_type_trans without verifying that the Ethernet header can be safely extracted, leading to a BUG that corrupts the kernel stack and halts the system. This flaw allows an attacker to trigger a complete system crash by executing a crafted BPF program, without needing to exploit any separate privilege escalation or user‑space vulnerability.

Affected Systems

All Linux kernel installations that enable egress BPF programs and packet redirection on Ethernet‑type devices are potentially impacted. Drivers and interfaces such as veth, macvlan, ipvlan, netdevsim, and l2tp_eth can exercise the vulnerable code path. The patch replaces eth_type_trans with eth_type_trans_careful in __dev_forward_skb2, but affected kernel versions span all releases before the commit that introduced the fix. Vendors accept the change within the kernels they ship as part of standard releases.

Risk and Exploitability

A CVSS score is not provided and the EPSS score is unavailable, but the nature of the bug—kernel crash from malformed packet handling—highlights a severe denial‑of‑service risk. The flaw is not listed in the CISA KEV catalog, yet exploitation would give an attacker a straightforward remote crash if local execution of a BPF program is possible or if BPF capabilities are insufficiently restricted. Because the attack requires deploying a BPF program that manipulates skb headers, the vulnerability’s plausibility depends on the host’s BPF policy configuration, but in permissive environments it remains a high‑impact threat.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that includes the eth_type_trans_careful fix for __dev_forward_skb2.
  • Restrict or disable egress BPF programs that modify skb headers, particularly those that use bpf_skb_change_head with minimal size, to block malformed packets from reaching the forwarding path.
  • If a kernel upgrade is not immediately possible, reconfigure or disable packet‑forwarding interfaces such as veth, macvlan, ipvlan, netdevsim, and l2tp_eth, and monitor kernel logs for BUG messages.

Generated by OpenCVE AI on December 1, 2026 at 09:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-617
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-119
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: use eth_type_trans_careful() in __dev_forward_skb2() A tc egress BPF program can push a tiny link-layer header with bpf_skb_change_head() on an skb whose head is almost empty, then redirect it to an Ethernet device ingress. __bpf_redirect_common() only checks mac_header < network_header, and __dev_forward_skb2() crashes in eth_type_trans(): tc filter add dev lo egress pref 1 matchall action vlan pop_eth continue tc filter add dev lo egress pref 2 bpf da obj prog.o # prog: bpf_skb_change_head(skb, 1, 0); # return bpf_redirect(veth1_ifindex, BPF_F_INGRESS); # AF_PACKET SOCK_RAW on lo: eth / eth / 8192 bytes of payload kernel BUG at include/linux/skbuff.h:2839! RIP: 0010:eth_type_trans (include/linux/etherdevice.h:635 net/ethernet/eth.c:163) Call Trace: __dev_forward_skb2 (net/core/dev.c:2507) dev_forward_skb_nomtu (net/core/dev.c:2546) __dev_queue_xmit (net/core/dev.c:4738 net/core/dev.c:4998) packet_sendmsg (net/packet/af_packet.c:3157 net/packet/af_packet.c:3189) Use eth_type_trans_careful(), and drop the packet if the Ethernet header can not be pulled. This also covers other dev_forward_skb() users (veth, macvlan, ipvlan, netdevsim, l2tp_eth). Update the empty_skb BPF selftest: at lwt_xmit, BPF_PROG_TEST_RUN strips the Ethernet header, so the "veth ETH_HLEN+1" packet is a 1-byte skb. Redirecting it to veth ingress used to read the Ethernet header past skb->tail and deliver a 1-byte frame; it is now dropped with NET_RX_DROP, as veth_xmit() already does at egress.
Title net: use eth_type_trans_careful() in __dev_forward_skb2()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer

  • CWE-617

    Reachable Assertion

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:31 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:31 PM