KernelScan.io

HIGH Introduced in 6.9

workqueue PendingPwq UAF

CVE-2026-99103

CVSS 7.0 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

In the Linux kernel, the following vulnerability has been resolved: workqueue: Fix unbound pool lifetime for pending pwqs KASAN reports a use-after-free of an unbound worker_pool in node_activate_pending_pwq(): BUG: KASAN: slab-use-after-free in _raw_spin_trylock+0x6d/0x120 Read of size 4 at addr ffff8880089ce000 by task kworker/u22:0/318 CPU: 1 UID: 0 PID: 318 Comm: kworker/u22:0 Not tainted 7.2.0 #1 PREEMPT(lazy) Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014 Workqueue: 0x0 (flush-8:0) Call Trace: <TASK> dump_stack_lvl+0x53/0x70 print_report+0xce/0x610 kasan_report+0xce/0x100 _raw_spin_trylock+0x6d/0x120 pwq_dec_nr_in_flight+0x4b4/0xcb0 process_one_work+0x921/0x11a0 worker_thread+0x4d0/0xd20 kthread+0x2de/0x3c0 ret_from_fork+0x3aa/0x620 ret_from_fork_asm+0x1a/0x30 </TASK> Allocated by task 311: alloc_pwq+0x439/0xca0 apply_wqattrs_prepare+0x75e/0xd10 apply_workqueue_attrs_locked+0x44/0xa0 wq_nice_store+0x350/0x450 Freed by task 0: kfree+0x127/0x3b0 rcu_core+0x523/0x1780 handle_softirqs+0x1b3/0x610 Last potentially related work creation: put_unbound_pool+0x3f3/0x7d0 pwq_release_workfn+0x494/0x8e0 kthread_worker_fn+0x1ff/0x790 Canceling the last inactive work skips pwq_dec_nr_active(), so an empty pwq can remain on pending_pwqs when its refcnt reaches zero. pwq_release_workfn() currently puts the pool before removing that pwq. If this drops the last pool reference, the pool can be RCU-freed while the pwq remains reachable, and node_activate_pending_pwq() may trylock the freed pool->lock. Remove the pwq from pending_pwqs before putting the pool.

02

Engine v0.9.0

Risk summary

A use-after-free in the core workqueue subsystem allows a local attacker to corrupt kernel memory and potentially escalate privileges. The bug occurs when an unbound workqueue's pool is freed while a pool_workqueue remains on a pending list, leading to a lock operation on freed memory. Systems running kernels with the backported system-wide nr_active enforcement feature (6.6.y, 6.7-6.8, 7.2) are affected.

Affectedkernel/workqueue.c (workqueue subsystem)

Vulnerability analysis

The vulnerability was introduced by a feature that added system-wide concurrency enforcement for unbound workqueues. When the last inactive work item on a pool_workqueue (pwq) is canceled, the pwq can remain on a per-node pending list even after its reference count drops to zero. During cleanup, the pwq release function drops the worker pool reference before removing the pwq from that pending list. If this was the final reference, the pool is freed via RCU while the pwq is still reachable. Later, the workqueue activation code attempts to acquire the freed pool's lock, causing a use-after-free. The fix reverts the entire feature, removing the pending list mechanism and restoring the previous per-pwq concurrency accounting. A local user who can trigger workqueue creation, attribute changes, or destruction (directly via sysfs with root privileges or indirectly through kernel subsystems that manage workqueues) can reach this code path.

03

BranchIntroducedFixed inPatch commit
6.126.96.12.115f320b85c90fe
6.186.96.18.593d2ef2b9f4c0
6.66.6.236.6.256741dd3fd38e
6.76.7.116.8390b9542fe67
6.86.8.26.8.49f5d5aef3072
7.26.97.2.13cf9c8aaea0d4
mainline6.97.3—
cip/6.126.96.12.117-cip35390b9542fe67

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.117-cip35