mm/filemap: don't lose a folio lock wakeup to a signal
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel da815f785e568accf0d4f2ec36233d316d5035c8, Kernel 5.5, Kernel 31cb998f208c078a6e9656b971bb311ea490ff1e and 5 more.
In the Linux kernel, the following vulnerability has been resolved: mm/filemap: don't lose a folio lock wakeup to a signal An exclusive waiter in folio_wait_bit_common() can leave the wait loop because of a fatal signal, then be woken by folio_unlock() before finish_wait(). If the waker did not hand over the lock, the waiter returns -EINTR without trying to acquire it. folio_wake_bit() stops after waking the first exclusive waiter, so this loses the wakeup and can leave other waiters asleep indefinitely on an unlocked folio. After finish_wait(), let a waiter woken without a lock handoff try once more to acquire the lock. If successful, return success so the caller's eventual unlock wakes the next waiter. Otherwise, the current lock owner will do so. Fix generated by an LLM and sent by Josef Bacik in private. [ david: clarify and simplify comment + description ]
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5ef64cc8987a9211d3f3667331ba3411a94ddc79 <da815f785e568accf0d4f2ec36233d316d5035c8, >=5.4.255 <5.5, >=5ef64cc8987a9211d3f3667331ba3411a94ddc79 <31cb998f208c078a6e9656b971bb311ea490ff1e, >=5ef64cc8987a9211d3f3667331ba3411a94ddc79 <3ce549d0df658a36602f2d03882688af0ea03faf, >=5ef64cc8987a9211d3f3667331ba3411a94ddc79 <8ccb6ded6a47b59b4907ed4f8c293cf8122de889, =5.9, =c404e1e19780d8977f67411a3b951a964c6361ae | da815f785e568accf0d4f2ec36233d316d5035c8, 5.5, 31cb998f208c078a6e9656b971bb311ea490ff1e, 3ce549d0df658a36602f2d03882688af0ea03faf, 8ccb6ded6a47b59b4907ed4f8c293cf8122de889 |
| linux-kernel: Kernel | >=5.9.0 <6.12.118, >=6.13.0 <6.18.64, >=6.19.0 <7.3.5, >=5.4.255 <5.5 | 6.12.118, 6.18.64, 7.3.5, 5.5 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket