CVE-2021-47293

net/sched: act_skbmod: Skip non-Ethernet packets

State
Published
Severity
Not scored
Published
May 21, 2024
Updated
May 11, 2026
Reserved
May 21, 2024

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 86da71b57383d40993cb90baafb3735cffe5d800 to before e4fdca366806f6bab374d1a95e626a10a3854b0cAffected
  • 86da71b57383d40993cb90baafb3735cffe5d800 to before a88414fb1117f2fe65fb88e45ba694e1d09d5024Affected
  • 86da71b57383d40993cb90baafb3735cffe5d800 to before 071729150be9e1d1b851b70efb6d91ee9269d57bAffected
  • 86da71b57383d40993cb90baafb3735cffe5d800 to before 34f1e1f657fae2891b485a3b2b95fe4d2aef9f0dAffected
  • 86da71b57383d40993cb90baafb3735cffe5d800 to before 727d6a8b7ef3d25080fad228b2c4a1d4da5999c6Affected
LinuxLinux
  • 4.9Affected
  • before 4.9Not affected
  • 4.19.199 through 4.19.*Not affected
  • 5.4.136 through 5.4.*Not affected
  • 5.10.54 through 5.10.*Not affected
  • 5.13.6 through 5.13.*Not affected
  • 5.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.