CVE-2026-139093: openvswitch: use eth_type_trans_careful() in internal_dev_recv()
In the Linux kernel, the following vulnerability has been resolved:
openvswitch: use ethtypetranscareful() in internaldevrecv()
OVS actions like popeth followed by popmpls(ETHPTEB) or popnsh can expose an inner Ethernet header which is not in the linear part of the skb. Output to an internal port then crashes in ethtypetrans():
flow: inport(0),eth(),ethtype(0x8847),mpls(lse=0x00010140) actions: popeth,popmpls(0x6558),0 # AFPACKET SOCKRAW on dp0: eth / mpls / eth / 4096 bytes of payload
kernel BUG at include/linux/skbuff.h:2839! RIP: 0010:ethtypetrans (include/linux/etherdevice.h:635 net/ethernet/eth.c:163) Call Trace: internaldevrecv (net/openvswitch/vport-internaldev.c:202) openvswitch doexecuteactions (net/openvswitch/actions.c:1296) openvswitch ovsexecuteactions (net/openvswitch/actions.c:1606) openvswitch ovsdpprocesspacket (net/openvswitch/datapath.c:310) openvswitch ovsvportreceive (net/openvswitch/vport.c:448) openvswitch internaldevxmit (net/openvswitch/vport-internaldev.c:42) openvswitch devhardstartxmit (include/linux/netdevice.h:5455 include/linux/netdevice.h:5464 net/core/dev.c:4057 net/core/dev.c:4073) devqueuexmit (net/core/dev.c:5066) packetsendmsg (net/packet/afpacket.c:3157 net/packet/afpacket.c:3189)
Use ethtypetranscareful(), and drop the packet if the Ethernet header can not be pulled. This covers all OVS actions at the consumer, instead of fixing each producer.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Open vSwitch's internal_dev_recv(), use eth_type_trans_careful() and drop the packet if the Ethernet header cannot be pulled.