net/sched: act_skbmod: Skip non-Ethernet packets
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/sched: act_skbmod: Skip non-Ethernet packets
Currently tcf_skbmod_act() assumes that packets use Ethernet as their L2 protocol, which is not always the case. As an example, for CAN devices:
$ ip link add dev vcan0 type vcan $ ip link set up vcan0 $ tc qdisc add dev vcan0 root handle 1: htb $ tc filter add dev vcan0 parent 1: protocol ip prio 10 \ matchall action skbmod swap mac
Doing the above silently corrupts all the packets. Do not perform skbmod actions for non-Ethernet packets.
From the CVE record · Linux
The Linux kernel’s skbmod action assumes packets use Ethernet, even on non-Ethernet devices. If skbmod is configured on such a device, it can silently corrupt packets; the input does not describe a remote attack or specify authentication requirements.
Engineers running Linux kernels with skbmod actions on non-Ethernet devices should check their deployments; affected versions are not specified.