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 D0CC7438FF5 for ; Wed, 6 May 2026 11:36:12 +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=1778067372; cv=none; b=ka/NNuDQKfJmsg9Eh1awwUZ2zXZ+GykTE7E9U7RoSuZGA/9S32HucY+eYlC5JUtXaPzcmV+6G2auVc6SJoN9aoKnIucdZE3Wa5/4DUMjXSwgSZzXe1FSbTlXcmwr75e/AB+WD/gzJ1rr56rCM3wQ4b6sIha8a4xL8vj6q3Xz7nw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067372; c=relaxed/simple; bh=zlagaZyVl6L9vOUfTIW1qIarYvUELPqPosjMu5KKkj0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Tm4AaY7BrwPW14T1ybOcxx0olkou2Mwnr5SGklS+VZaUHtZ/vIp4eWYAgZjAOgCyAhpxwRwgksWPg/t+WbSiV29GehyLOTV7KfVJfeiXdB8w2rYuzjIcw1D8a0LkuWATki1Zw7JE/zqplB3FlpZgG7v2h2Ol60XLiv01IkgWH5U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XSmRkglL; 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="XSmRkglL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65B71C2BCB8; Wed, 6 May 2026 11:36:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067372; bh=zlagaZyVl6L9vOUfTIW1qIarYvUELPqPosjMu5KKkj0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=XSmRkglLTiSQb3+YKba63oEqOXVzdaLrnMOyf65OjzqMWFsGFyrIp9aaiWvM1iCZO 5zaq5WI+Wy9YExfc0xOjhvxDvkgYUsUK8HIjywOAuUO38v6h8Ha7IUR9BkGb2z6UNo XEA54pP5uHmo0wjHsddmyoGf5bP0Xguqk/kFzUoE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71295: fs/buffer: add alert in try_to_free_buffers() for folios without buffers Date: Wed, 6 May 2026 13:32:40 +0200 Message-ID: <2026050633-CVE-2025-71295-621a@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=2855; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZRavahmsOH1/fnMyC325sRwCAArTkHcsM8cIkf3ZGUU=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/1S66T4lcO/eG366JnstWT/sSUdTyRc3ew+76ok37A 7jWq5at7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJWMowzJXLin20Q+/rjhsb LXgfz3A5Uiw9+T3DPMUtyd6OZpUcj2otg/IfvGS9/JthNgA= 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/buffer: add alert in try_to_free_buffers() for folios without buffers try_to_free_buffers() can be called on folios with no buffers attached when filemap_release_folio() is invoked on a folio belonging to a mapping with AS_RELEASE_ALWAYS set but no release_folio operation defined. In such cases, folio_needs_release() returns true because of the AS_RELEASE_ALWAYS flag, but the folio has no private buffer data. This causes try_to_free_buffers() to call drop_buffers() on a folio with no buffers, leading to a null pointer dereference. Adding a check in try_to_free_buffers() to return early if the folio has no buffers attached, with WARN_ON_ONCE() to alert about the misconfiguration. This provides defensive hardening. The Linux kernel CVE team has assigned CVE-2025-71295 to this issue. Affected and fixed versions =========================== Fixed in 6.1.165 with commit 1b111a69a6e33a922622bf9870e4e63fb2b649c8 Fixed in 6.6.128 with commit c1b6227555c52781178132b7a06466711855795c Fixed in 6.12.75 with commit 727e5140e0cf83b4ce6a11b89bb73bff5d96f8f3 Fixed in 6.18.16 with commit 42c32d7571ccd8ef32351cac506f00b0fae99fd2 Fixed in 6.19.6 with commit c6246ca15999053d2632fbcc7b86e6eef7f077cb Fixed in 7.0 with commit b68f91ef3b3fe82ad78c417de71b675699a8467c 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-71295 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/buffer.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/1b111a69a6e33a922622bf9870e4e63fb2b649c8 https://git.kernel.org/stable/c/c1b6227555c52781178132b7a06466711855795c https://git.kernel.org/stable/c/727e5140e0cf83b4ce6a11b89bb73bff5d96f8f3 https://git.kernel.org/stable/c/42c32d7571ccd8ef32351cac506f00b0fae99fd2 https://git.kernel.org/stable/c/c6246ca15999053d2632fbcc7b86e6eef7f077cb https://git.kernel.org/stable/c/b68f91ef3b3fe82ad78c417de71b675699a8467c