gfs2: fix quota init duplicate scan
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0, Kernel 812a766e2b0a8f4d094393fad13475c57f5f86db, Kernel b99a1f0f18ee50445907f55069e88bcfd8947383 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: gfs2: fix quota init duplicate scan gfs2_quota_init() checks for duplicate quota_change IDs while holding qd_lock and the quota hash bucket bitlock. That path used gfs2_qd_search_bucket(), which takes a lockref reference via lockref_get_not_dead(). On PREEMPT_RT this may sleep, which is not allowed under the bucket bitlock, triggering "sleeping function called from invalid context". Use a no-ref bucket lookup in this path, then continue duplicate handling without taking a lockref there. Refactor gfs2_qd_search_bucket() to build on top of the no-ref helper so lookup traversal stays in one place. This patch fixes a bug reported by syzbot.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.11, >=de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f <7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0, >=de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f <812a766e2b0a8f4d094393fad13475c57f5f86db, >=de0d95c26c41c1776e4d23b1a8b3f2bcfd1dae5f <b99a1f0f18ee50445907f55069e88bcfd8947383 | 7fdcf16e5e14e11028f5bcaa6d25075eb5e876a0, 812a766e2b0a8f4d094393fad13475c57f5f86db, b99a1f0f18ee50445907f55069e88bcfd8947383 |
| linux-kernel: Kernel | >=6.11.0 <6.12.111, >=6.13.0 <6.18.53 | 6.12.111, 6.18.53 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket