srcu: Use irq_work to start GP in tiny SRCU
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.19.14, Kernel a6fc88b22bc8d12ad52e8412c667ec0f5bf055af, Kernel bb37286db65368cb72ba8757ad86299c4e4a73fc and 2 more.
In the Linux kernel, the following vulnerability has been resolved: srcu: Use irq_work to start GP in tiny SRCU Tiny SRCU's srcu_gp_start_if_needed() directly calls schedule_work(), which acquires the workqueue pool->lock. This causes a lockdep splat when call_srcu() is called with a scheduler lock held, due to: call_srcu() [holding pi_lock] srcu_gp_start_if_needed() schedule_work() -> pool->lock workqueue_init() / create_worker() [holding pool->lock] wake_up_process() -> try_to_wake_up() -> pi_lock Also add irq_work_sync() to cleanup_srcu_struct() to prevent a use-after-free if a queued irq_work fires after cleanup begins. Tested with rcutorture SRCU-T and no lockdep warnings. [ Thanks to Boqun for similar fix in patch "rcu: Use an intermediate irq_work to start process_srcu()" ]
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4.12 <6.19.14, =7.0, >=d8be81735aa89413b333de488251f0e64e2be591 <a6fc88b22bc8d12ad52e8412c667ec0f5bf055af, >=d8be81735aa89413b333de488251f0e64e2be591 <bb37286db65368cb72ba8757ad86299c4e4a73fc, =4.12, >=d8be81735aa89413b333de488251f0e64e2be591 <28768bc7ea0b13f558a70f63cc3cfcd32d55d488 | 6.19.14, a6fc88b22bc8d12ad52e8412c667ec0f5bf055af, bb37286db65368cb72ba8757ad86299c4e4a73fc, 28768bc7ea0b13f558a70f63cc3cfcd32d55d488 |
| linux-kernel: Kernel | >=4.12.0 <6.18.57, >=6.19.0 <6.19.14 | 6.18.57, 6.19.14 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket