Description
In the Linux kernel, the following vulnerability has been resolved: fs/mbcache: cancel shrink work before destroying the cache mb_cache_destroy() calls shrinker_free() and then frees all cache entries and the cache itself, but it does not cancel the pending c_shrink_work work item first. If mb_cache_entry_create() schedules c_shrink_work via schedule_work() and the work item is still pending or running when mb_cache_destroy() runs, mb_cache_shrink_worker() will access the cache after its memory has been freed, causing a use-after-free. This is only reachable by a privileged user (root or CAP_SYS_ADMIN) who can trigger the last put of a mounted ext2/ext4/ocfs2 filesystem. Cancel the work item with cancel_work_sync() before calling shrinker_free(), ensuring the worker has finished and will not be rescheduled before the cache is torn down.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | c2f3140fe2eceb3a6c1615b2648b9471544881c6 to <a88d39a74a208e197c03bffaa2df34de732af19f; c2f3140fe2eceb3a6c1615b2648b9471544881c6 to <0e4eff315d799f5842b95872199b0f0fb8ef5f51; c2f3140fe2eceb3a6c1615b2648b9471544881c6 to <b25fd3523bef88fb7ffd4c5b63bbe9c08f73bb4c; c2f3140fe2eceb3a6c1615b2648b9471544881c6 to <d227786ab1119669df4dc333a61510c52047cce4 |
| Linux | Linux | 4.6; 0 to <4.6; 6.12.91 to <=6.12.*; 6.18.33 to <=6.18.*; 7.0.10 to <=7.0.*; 7.1 to <=* |
References
Generated from the official CVE List on 25 Jun 2026 10:14 UTC.