| From bippy-1.2.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-58095: jfs: add check read-only before txBeginAnon() call |
| |
| 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 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 |