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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
8d03ecfe471802d6afe97da97722b6924533aa82 to < 73bec442f913855907b63225306dd162c18e5c71affected8d03ecfe471802d6afe97da97722b6924533aa82 to < 6877de2c75f0dd342099a1357856e6c8d474abc3affected8d03ecfe471802d6afe97da97722b6924533aa82 to < 54361e4924c2c52a501b74ef10217c32f45fccfaaffected8d03ecfe471802d6afe97da97722b6924533aa82 to < 3dc61af2998cfc7312d6e59bbdcd5eed074483f2affected8d03ecfe471802d6afe97da97722b6924533aa82 to < 729d576df89c7e4341e58c452f8890620a610ac2affected8d03ecfe471802d6afe97da97722b6924533aa82 to < b12a25fb2b9d5dac80e419d695450cc17a51fdfdaffected8d03ecfe471802d6afe97da97722b6924533aa82 to < 1a2668682e998039a027796b236319b380078a6aaffected8d03ecfe471802d6afe97da97722b6924533aa82 to < 980db94e3eeefdd8a1c46f86412c33a7f7806f51affected
Linux Linux
Default version status: affected
3.9affected0 to < 3.9unaffected5.10.273 to ≤ 5.10.*unaffected5.15.224 to ≤ 5.15.*unaffected6.1.191 to ≤ 6.1.*unaffected6.6.160 to ≤ 6.6.*unaffected6.12.113 to ≤ 6.12.*unaffected6.18.57 to ≤ 6.18.*unaffected7.2.11 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/73bec442f913855907b63225306dd162c18e5c71 ↗
- https://git.kernel.org/stable/c/6877de2c75f0dd342099a1357856e6c8d474abc3 ↗
- https://git.kernel.org/stable/c/54361e4924c2c52a501b74ef10217c32f45fccfa ↗
- 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 ↗