srcu: Use irq_work to start GP in tiny SRCU
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.114, 6.18.57, 6.19.14
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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()" ]
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From d8be81735aa89413b333de488251f0e64e2be591 · fixed in 20b98d9ffb09763048a7c84b47403eb0f177272c; From d8be81735aa89413b333de488251f0e64e2be591 · fixed in 2127e6b79d9d579ea538a350d1bbe859e39814d5; From d8be81735aa89413b333de488251f0e64e2be591 · fixed in 28768bc7ea0b13f558a70f63cc3cfcd32d55d488; From d8be81735aa89413b333de488251f0e64e2be591 · fixed in bb37286db65368cb72ba8757ad86299c4e4a73fc; From d8be81735aa89413b333de488251f0e64e2be591 · fixed in a6fc88b22bc8d12ad52e8412c667ec0f5bf055af
- Linux Linux
4.12
- KernelLinux
From 4.12.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 6.18.57; From 6.19.0 · fixed in 6.19.14