CVE-2026-143131: net/sched: sch_teql: reject qdiscs from another network namespace
In the Linux kernel, the following vulnerability has been resolved:
net/sched: schteql: reject qdiscs from another network namespace
Reported by shaos <shawnq1@163.com> with a reproducer, which was reproduced and verified in our test environment.
The issue: The teql master devices are created once in the initial network namespace and their Qdiscops are global. teqlqdiscinit() takes the teqlmaster embedded in the registered sch->ops and uses it without checking whether the new qdisc's device lives in the same network namespace as the master. A qdisc created in another netns can therefore attach to the init-net master and change its MTU and flags.
The Fix: Reject a teql qdisc whose device is not in the master's network namespace with -EOPNOTSUPP and an extack message; same-netns teql still works.
Initialize the private skb queue before any validation so every constructor failure path, including qdisccreatedflt(), which resets the qdisc before destroying it, sees an initialized empty queue.
Conditions to recreate the bug: CONFIGNETSCHTEQL=y, CONFIGDUMMY=y, CONFIGUSERNS=y, CONFIGNETNS=y. As an unprivileged UID, unshare a user and network namespace, create a dummy device, set its MTU to 60000, and add a root teql0 qdisc:
unshare -Urn ip link add dummy0 type dummy ip link set dummy0 mtu 60000 tc qdisc add dev dummy0 root teql0
The init-net teql0 device changes from MTU 1500 to 60000. A pfifo control on the same device leaves the MTU unchanged, and a direct MTU change on init-net teql0 is denied. The namespace needs CAPNETADMIN; no init-net privilege is required. With the fix the attach fails with "Operation not supported" and the init-net MTU stays 1500.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Systems with the TEQL scheduler built into the kernel, along with dummy devices, user namespaces, and network namespaces enabled, are exposed. The described reproducer works as an unprivileged UID that can create a user and network namespace.
What access does an attacker need?
An attacker needs the ability to unshare into a user and network namespace and create a dummy device. They can then create a TEQL qdisc in the new namespace that attaches to an initial-network-namespace TEQL master.
What impact can exploitation have?
A cross-namespace TEQL qdisc can attach to a TEQL master in the initial network namespace and modify that master's MTU and flags. This breaks the expected network-namespace isolation for those settings.
How does the fix change behavior?
The fix rejects a TEQL qdisc when its device is not in the same network namespace as the TEQL master, returning -EOPNOTSUPP with an extended error message. TEQL qdiscs created within the same network namespace continue to work.