Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44DCA33D4FD for ; Wed, 24 Jun 2026 16:42:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319321; cv=none; b=HhQ9k3fd5vOsD+PfVxJwb14xKNsTLAE7gqh+d0rlAVJkZkZklamIJ/h5phfCqNo6wpYi4urf64Ibh7GwWX5B3qpkACd094cSR55XkMsfZ9QS7/kwN9dWpjqd6dVoUQq/ni7G9iAHEeWUI92n274QsuBvxg50aHcxaKCSVGe//3Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782319321; c=relaxed/simple; bh=hzRFxh+S9/gT9bDi/D3RlmSUuXdPFrvR5MI+fRtmq9s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=T8Oia/3XbaMMDIp9e6/vMnfzPDiLtqVP/2UAK89+RBEdbapdGpwJImwUUR0nvpQ774sNHssYYyjJxQnKehQjeXzy2K43+BzL7yHGn+GcUR5uy1EArnfCGOKbgw5o1/u3ZEv9U5TDaiZjvp5ffYzti876+lhn+Oq7/uLdPFhk7Qk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Okn1ZtPk; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Okn1ZtPk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D0131F000E9; Wed, 24 Jun 2026 16:41:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782319320; bh=eFrnGNq2sIo0PWCaHdWbXnLEOLdyDfL9M38z7+Yjdwg=; h=From:To:Cc:Subject:Date:Reply-To; b=Okn1ZtPkU0MQdxbKZAvxmTQiU2b4c5b8bsXIpmQBQUU6Lr2X0+ngM0ig9kEltIoVx uB80S8qaQAO7aZL49OxZl7min8QyyXDgQ9IF8KyHu3aXOqWvSkxW5fLhTi4keekxel WzYbyenJQqGTluAi71J39hiDJAlwOU15vjOn1TFA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53129: fs/mbcache: cancel shrink work before destroying the cache Date: Wed, 24 Jun 2026 17:32:33 +0100 Message-ID: <2026062418-CVE-2026-53129-781c@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2945; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0OhrW0zmBAVxr9TLzCSMO6ftl2D8R2TIFv7AfYeiw1o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFk2bFIii5Ou8U1b3FLJYm+9JZbr84YbPCfaH93fmM4+z edY85HkjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIyXqG+UmTmVbyfavJf/1c /LFd/fWKiZXSrxgWNAXP4vrVkZr1u3DmGs3DjOEfHwSXAQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-53129 to this issue. Affected and fixed versions =========================== Issue introduced in 4.6 with commit c2f3140fe2eceb3a6c1615b2648b9471544881c6 and fixed in 6.12.91 with commit a88d39a74a208e197c03bffaa2df34de732af19f Issue introduced in 4.6 with commit c2f3140fe2eceb3a6c1615b2648b9471544881c6 and fixed in 6.18.33 with commit 0e4eff315d799f5842b95872199b0f0fb8ef5f51 Issue introduced in 4.6 with commit c2f3140fe2eceb3a6c1615b2648b9471544881c6 and fixed in 7.0.10 with commit b25fd3523bef88fb7ffd4c5b63bbe9c08f73bb4c Issue introduced in 4.6 with commit c2f3140fe2eceb3a6c1615b2648b9471544881c6 and fixed in 7.1 with commit d227786ab1119669df4dc333a61510c52047cce4 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-53129 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/mbcache.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/a88d39a74a208e197c03bffaa2df34de732af19f https://git.kernel.org/stable/c/0e4eff315d799f5842b95872199b0f0fb8ef5f51 https://git.kernel.org/stable/c/b25fd3523bef88fb7ffd4c5b63bbe9c08f73bb4c https://git.kernel.org/stable/c/d227786ab1119669df4dc333a61510c52047cce4