Skip to contentSkip to conversation

CVE-2026-63982: net/sched: Fix ethx:ingress -> ethy:egress -> ethx:ingress mirred loop

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

The Linux kernel CVE team has assigned CVE-2026-63982 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.19 with commit fe946a751d9b52b7c45ca34899723b314b79b249 and fixed in 7.0.12 with commit 45ac526a0d5733c3695946bd84ec57f24d8f5e66
	Issue introduced in 6.19 with commit fe946a751d9b52b7c45ca34899723b314b79b249 and fixed in 7.1 with commit db875221ab08d213a83bf30196ae8b64d55a3403

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-63982

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
net/sched/act_mirred.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/66f4607fe788fc7d81bce0e2f7b3726ed2f71284
	https://git.kernel.org/stable/c/45ac526a0d5733c3695946bd84ec57f24d8f5e66
	https://git.kernel.org/stable/c/db875221ab08d213a83bf30196ae8b64d55a3403