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 4A17B2036E9 for ; Wed, 16 Apr 2025 14:13:59 +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=1744812839; cv=none; b=cgD4qod59eBVZXEN4brWUvx4vuDmusrcaqfH4nDbDVn5x+il2Rvew+jzcU9xaJoaHUV+mUBO0E4DUmQ3jCG/sudvVl2bhdiCekGGntozcXI4WaHfbJJzXXuzy71NPQbP6zDnggjQTkyul7kIRCqVkoVyqHxJUEEWK3B3vP8JhEY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812839; c=relaxed/simple; bh=S0CDeBmZCyi6F34MzBrbBHcNBRIMeRQKq954IqXHRsg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sskx0CEhM5osS8eQg5pGVK7Ibd5aTbGZ1RmbiAghQUXDRa+N8fMbBrdTT00KDz/beA4GRuK8M7DwpAQleii0HzvdA6XE3bbsPYiHTmMIZclAcoFjRq4kswD1Ax5qn9R6KAg8HYQJyM02fD8TrAXqix3KRDy+M1/6wF4vZmd0Tfo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pNvxu/7Q; 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="pNvxu/7Q" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B1961C4CEEC; Wed, 16 Apr 2025 14:13:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812839; bh=S0CDeBmZCyi6F34MzBrbBHcNBRIMeRQKq954IqXHRsg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pNvxu/7QtgJ18gutr7ckyzDXhdefbadlTiX2VTydaMdA6Ji/9O1J+lNz4R1p2+WyP A4La6H7VHYZBSUVAOzZy3k6F0YNp8hbasBJCHXwt+uZ846pXH98egb0bOJSks6ojLF rKOgzY1sM2QXCJvJ7Ci+LvUSg7uFi9EQIAIOpOT0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-58095: jfs: add check read-only before txBeginAnon() call Date: Wed, 16 Apr 2025 16:11:52 +0200 Message-ID: <2025041653-CVE-2024-58095-9a41@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=2286; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=S0CDeBmZCyi6F34MzBrbBHcNBRIMeRQKq954IqXHRsg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d62M6ktLvhf1KCPcKj57S8i+9gns9e7HZzxnnfmWq a9f3Op5RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEMZphwfwefb7XanYBToWu KlLe95ad9OyLY1jQu3R/2yO3ReI1WwStTi/8yLRpod03AA== 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: jfs: add check read-only before txBeginAnon() call Added a read-only check before calling `txBeginAnon` in `extAlloc` and `extRecord`. This prevents modification attempts on a read-only mounted filesystem, avoiding potential errors or crashes. Call trace: txBeginAnon+0xac/0x154 extAlloc+0xe8/0xdec fs/jfs/jfs_extent.c:78 jfs_get_block+0x340/0xb98 fs/jfs/inode.c:248 __block_write_begin_int+0x580/0x166c fs/buffer.c:2128 __block_write_begin fs/buffer.c:2177 [inline] block_write_begin+0x98/0x11c fs/buffer.c:2236 jfs_write_begin+0x44/0x88 fs/jfs/inode.c:299 The Linux kernel CVE team has assigned CVE-2024-58095 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.14.2 with commit 15469c408af2d7a52fb186a92f2f091b0f13b1fb Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.15-rc1 with commit 0176e69743ecc02961f2ae1ea42439cd2bf9ed58 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-2024-58095 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_extent.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/15469c408af2d7a52fb186a92f2f091b0f13b1fb https://git.kernel.org/stable/c/0176e69743ecc02961f2ae1ea42439cd2bf9ed58