Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1F7D224418D for ; Mon, 10 Feb 2025 15:59:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739203160; cv=none; b=hsraAZY83WPCArtqPOkNDjUW2t5M89t9/hfo99TO3tx7tgLCRGCkpeZj1Uji9wV99HZydLvaJ5TpZEjGeANkyEBxKMIc76Atv4YIEJMvyqqvWWN9J0yFLABC9nPDuAzKeDsKFJ8CCZorVW/jJlEM0Kuj/+XgQ2k11Oa+axpvOkQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739203160; c=relaxed/simple; bh=BcNSgSmcBBQrwviVHl7lLTovaPq1FrDzHVswKC4tFeM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VMqop4IcgTI8XWRzOYFw4h/iqOv9O08nst1Z8j76zgQpdQWahrIS1v27pJEOyTxY9O2LEfeLLj9sAHOqqmWU6m0wwdMTks+a0ZB7CyhzblAUmXiy4XuYwvzuQHtl2BiEwtI1nCl6aVi43KUT1u93x/QZCgNzLoK75hUPb5F9sLc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E7jdH9gU; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="E7jdH9gU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25846C4CEE6; Mon, 10 Feb 2025 15:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1739203159; bh=BcNSgSmcBBQrwviVHl7lLTovaPq1FrDzHVswKC4tFeM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=E7jdH9gUxWn/MUoSzvDUgwS4oUrns2qRCAoSF5AQRkAYwhlmmFRJ+7GktbXjn9yTj c7RQTy1nddZ/52CAeGBJ0QPWJO3eKSrSl69a5hzjFs30yWHmBc5HFlDmIw4Q2KV7T7 ZQTA2FEvGZUYKYvzqVdGsYrd01bmK+FAg6Hxik4E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21691: cachestat: fix page cache statistics permission checking Date: Mon, 10 Feb 2025 16:58:59 +0100 Message-ID: <2025021055-CVE-2025-21691-2bd2@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2761; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BcNSgSmcBBQrwviVHl7lLTovaPq1FrDzHVswKC4tFeM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOmrlOwzNWM31csJWWhbzZfXSpHyt2MzOK52f/XVhs/ev po3nv7viGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgImcl2FYsCnydoTe8dceXmr9 PLzp/7e8W7g5gmGe8YrjpXsu7+1QnVK26ugS242zuXOYAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: cachestat: fix page cache statistics permission checking When the 'cachestat()' system call was added in commit cf264e1329fb ("cachestat: implement cachestat syscall"), it was meant to be a much more convenient (and performant) version of mincore() that didn't need mapping things into the user virtual address space in order to work. But it ended up missing the "check for writability or ownership" fix for mincore(), done in commit 134fca9063ad ("mm/mincore.c: make mincore() more conservative"). This just adds equivalent logic to 'cachestat()', modified for the file context (rather than vma). The Linux kernel CVE team has assigned CVE-2025-21691 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit cf264e1329fb0307e044f7675849f9f38b44c11a and fixed in 6.6.75 with commit 7d6405c13b0d8a8367cd8df63f118b619a3f0dd2 Issue introduced in 6.5 with commit cf264e1329fb0307e044f7675849f9f38b44c11a and fixed in 6.12.12 with commit 780ab8329672464984cf1344bd5c3993af0226c7 Issue introduced in 6.5 with commit cf264e1329fb0307e044f7675849f9f38b44c11a and fixed in 6.13.1 with commit 97153a05077f618f7471f50a78158602badccb30 Issue introduced in 6.5 with commit cf264e1329fb0307e044f7675849f9f38b44c11a and fixed in 6.14-rc1 with commit 5f537664e705b0bf8b7e329861f20128534f6a83 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-2025-21691 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: mm/filemap.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/7d6405c13b0d8a8367cd8df63f118b619a3f0dd2 https://git.kernel.org/stable/c/780ab8329672464984cf1344bd5c3993af0226c7 https://git.kernel.org/stable/c/97153a05077f618f7471f50a78158602badccb30 https://git.kernel.org/stable/c/5f537664e705b0bf8b7e329861f20128534f6a83