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 53F643D6F for ; Thu, 1 May 2025 12:58:43 +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=1746104323; cv=none; b=lFgUbpMmba2DGxVm9NJNXknLtbWH8Il1CBLajlyTLVdmza1e+3oDTId9X2s/wHGZ8+2TNM+svj8YkUxio9GhEgvuztQyLPKS2dVUif5pWZdmWOgpLJPt2q2HJkMxk/IIUMh5uiv4L1u4OGP5YQ4lV3rrdqap+6h6GmkHMC7SiVg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104323; c=relaxed/simple; bh=NFyWTSKw0T3EpA2SL1looE3XHKTsMbgcOWu1kX9MRpo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a70VQ5KppkYbPwst6FFJs9LEvytgRTSDy6yqXTz1QLsbLkomWhzhwPA1lWqAd0KUbtoxzCs0xpbLmd3/gF9dSKsDL1Iz5CVUUCGph2xgXYO1BSZ+FP247EclUZI0ZmMoh+aEuxkwjt7dhmFNnRZHtwkk/HV2NuqAVEF58pTXHWc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tkg1EKCc; 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="tkg1EKCc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D42B7C4CEE3; Thu, 1 May 2025 12:58:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104323; bh=NFyWTSKw0T3EpA2SL1looE3XHKTsMbgcOWu1kX9MRpo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tkg1EKCcdq2zVqPcguxq5WtXTpxQmGum+MTlMXfkXdGk2NnjxGCCB7Te5nIaGxuM5 HDXYhC0jP0rmoVMtJYwdIGb19jAgsisStAuIqOak5Hchb7Y3PPV+YC0jIcw0HcLZ36 7afSSdP7An0TV8vaNe36cHYCyNGBe1bpqTrI8ZS4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37740: jfs: add sanity check for agwidth in dbMount Date: Thu, 1 May 2025 14:56:46 +0200 Message-ID: <2025050133-CVE-2025-37740-bf8e@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=2354; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/1EA5Ym+ef61Dcb1xdjKraqxHaGpse32aDytggAcIuA=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnC+Y1trRwJB5Ir7Zea2c0rOf2fJ0izj8VjUlfV9FOnm R4/m6vUEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMRqmGYw+nzY6ayiVhMi7P6 5Yr+vfEPSoJiGRbsdeI99L/Hnev3moI9Udw9sh8lNisAAA== 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: jfs: add sanity check for agwidth in dbMount The width in dmapctl of the AG is zero, it trigger a divide error when calculating the control page level in dbAllocAG. To avoid this issue, add a check for agwidth in dbAllocAG. The Linux kernel CVE team has assigned CVE-2025-37740 to this issue. Affected and fixed versions =========================== Fixed in 6.1.135 with commit a260bf14cd347878f01f70739ba829442a474a16 Fixed in 6.6.88 with commit cc0bc4cb62ce5fa0c383e3bf0765d01f46bd49ac Fixed in 6.12.24 with commit ccd97c8a4f90810f228ee40d1055148fa146dd57 Fixed in 6.13.12 with commit c8c96a9e7660e5e5eea445978fe8f2e432d91c1f Fixed in 6.14.3 with commit e3f85edb03183fb06539e5b50dd2c4bb42b869f0 Fixed in 6.15-rc1 with commit ddf2846f22e8575d6b4b6a66f2100f168b8cd73d 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-37740 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/jfs/jfs_dmap.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/a260bf14cd347878f01f70739ba829442a474a16 https://git.kernel.org/stable/c/cc0bc4cb62ce5fa0c383e3bf0765d01f46bd49ac https://git.kernel.org/stable/c/ccd97c8a4f90810f228ee40d1055148fa146dd57 https://git.kernel.org/stable/c/c8c96a9e7660e5e5eea445978fe8f2e432d91c1f https://git.kernel.org/stable/c/e3f85edb03183fb06539e5b50dd2c4bb42b869f0 https://git.kernel.org/stable/c/ddf2846f22e8575d6b4b6a66f2100f168b8cd73d