{"id":"CVE-2026-143131","state":"PUBLISHED","title":"net/sched: sch_teql: reject qdiscs from another network namespace","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_teql: reject qdiscs from another network namespace\n\nReported by shaos <shawnq1@163.com> with a reproducer, which was\nreproduced and verified in our test environment.\n\nThe issue:\nThe teql master devices are created once in the initial network\nnamespace and their Qdisc_ops are global. teql_qdisc_init() takes the\nteql_master embedded in the registered sch->ops and uses it without\nchecking whether the new qdisc's device lives in the same network\nnamespace as the master. A qdisc created in another netns can therefore\nattach to the init-net master and change its MTU and flags.\n\nThe Fix:\nReject a teql qdisc whose device is not in the master's network\nnamespace with -EOPNOTSUPP and an extack message; same-netns teql still\nworks.\n\nInitialize the private skb queue before any validation so every\nconstructor failure path, including qdisc_create_dflt(), which resets the\nqdisc before destroying it, sees an initialized empty queue.\n\nConditions to recreate the bug:\nCONFIG_NET_SCH_TEQL=y, CONFIG_DUMMY=y, CONFIG_USER_NS=y, CONFIG_NET_NS=y.\nAs an unprivileged UID, unshare a user and network namespace, create a\ndummy device, set its MTU to 60000, and add a root teql0 qdisc:\n\n  unshare -Urn\n  ip link add dummy0 type dummy\n  ip link set dummy0 mtu 60000\n  tc qdisc add dev dummy0 root teql0\n\nThe init-net teql0 device changes from MTU 1500 to 60000. A pfifo control\non the same device leaves the MTU unchanged, and a direct MTU change on\ninit-net teql0 is denied. The namespace needs CAP_NET_ADMIN; no init-net\nprivilege is required. With the fix the attach fails with\n\"Operation not supported\" and the init-net MTU stays 1500.","publishedAt":"2026-12-03T09:19:39.201Z","updatedAt":"2026-12-03T09:19:39.201Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7316ae88c43d47f6503f4c29b4973204e33c3411","status":"affected","lessThan":"b80aeac7d677ac1fad61a228dd1775b8888fc13a","versionType":"git"},{"version":"7316ae88c43d47f6503f4c29b4973204e33c3411","status":"affected","lessThan":"bcbfa113dcb769888b66ae20417307b93a97bbf9","versionType":"git"},{"version":"7316ae88c43d47f6503f4c29b4973204e33c3411","status":"affected","lessThan":"7e012cb327f654ab606e8db0c83bf5d3d4943d35","versionType":"git"},{"version":"7316ae88c43d47f6503f4c29b4973204e33c3411","status":"affected","lessThan":"c60b4e6002f08456a975e2c7c32bf2d6f484da56","versionType":"git"},{"version":"7316ae88c43d47f6503f4c29b4973204e33c3411","status":"affected","lessThan":"fda4263f036ec4c4672e17d407a3070d95481dad","versionType":"git"},{"version":"7316ae88c43d47f6503f4c29b4973204e33c3411","status":"affected","lessThan":"1ae84bdd736f8fab30180159996e1d193f8029ff","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/sch_teql.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.35","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.35","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/sch_teql.c"]}],"references":["https://git.kernel.org/stable/c/b80aeac7d677ac1fad61a228dd1775b8888fc13a","https://git.kernel.org/stable/c/bcbfa113dcb769888b66ae20417307b93a97bbf9","https://git.kernel.org/stable/c/7e012cb327f654ab606e8db0c83bf5d3d4943d35","https://git.kernel.org/stable/c/c60b4e6002f08456a975e2c7c32bf2d6f484da56","https://git.kernel.org/stable/c/fda4263f036ec4c4672e17d407a3070d95481dad","https://git.kernel.org/stable/c/1ae84bdd736f8fab30180159996e1d193f8029ff"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143131.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143131","state":"PUBLISHED","datePublished":"2026-12-03T09:19:39.201Z","dateUpdated":"2026-12-03T09:19:39.201Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.352Z"},"containers":{"cna":{"title":"net/sched: sch_teql: reject qdiscs from another network namespace","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_teql: reject qdiscs from another network namespace\n\nReported by shaos <shawnq1@163.com> with a reproducer, which was\nreproduced and verified in our test environment.\n\nThe issue:\nThe teql master devices are created once in the initial network\nnamespace and their Qdisc_ops are global. teql_qdisc_init() takes the\nteql_master embedded in the registered sch->ops and uses it without\nchecking whether the new qdisc's device lives in the same network\nnamespace as the master. A qdisc created in another netns can therefore\nattach to the init-net master and change its MTU and flags.\n\nThe Fix:\nReject a teql qdisc whose device is not in the master's network\nnamespace with -EOPNOTSUPP and an extack message; same-netns teql still\nworks.\n\nInitialize the private skb queue before any validation so every\nconstructor failure path, including qdisc_create_dflt(), which resets the\nqdisc before destroying it, sees an initialized empty queue.\n\nConditions to recreate the bug:\nCONFIG_NET_SCH_TEQL=y, CONFIG_DUMMY=y, CONFIG_USER_NS=y, CONFIG_NET_NS=y.\nAs an unprivileged UID, unshare a user and network namespace, create a\ndummy device, set its MTU to 60000, and add a root teql0 qdisc:\n\n  unshare -Urn\n  ip link add dummy0 type dummy\n  ip link set dummy0 mtu 60000\n  tc qdisc add dev dummy0 root teql0\n\nThe init-net teql0 device changes from MTU 1500 to 60000. A pfifo control\non the same device leaves the MTU unchanged, and a direct MTU change on\ninit-net teql0 is denied. The namespace needs CAP_NET_ADMIN; no init-net\nprivilege is required. With the fix the attach fails with\n\"Operation not supported\" and the init-net MTU stays 1500."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7316ae88c43d47f6503f4c29b4973204e33c3411","status":"affected","lessThan":"b80aeac7d677ac1fad61a228dd1775b8888fc13a","versionType":"git"},{"version":"7316ae88c43d47f6503f4c29b4973204e33c3411","status":"affected","lessThan":"bcbfa113dcb769888b66ae20417307b93a97bbf9","versionType":"git"},{"version":"7316ae88c43d47f6503f4c29b4973204e33c3411","status":"affected","lessThan":"7e012cb327f654ab606e8db0c83bf5d3d4943d35","versionType":"git"},{"version":"7316ae88c43d47f6503f4c29b4973204e33c3411","status":"affected","lessThan":"c60b4e6002f08456a975e2c7c32bf2d6f484da56","versionType":"git"},{"version":"7316ae88c43d47f6503f4c29b4973204e33c3411","status":"affected","lessThan":"fda4263f036ec4c4672e17d407a3070d95481dad","versionType":"git"},{"version":"7316ae88c43d47f6503f4c29b4973204e33c3411","status":"affected","lessThan":"1ae84bdd736f8fab30180159996e1d193f8029ff","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/sch_teql.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.35","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.35","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/sch_teql.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b80aeac7d677ac1fad61a228dd1775b8888fc13a"},{"url":"https://git.kernel.org/stable/c/bcbfa113dcb769888b66ae20417307b93a97bbf9"},{"url":"https://git.kernel.org/stable/c/7e012cb327f654ab606e8db0c83bf5d3d4943d35"},{"url":"https://git.kernel.org/stable/c/c60b4e6002f08456a975e2c7c32bf2d6f484da56"},{"url":"https://git.kernel.org/stable/c/fda4263f036ec4c4672e17d407a3070d95481dad"},{"url":"https://git.kernel.org/stable/c/1ae84bdd736f8fab30180159996e1d193f8029ff"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:39.201Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.35","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}