CVE-2026-139095: loopback: use eth_type_trans_careful()
In the Linux kernel, the following vulnerability has been resolved:
loopback: use ethtypetranscareful()
tc egress actions can leave an skb with fewer than ETHHLEN bytes in its linear part. loopbackxmit() then crashes in ethtypetrans():
tc qdisc add dev lo clsact tc filter add dev lo egress matchall action vlan popeth # AFPACKET SOCKRAW: eth / eth / 8192 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: loopbackxmit (drivers/net/loopback.c:87) 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)
The same happens with "action ife decode" on lo egress.
Use ethtypetranscareful(), and drop the packet if the Ethernet header can not be pulled.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In loopback_xmit(), use eth_type_trans_careful() and drop the packet if the Ethernet header cannot be pulled into its linear part.
Event History
Frequently Asked Questions
What conditions are required to trigger the crash?
The loopback interface must have a tc clsact egress configuration with an action that can remove or decode the Ethernet header, such as vlan pop_eth or ife decode. A locally generated AF_PACKET SOCK_RAW packet can then reach loopback_xmit() with fewer than ETH_HLEN bytes in the skb linear area.
What is the practical impact of successful exploitation?
The described outcome is a kernel BUG in eth_type_trans(), producing a kernel crash. The provided data does not indicate code execution or information disclosure.
Are systems using the loopback interface affected by default?
The issue requires specific tc egress actions on the lo interface; the provided trigger adds a clsact qdisc and egress filter manually. The data does not state that a default loopback configuration includes those actions.
What mitigation is available if the resolved kernel change cannot be deployed immediately?
Remove or avoid tc egress rules on the loopback interface that use vlan pop_eth or ife decode. This prevents the documented packet transformations that leave too little linear data for the Ethernet header.