# CVE-2024-58095: jfs: add check read-only before txBeginAnon() call

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2025-04-16T14:11:43.934Z
- Modified: 2026-09-02T13:16:48.537Z
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 97ac32b08442f5327867ad7d70d6ac6ebaa2a41a; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 93f11ab37f1c657f4265228ba3c2ff66bbefa24d; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 469bd67fc338e77d7585e4f20d4212afd44fefdc; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 47a99881ecc50ff2bf4e7a6c3058fe1704073df9; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 939dba7a6404d4ac88e2539cb21ac659f5757fd9; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 15469c408af2d7a52fb186a92f2f091b0f13b1fb; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0176e69743ecc02961f2ae1ea42439cd2bf9ed58; 2.6.12 (not affected: before 2.6.12; from 5.10.269 up to 5.10.*; from 5.15.220 up to 5.15.*; from 6.1.187 up to 6.1.*; from 6.6.156 up to 6.6.*; from 6.12.108 up to 6.12.*; from 6.14.2 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 2.6.13 before 6.14.2; 2.6.12

## References

- <https://git.kernel.org/stable/c/97ac32b08442f5327867ad7d70d6ac6ebaa2a41a>
- <https://git.kernel.org/stable/c/93f11ab37f1c657f4265228ba3c2ff66bbefa24d>
- <https://git.kernel.org/stable/c/469bd67fc338e77d7585e4f20d4212afd44fefdc>
- <https://git.kernel.org/stable/c/47a99881ecc50ff2bf4e7a6c3058fe1704073df9>
- <https://git.kernel.org/stable/c/939dba7a6404d4ac88e2539cb21ac659f5757fd9>
- <https://git.kernel.org/stable/c/15469c408af2d7a52fb186a92f2f091b0f13b1fb> (patch)
- <https://git.kernel.org/stable/c/0176e69743ecc02961f2ae1ea42439cd2bf9ed58> (patch)

## Sources

- CVE List: [CVE-2024-58095](https://www.cve.org/CVERecord?id=CVE-2024-58095), CVE Terms of Use, modified 2026-09-02
- NVD: [CVE-2024-58095](https://nvd.nist.gov/vuln/detail/CVE-2024-58095), Public domain, modified 2026-09-02

---

Page: https://cve.day/CVE-2024-58095 · Whole record: https://cve.day/CVE-2024-58095.json · Rebuilt by cve.day 2026-11-25T22:58:52.539Z
