CVE-2026-53129

fs/mbcache: cancel shrink work before destroying the cache

State
Published
Severity
Not scored
Published
Jun 24, 2026
Updated
Oct 30, 2026
Reserved
Jun 9, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c2f3140fe2eceb3a6c1615b2648b9471544881c6 to before 40148c615687c1692712e50a6de53d62dfbfc20fAffected
  • c2f3140fe2eceb3a6c1615b2648b9471544881c6 to before cbdd6f0fb19a0ce8a013acd80ac87a62f57fa20dAffected
  • c2f3140fe2eceb3a6c1615b2648b9471544881c6 to before a88d39a74a208e197c03bffaa2df34de732af19fAffected
  • c2f3140fe2eceb3a6c1615b2648b9471544881c6 to before 0e4eff315d799f5842b95872199b0f0fb8ef5f51Affected
  • c2f3140fe2eceb3a6c1615b2648b9471544881c6 to before b25fd3523bef88fb7ffd4c5b63bbe9c08f73bb4cAffected
  • c2f3140fe2eceb3a6c1615b2648b9471544881c6 to before d227786ab1119669df4dc333a61510c52047cce4Affected
LinuxLinux
  • 4.6Affected
  • before 4.6Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.160 through 6.6.*Not affected
  • 6.12.91 through 6.12.*Not affected
  • 6.18.33 through 6.18.*Not affected
  • 7.0.10 through 7.0.*Not affected
  • 7.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.