FKIE_CVE-2026-142806

Vulnerability from fkie_nvd - Published: 2026-12-03 04:18 - Updated: 2026-12-03 04:18
Severity
Summary
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.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/sched/sch_teql.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "08dd03651497288dfc5a4172c6d8367b81b7e5f9",
              "status": "affected",
              "version": "03c67781254c574ae7fa75e881239a78473bdf42",
              "versionType": "git"
            },
            {
              "lessThan": "8b38b110e0d2eb107c87c5091e2054ec580485ea",
              "status": "affected",
              "version": "735567bde7401f82b064f9f107b52ee1bf84ed8c",
              "versionType": "git"
            },
            {
              "lessThan": "165711bea6f2938749031d9e3fb3a5ae7b74fede",
              "status": "affected",
              "version": "11402e6e18e96df615cbcc58157818dd604b23ff",
              "versionType": "git"
            },
            {
              "lessThan": "87d636b302886e9793bb51bf81f797b2c04197e0",
              "status": "affected",
              "version": "9b7d05cbaa60108642402100efa6aa288dd33023",
              "versionType": "git"
            },
            {
              "lessThan": "04bc5e44895eb83693e42b67b49bcb6707408fda",
              "status": "affected",
              "version": "e5b811fe793166aecc59b085c1b7c31262ef2316",
              "versionType": "git"
            },
            {
              "lessThan": "8b2043279dae25483fe1f2d926e76d41ab95c398",
              "status": "affected",
              "version": "e5b811fe793166aecc59b085c1b7c31262ef2316",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "b26aa9d993537a4c3167d8ceead3b7c69c3a0aac",
              "versionType": "git"
            },
            {
              "lessThan": "6.1.193",
              "status": "affected",
              "version": "6.1.178",
              "versionType": "semver"
            },
            {
              "lessThan": "6.6.163",
              "status": "affected",
              "version": "6.6.145",
              "versionType": "semver"
            },
            {
              "lessThan": "6.12.117",
              "status": "affected",
              "version": "6.12.97",
              "versionType": "semver"
            },
            {
              "lessThan": "6.18.61",
              "status": "affected",
              "version": "6.18.40",
              "versionType": "semver"
            },
            {
              "lessThan": "7.2",
              "status": "affected",
              "version": "7.1.5",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/sched/sch_teql.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "7.2"
            },
            {
              "lessThan": "7.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.61",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_teql: fix slaves_lock IRQ deadlock\n\nThis is a followup of commit e5b811fe7931 (\"net/sched: sch_teql:\nIntroduce slaves_lock to avoid race condition and UAF\") as reported by\nSashiko.\n\nThe issue: master-\u003eslaves_lock serializes the master\u0027s ring of slave\nqdiscs.  The control paths -- teql_dequeue(), teql_destroy() and\nteql_qdisc_init() -- take it with spin_lock_bh(), while\nteql_master_xmit() (the master\u0027s ndo_start_xmit) takes it with plain\nspin_lock().\n\nnetpoll_send_skb() wraps the transmit in local_irq_save(), and\n__netpoll_send_skb() asserts lockdep_assert_irqs_disabled(), so\nteql_master_xmit() reached from netconsole always acquires slaves_lock\nwith hard IRQs disabled.  On PREEMPT_RT spinlock_t is an rtmutex, and\nDocumentation/locking/locktypes.rst names\n\n\tlocal_irq_disable();\n\tspin_lock(\u0026lock);\n\nas a sequence that breaks there because the rtmutex requires a fully\npreemptible context.  This is reachable without any panic: the nbcon\nprinter thread calls netconsole\u0027s write_thread() callback on every\nmessage.  The usual remedy -- folding the IRQ disable into the lock with\nspin_lock_irqsave() -- is unavailable because the local_irq_save() is\nnetpoll\u0027s, not ours.\n\nOn non-RT the same asymmetry leaves slaves_lock acquirable with hard IRQs\ndisabled on one path and held with hard IRQs enabled on another.  That is\nonly exploitable during the panic console flush (netconsole is\nCON_NBCON_ATOMIC_UNSAFE, so console_is_usable() admits its write_atomic()\nonly from nbcon_atomic_flush_unsafe(), which panic() alone calls), and\neven then an IRQ-saving lock does not help if the holder oopsed inside the\nsection or was stopped by panic_other_cpus_shutdown().  So the non-RT half\nis hardening; the PREEMPT_RT half is the bug.\n\nThe Fix: take slaves_lock as a raw spinlock with IRQs saved at every\nsite.  Since skb_queue_purge() takes the queue\u0027s spinlock_t and may not\nnest inside a raw lock on PREEMPT_RT, move its call in teql_destroy()\noutside the raw section; dat-\u003eq is the dying qdisc\u0027s own queue and was\nnever serialized by slaves_lock, so the move is behaviour-neutral.\n\nThe new critical sections contain only RCU pointer assignments and\nnetdev_get_tx_queue(); skb_queue_purge(), netif_wake_queue() and\ndev_reset_queue() are all outside them.  teql_destroy()\u0027s ring walk is\nO(slaves), two pointer loads and a compare per iteration, so even a large\nring is microseconds with IRQs off.  Keeping the purge conditional rather\nthan dropping it outright is the conservative call for a backport.\n\nSome context: commit 6301f6a34ed8 (\"net/sched: sch_teql: move\nrcu_read_lock()/spin_lock() from _bh variants\") hardened the parent\nfix; together they addressed the master-\u003eslaves resurrection\nuse-after-free and the xmit-side BH warning but left the reverse\ndirection -- a hard IRQ re-entering xmit while a control path holds the\nlock -- unaddressed.\n\nConditions to recreate the bug:\n- CONFIG_PREEMPT_RT, CONFIG_NET_SCH_TEQL, CONFIG_DUMMY and\n  CONFIG_NETCONSOLE.\n- Run `ip link add dev teqlslave0 type dummy`, bring teqlslave0 up, attach\n  it with `tc qdisc add dev teqlslave0 root teql0`, and bring teql0 up.\n- Configure a netconsole target on teql0 with explicit local and remote\n  IP addresses and a remote MAC address, then emit a console message.\n  The nbcon printer thread reaches teql_master_xmit() with hard IRQs\n  disabled by netpoll; taking slaves_lock as a spinlock_t is invalid on\n  PREEMPT_RT. No panic or concurrent qdisc change is required.\n- Reachable by an admin with CAP_NET_ADMIN; teql devices exist only in the\n  initial netns (no per-netns ops), so a user namespace does not suffice."
    }
  ],
  "id": "CVE-2026-142806",
  "lastModified": "2026-12-03T04:18:14.590",
  "metrics": {},
  "published": "2026-12-03T04:18:14.590",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/04bc5e44895eb83693e42b67b49bcb6707408fda"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/08dd03651497288dfc5a4172c6d8367b81b7e5f9"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/165711bea6f2938749031d9e3fb3a5ae7b74fede"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/87d636b302886e9793bb51bf81f797b2c04197e0"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/8b2043279dae25483fe1f2d926e76d41ab95c398"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/8b38b110e0d2eb107c87c5091e2054ec580485ea"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.