Skip to contentSkip to conversation

CVE-2026-99058: workqueue: Fix NULL current_pwq deref in chained work check

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Oct 23

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

workqueue: Fix NULL current_pwq deref in chained work check

current_wq_worker() only tells us that %current is a kworker. It does not guarantee that the worker is currently executing a work item, as worker->current_pwq is populated only while process_one_work() is running the work function.

is_chained_work() can be reached while queueing on a draining or destroying workqueue. If a kworker outside work-item execution reaches that path, current_wq_worker() returns a worker but worker->current_pwq is NULL, and the chained-work test can fault before it emits the intended warning.

Guard the chained-work test with worker->current_pwq. A kworker without current_pwq is not executing work on the target workqueue, so the helper should return false and let the draining/destroying warning fire.

The Linux kernel CVE team has assigned CVE-2026-99058 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.9 with commit 8d03ecfe471802d6afe97da97722b6924533aa82 and fixed in 6.6.160 with commit 3dc61af2998cfc7312d6e59bbdcd5eed074483f2
	Issue introduced in 3.9 with commit 8d03ecfe471802d6afe97da97722b6924533aa82 and fixed in 6.12.113 with commit 729d576df89c7e4341e58c452f8890620a610ac2
	Issue introduced in 3.9 with commit 8d03ecfe471802d6afe97da97722b6924533aa82 and fixed in 6.18.57 with commit b12a25fb2b9d5dac80e419d695450cc17a51fdfd
	Issue introduced in 3.9 with commit 8d03ecfe471802d6afe97da97722b6924533aa82 and fixed in 7.2.11 with commit 1a2668682e998039a027796b236319b380078a6a
	Issue introduced in 3.9 with commit 8d03ecfe471802d6afe97da97722b6924533aa82 and fixed in 7.3 with commit 980db94e3eeefdd8a1c46f86412c33a7f7806f51

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-99058

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
kernel/workqueue.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/3dc61af2998cfc7312d6e59bbdcd5eed074483f2
	https://git.kernel.org/stable/c/729d576df89c7e4341e58c452f8890620a610ac2
	https://git.kernel.org/stable/c/b12a25fb2b9d5dac80e419d695450cc17a51fdfd
	https://git.kernel.org/stable/c/1a2668682e998039a027796b236319b380078a6a
	https://git.kernel.org/stable/c/980db94e3eeefdd8a1c46f86412c33a7f7806f51