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 65490269CFA for ; Tue, 20 May 2025 16:02:29 +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=1747756950; cv=none; b=KrTM/t5SZYLBWh2VTxCfE97nC+E0tgOmtaeBeAmA1cLwV0ZQAe/B8cw1L/TOlE3j5e8HLOzBJp0+TUzkwt/CREC6wxdpGcUVMRSNNL9bXZ6I3KMrj10OAleniD9mrTdTV+Og1X0W+B/kczglKV2rdw0PVpzMgflQFonRO9uoaWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747756950; c=relaxed/simple; bh=CW1gX+eBEOutQ4KQIi3ZD0m4/eXFUNO5RQohwnQRMCc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=f4599phOibCy5UPLZfcWnZ+ofvg28pRQKD/wba2RnTdxpqwPtX/YIimDbrGupxzuwBTrW0DUf5XxGiTEkqvip/tBmnqrTj0F3pGB1kV4U7bPyDwjzNeKiYjYnVan/yTgYqhmsDA2WXrJ3IsC3O8jpiaUHOy+qF8IFfr7/4QCoCM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qUg/DY0r; 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="qUg/DY0r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6908DC4CEEB; Tue, 20 May 2025 16:02:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747756949; bh=CW1gX+eBEOutQ4KQIi3ZD0m4/eXFUNO5RQohwnQRMCc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=qUg/DY0rMAwDMS8vJb2X1WYse/sGwKr5qthxk7YXIDCTcE5Ls8Fs+e+/VLO+V4EZ5 pzxFA3allcWfNbZvgZXLDOiTFs1ohXpeYl6kkh2tVR3ZA5Qf7g2wbZGfpKvy4kIVPo X6M79qRzPSEu+Gj2WGn5wrX8fRgdKUZb0Yeok7/g= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37950: ocfs2: fix panic in failed foilio allocation Date: Tue, 20 May 2025 18:02:04 +0200 Message-ID: <2025052000-CVE-2025-37950-2a1f@gregkh> X-Mailer: git-send-email 2.49.0 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=2149; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RoLsEfvXo2wdLm43XoA8oc5QNd2E0XsjlMj+WJUyeuk=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk6yyvOW7QVJOhHv0m9/ez7DPftVhEpO/jnf2XN/ru17 MraJYkGHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRI0sZ5ifV7rqqtNrsoZD9 I3GjFXMftSZH+TEsOGPZdLh27YKc/0+3T2ebPtPzZ8JVSwA= 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: ocfs2: fix panic in failed foilio allocation commit 7e119cff9d0a ("ocfs2: convert w_pages to w_folios") and commit 9a5e08652dc4b ("ocfs2: use an array of folios instead of an array of pages") save -ENOMEM in the folio array upon allocation failure and call the folio array free code. The folio array free code expects either valid folio pointers or NULL. Finding the -ENOMEM will result in a panic. Fix by NULLing the error folio entry. The Linux kernel CVE team has assigned CVE-2025-37950 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 7e119cff9d0a21e39e53c7d27addc31f4b8c0000 and fixed in 6.14.7 with commit 80d18f060d5bdf2c5eb3d1d00dcb744d6a879222 Issue introduced in 6.14 with commit 7e119cff9d0a21e39e53c7d27addc31f4b8c0000 and fixed in 6.15-rc6 with commit 31d4cd4eb2f8d9b87ebfa6a5e443a59e3b3d7b8c 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-37950 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/ocfs2/alloc.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/80d18f060d5bdf2c5eb3d1d00dcb744d6a879222 https://git.kernel.org/stable/c/31d4cd4eb2f8d9b87ebfa6a5e443a59e3b3d7b8c