net/sched: Fix ethx:ingress -> ethy:egress -> ethx:ingress mirred loop
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel db875221ab08d213a83bf30196ae8b64d55a3403, Kernel 7.0.12, Kernel 66f4607fe788fc7d81bce0e2f7b3726ed2f71284 and 1 more.
In the Linux kernel, the following vulnerability has been resolved: net/sched: Fix ethx:ingress -> ethy:egress -> ethx:ingress mirred loop When mirred redirects to ingress (from either ingress or egress) the loop state from sched_mirred_dev array dev is lost because of 1) the packet deferral into the backlog and 2) the fact the sched_mirred_dev array is cleared. In such cases, if there was a loop we won't discover it. Here's a simple test to reproduce: ip a add dev port0 10.10.10.11/24 tc qdisc add dev port0 clsact tc filter add dev port0 egress protocol ip \ prio 10 matchall action mirred ingress redirect dev port1 tc qdisc add dev port1 clsact tc filter add dev port1 ingress protocol ip \ prio 10 matchall action mirred egress redirect dev port0 ping -c 1 -W0.01 10.10.10.10
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=fe946a751d9b52b7c45ca34899723b314b79b249 <db875221ab08d213a83bf30196ae8b64d55a3403, =7.1, >=6.19 <7.0.12, =6.19, >=906736728cea480a85803c67fafb1b0e78491922 <66f4607fe788fc7d81bce0e2f7b3726ed2f71284, >=fe946a751d9b52b7c45ca34899723b314b79b249 <45ac526a0d5733c3695946bd84ec57f24d8f5e66 | db875221ab08d213a83bf30196ae8b64d55a3403, 7.0.12, 66f4607fe788fc7d81bce0e2f7b3726ed2f71284, 45ac526a0d5733c3695946bd84ec57f24d8f5e66 |
| linux-kernel: Kernel | >=6.19.0 <7.0.12 | 7.0.12 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket