# CVE-2026-142806: net/sched: sch\_teql: fix slaves\_lock IRQ deadlock

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:11:33.707Z
- **Modified:** 2026-12-03T04:18:14.590Z

## Who should check

- Anyone running Linux \>= 03c67781254c574ae7fa75e881239a78473bdf42, \< 08dd03651497288dfc5a4172c6d8367b81b7e5f9; \>= 735567bde7401f82b064f9f107b52ee1bf84ed8c, \< 8b38b110e0d2eb107c87c5091e2054ec580485ea; \>= 11402e6e18e96df615cbcc58157818dd604b23ff, \< 165711bea6f2938749031d9e3fb3a5ae7b74fede; \>= 9b7d05cbaa60108642402100efa6aa288dd33023, \< 87d636b302886e9793bb51bf81f797b2c04197e0; \>= e5b811fe793166aecc59b085c1b7c31262ef2316, \< 04bc5e44895eb83693e42b67b49bcb6707408fda; \>= e5b811fe793166aecc59b085c1b7c31262ef2316, \< 8b2043279dae25483fe1f2d926e76d41ab95c398; b26aa9d993537a4c3167d8ceead3b7c69c3a0aac; \>= 6.1.178, \< 6.1.193; \>= 6.6.145, \< 6.6.163; \>= 6.12.97, \< 6.12.117; …
- Anyone running Linux 7.2

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/sched: sch\_teql: fix slaves\_lock IRQ deadlock

This is a followup of commit e5b811fe7931 ("net/sched: sch\_teql:
Introduce slaves\_lock to avoid race condition and UAF") as reported by
Sashiko.

The issue: master-\>slaves\_lock serializes the master's ring of slave
qdiscs.  The control paths -- teql\_dequeue(), teql\_destroy() and
teql\_qdisc\_init() -- take it with spin\_lock\_bh(), while
teql\_master\_xmit() (the master's ndo\_start\_xmit) takes it with plain
spin\_lock().

netpoll\_send\_skb() wraps the transmit in local\_irq\_save(), and
\_\_netpoll\_send\_skb() asserts lockdep\_assert\_irqs\_disabled(), so
teql\_master\_xmit() reached from netconsole always acquires slaves\_lock
with hard IRQs disabled.  On PREEMPT\_RT spinlock\_t is an rtmutex, and
Documentation/locking/locktypes.rst names

	local\_irq\_disable();
	spin\_lock(&lock);

as a sequence that breaks there because the rtmutex requires a fully
preemptible context.  This is reachable without any panic: the nbcon
printer thread calls netconsole's write\_thread() callback on every
message.  The usual remedy -- folding the IRQ disable into the lock with
spin\_lock\_irqsave() -- is unavailable because the local\_irq\_save() is
netpoll's, not ours.

On non-RT the same asymmetry leaves slaves\_lock acquirable with hard IRQs
disabled on one path and held with hard IRQs enabled on another.  That is
only exploitable during the panic console flush (netconsole is
CON\_NBCON\_ATOMIC\_UNSAFE, so console\_is\_usable() admits its write\_atomic()
only from nbcon\_atomic\_flush\_unsafe(), which panic() alone calls), and
even then an IRQ-saving lock does not help if the holder oopsed inside the
section or was stopped by panic\_other\_cpus\_shutdown().  So the non-RT half
is hardening; the PREEMPT\_RT half is the bug.

The Fix: take slaves\_lock as a raw spinlock with IRQs saved at every
site.  Since skb\_queue\_purge() takes the queue's spinlock\_t and may not
nest inside a raw lock on PREEMPT\_RT, move its call in teql\_destroy()
outside the raw section; dat-\>q is the dying qdisc's own queue and was
never serialized by slaves\_lock, so the move is behaviour-neutral.

The new critical sections contain only RCU pointer assignments and
netdev\_get\_tx\_queue(); skb\_queue\_purge(), netif\_wake\_queue() and
dev\_reset\_queue() are all outside them.  teql\_destroy()'s ring walk is
O(slaves), two pointer loads and a compare per iteration, so even a large
ring is microseconds with IRQs off.  Keeping the purge conditional rather
than dropping it outright is the conservative call for a backport.

Some context: commit 6301f6a34ed8 ("net/sched: sch\_teql: move
rcu\_read\_lock()/spin\_lock() from \_bh variants") hardened the parent
fix; together they addressed the master-\>slaves resurrection
use-after-free and the xmit-side BH warning but left the reverse
direction -- a hard IRQ re-entering xmit while a control path holds the
lock -- unaddressed.

Conditions to recreate the bug:
- CONFIG\_PREEMPT\_RT, CONFIG\_NET\_SCH\_TEQL, CONFIG\_DUMMY and
  CONFIG\_NETCONSOLE.
- Run \`ip link add dev teqlslave0 type dummy\`, bring teqlslave0 up, attach
  it with \`tc qdisc add dev teqlslave0 root teql0\`, and bring teql0 up.
- Configure a netconsole target on teql0 with explicit local and remote
  IP addresses and a remote MAC address, then emit a console message.
  The nbcon printer thread reaches teql\_master\_xmit() with hard IRQs
  disabled by netpoll; taking slaves\_lock as a spinlock\_t is invalid on
  PREEMPT\_RT. No panic or concurrent qdisc change is required.
- Reachable by an admin with CAP\_NET\_ADMIN; teql devices exist only in the
  initial netns (no per-netns ops), so a user namespace does not suffice.

## Affected and fixed versions

- Linux: \>= 03c67781254c574ae7fa75e881239a78473bdf42, \< 08dd03651497288dfc5a4172c6d8367b81b7e5f9; \>= 735567bde7401f82b064f9f107b52ee1bf84ed8c, \< 8b38b110e0d2eb107c87c5091e2054ec580485ea; \>= 11402e6e18e96df615cbcc58157818dd604b23ff, \< 165711bea6f2938749031d9e3fb3a5ae7b74fede; \>= 9b7d05cbaa60108642402100efa6aa288dd33023, \< 87d636b302886e9793bb51bf81f797b2c04197e0; \>= e5b811fe793166aecc59b085c1b7c31262ef2316, \< 04bc5e44895eb83693e42b67b49bcb6707408fda; \>= e5b811fe793166aecc59b085c1b7c31262ef2316, \< 8b2043279dae25483fe1f2d926e76d41ab95c398; b26aa9d993537a4c3167d8ceead3b7c69c3a0aac; \>= 6.1.178, \< 6.1.193; \>= 6.6.145, \< 6.6.163; \>= 6.12.97, \< 6.12.117; … (cvelist)
- Linux: 7.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142806. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142806.md
Affected: Linux >= 03c67781254c574ae7fa75e881239a78473bdf42, < 08dd03651497288dfc5a4172c6d8367b81b7e5f9; >= 735567bde7401f82b064f9f107b52ee1bf84ed8c, < 8b38b110e0d2eb107c87c5091e2054ec580485ea; >= 11402e6e18e96df615cbcc58157818dd604b23ff, < 165711bea6f2938749031d9e3fb3a5ae7b74fede; >= 9b7d05cbaa6010864240210…
Fixed in: Linux 08dd03651497288dfc5a4172c6d8367b81b7e5f9, Linux 8b38b110e0d2eb107c87c5091e2054ec580485ea, Linux 165711bea6f2938749031d9e3fb3a5ae7b74fede, Linux 87d636b302886e9793bb51bf81f797b2c04197e0, Linux 04bc5e44895eb83693e42b67b49bcb6707408fda, Linux 8b2043279dae25483fe1f2d926e76d41ab95c398, Linux 6.1.1…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142806 being exploited?

There is no confirmed exploitation: CVE-2026-142806 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142806?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142806?

Linux \>= 03c67781254c574ae7fa75e881239a78473bdf42, \< 08dd03651497288dfc5a4172c6d8367b81b7e5f9; \>= 735567bde7401f82b064f9f107b52ee1bf84ed8c, \< 8b38b110e0d2eb107c87c5091e2054ec580485ea; \>= 11402e6e18e96df615cbcc58157818dd604b23ff, \< 165711bea6f2938749031d9e3fb3a5ae7b74fede; \>= 9b7d05cbaa60108642402100efa6aa288dd33023, \< 87d636b302886e9793bb51bf81f797b2c04197e0; \>= e5b811fe793166aecc59b085c1b7c31262ef2316, \< 04bc5e44895eb83693e42b67b49bcb6707408fda; \>= e5b811fe793166aecc59b085c1b7c31262ef2316, \< 8b2043279dae25483fe1f2d926e76d41ab95c398; b26aa9d993537a4c3167d8ceead3b7c69c3a0aac; \>= 6.1.178, \< 6.1.193; \>= 6.6.145, \< 6.6.163; \>= 6.12.97, \< 6.12.117; …; Linux 7.2.

### Is there a fix for CVE-2026-142806?

Yes. Fixed in Linux 08dd03651497288dfc5a4172c6d8367b81b7e5f9, Linux 8b38b110e0d2eb107c87c5091e2054ec580485ea, Linux 165711bea6f2938749031d9e3fb3a5ae7b74fede, Linux 87d636b302886e9793bb51bf81f797b2c04197e0, Linux 04bc5e44895eb83693e42b67b49bcb6707408fda, Linux 8b2043279dae25483fe1f2d926e76d41ab95c398, Linux 6.1.193, Linux 6.6.163, Linux 6.12.117. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-142806?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/08dd03651497288dfc5a4172c6d8367b81b7e5f9>
- other: <https://git.kernel.org/stable/c/8b38b110e0d2eb107c87c5091e2054ec580485ea>
- other: <https://git.kernel.org/stable/c/165711bea6f2938749031d9e3fb3a5ae7b74fede>
- other: <https://git.kernel.org/stable/c/87d636b302886e9793bb51bf81f797b2c04197e0>
- other: <https://git.kernel.org/stable/c/04bc5e44895eb83693e42b67b49bcb6707408fda>
- other: <https://git.kernel.org/stable/c/8b2043279dae25483fe1f2d926e76d41ab95c398>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142806>

HTML: <https://flawdb.com/CVE-2026-142806> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142806>
