# CVE-2025-38203: jfs: Fix null-ptr-deref in jfs\_ioc\_trim

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-04 · Modified: 2026-09-02
- Aliases: UBUNTU-CVE-2025-38203, DEBIAN-CVE-2025-38203, CGA-25fh-w9p8-5h36, CGA-25xf-v7pm-47gg, CGA-29g2-4r79-pc8j, CGA-2ch6-8hm5-2h69, CGA-2fw9-h2m8-3hv9, CGA-2v6h-2795-h3hh, CGA-2vjf-84j5-gh3j, CGA-2w89-6r63-q55p, CGA-3gm6-gwh5-rv9c, CGA-3j54-g2fw-p24q, CGA-43fc-x62w-vv2c, CGA-4x55-8qq2-4xp8, CGA-4xc2-6fc2-gcc5, CGA-52p9-38jw-rmwq, CGA-53j2-wphw-53rw, CGA-55mf-x7h8-qc3w, CGA-55pj-3vqg-m8qh, CGA-6c9r-mf88-55p6, CGA-6fhm-9p86-q839, CGA-6hg8-8j79-95w9, CGA-6mjr-qqc7-6mg2, CGA-6p6p-g6jv-mr55, CGA-6qvw-9q46-q7xr, CGA-6rx8-4p4p-w864, CGA-6vhm-57f9-4hm7, CGA-6vj2-pmfj-3839, CGA-6w9p-rg6q-p7pv, CGA-74p7-669q-4755, CGA-75w6-4j59-jgqp, CGA-7jx6-7cpm-j4x6, CGA-828f-6pmw-587x, CGA-897q-4x8c-3963, CGA-8m4m-mhcf-w884, CGA-8ppg-2p2c-g6qc, CGA-8wfj-mp57-m2rh, CGA-9727-653j-x9pr, CGA-97g4-2jxm-5jc5, CGA-9fc9-983v-2wh5, CGA-9ghm-qxpp-8p35, CGA-9phx-rpr9-45wq, CGA-9vqx-c23v-c4qr, CGA-9wfr-w5mv-624r, CGA-c62f-56gq-wvfm, CGA-cqx5-jcm3-5x6f, CGA-cxcj-xw55-j9q4, CGA-cxwf-q85p-9g9p, CGA-f549-74pq-qw4p, CGA-f9gv-4hm8-pgrc, CGA-fg2m-qvjc-vq42, CGA-fp52-5p95-fv9c, CGA-g6hv-2x3x-wgxh, CGA-gcc7-4q6x-q2vx, CGA-h38h-p8f7-94wf, CGA-h3cv-jqq5-84h9, CGA-hmxj-x88v-mvvm, CGA-hq4v-7488-c6xj, CGA-j7p2-fx88-67v7, CGA-jhrr-xqgc-59cg, CGA-jmrx-4f54-h5fx, CGA-jmw3-x38w-fj6p, CGA-jpp2-65j7-8qwc, CGA-jxfg-52gm-9qhp, CGA-mc6r-wjjj-prq8, CGA-mg28-gpqc-hprh, CGA-mxwp-h234-943q, CGA-p2f6-54rv-jm9x, CGA-p47v-vpr3-q447, CGA-p9x8-9hf4-g6xq, CGA-prp3-fqxg-5w72, CGA-pvj7-6jjg-q9qj, CGA-px6j-2f9w-2q94, CGA-q2c8-rc3c-hwfh, CGA-q2v2-x3g7-8gwj, CGA-q3p2-g9pv-8892, CGA-q597-96cx-x8vx, CGA-q6f3-f42v-6mwc, CGA-q93c-79r8-v23x, CGA-qr8r-43jj-fw4q, CGA-qw8p-9wj5-5h9c, CGA-r2wf-jpgw-9fv8, CGA-rgr3-gq8q-9hmw, CGA-rh9v-9g5w-mf3f, CGA-rhgw-mf75-5hr2, CGA-rm47-q8v6-pp3m, CGA-rq3g-h8v4-h32v, CGA-vhmr-g9q4-p83g, CGA-vj7j-x2pr-6jm8, CGA-vjrm-vv9w-q52c, CGA-w4mh-9wjv-j362, CGA-w5fh-7983-3g7f, CGA-w7fq-xq8f-8h5h, CGA-w8f8-5vr5-r83r, CGA-wfg7-2j4h-pv6p, CGA-ww96-wh2r-9j7h, CGA-wwp5-m474-x34x, CGA-wxv9-8mg2-wff5, CGA-xmwp-h62v-75pm
- Record: https://cvemate.com/vulnerability/CVE-2025-38203 · JSON: https://cvemate.com/vulnerability/CVE-2025-38203/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

jfs: Fix null-ptr-deref in jfs_ioc_trim

[ Syzkaller Report ]

Oops: general protection fault, probably for non-canonical address
0xdffffc0000000087: 0000 [#1
KASAN: null-ptr-deref in range [0x0000000000000438-0x000000000000043f]
CPU: 2 UID: 0 PID: 10614 Comm: syz-executor.0 Not tainted
6.13.0-rc6-gfbfd64d25c7a-dirty #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
Sched_ext: serialise (enabled+all), task: runnable_at=-30ms
RIP: 0010:jfs_ioc_trim+0x34b/0x8f0
Code: e7 e8 59 a4 87 fe 4d 8b 24 24 4d 8d bc 24 38 04 00 00 48 8d 93
90 82 fe ff 4c 89 ff 31 f6
RSP: 0018:ffffc900055f7cd0 EFLAGS: 00010206
RAX: 0000000000000087 RBX: 00005866a9e67ff8 RCX: 000000000000000a
RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000001
RBP: dffffc0000000000 R08: ffff88807c180003 R09: 1ffff1100f830000
R10: dffffc0000000000 R11: ffffed100f830001 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000438
FS:  00007fe520225640(0000) GS:ffff8880b7e80000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005593c91b2c88 CR3: 000000014927c000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
? __die_body+0x61/0xb0
? die_addr+0xb1/0xe0
? exc_general_protection+0x333/0x510
? asm_exc_general_protection+0x26/0x30
? jfs_ioc_trim+0x34b/0x8f0
jfs_ioctl+0x3c8/0x4f0
? __pfx_jfs_ioctl+0x10/0x10
? __pfx_jfs_ioctl+0x10/0x10
__se_sys_ioctl+0x269/0x350
? __pfx___se_sys_ioctl+0x10/0x10
? do_syscall_64+0xfb/0x210
do_syscall_64+0xee/0x210
? syscall_exit_to_user_mode+0x1e0/0x330
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe51f4903ad
Code: c3 e8 a7 2b 00 00 0f 1f 80 00 00 00 00 f3 0f 1e fa 48 89 f8 48
89 f7 48 89 d6 48 89 ca 4d
RSP: 002b:00007fe5202250c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fe51f5cbf80 RCX: 00007fe51f4903ad
RDX: 0000000020000680 RSI: 00000000c0185879 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe520225640
R13: 000000000000000e R14: 00007fe51f44fca0 R15: 00007fe52021d000
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:jfs_ioc_trim+0x34b/0x8f0
Code: e7 e8 59 a4 87 fe 4d 8b 24 24 4d 8d bc 24 38 04 00 00 48 8d 93
90 82 fe ff 4c 89 ff 31 f6
RSP: 0018:ffffc900055f7cd0 EFLAGS: 00010206
RAX: 0000000000000087 RBX: 00005866a9e67ff8 RCX: 000000000000000a
RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000001
RBP: dffffc0000000000 R08: ffff88807c180003 R09: 1ffff1100f830000
R10: dffffc0000000000 R11: ffffed100f830001 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000438
FS:  00007fe520225640(0000) GS:ffff8880b7e80000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005593c91b2c88 CR3: 000000014927c000 CR4: 00000000000006f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Kernel panic - not syncing: Fatal exception

[ Analysis ]

We believe that we have found a concurrency bug in the `fs/jfs` module
that results in a null pointer dereference. There is a closely related
issue which has been fixed:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d6c1b3599b2feb5c7291f5ac3a36e5fa7cedb234

... but, unfortunately, the accepted patch appears to still be
susceptible to a null pointer dereference under some interleavings.

To trigger the bug, we think that `JFS_SBI(ipbmap->i_sb)->bmap` is set
to NULL in `dbFreeBits` and then dereferenced in `jfs_ioc_trim`. This
bug manifests quite rarely under normal circumstances, but is
triggereable from a syz-program.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.203%, percentile 10.825%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 159)

- chainguard linux-aws-6.12 (Chainguard): \< 6.12.77-r1 \| \< 6.12.80-r0 \| \< 6.12.76-r0 \| \< 6.12.68-r1 \| \< 6.12.74-r1 \| \< 6.12.72-r0 \| \< 6.12.77-r2 \| \< 6.12.69-r0 \| \< 6.12.72-r1 \| \< 6.12.77-r0 \| \< 6.12.74-r0 \| \< 6.12.65-r0 \| \< 6.12.66-r0 \| \< 6.12.67-r0 \| \< 6.12.70-r0 \| \< 6.12.71-r0 \| \< 6.12.65-r2 \| \< 6.12.65-r1 \| \< 6.12.68-r0 \| \< 6.12.78-r0
- chainguard linux-azure-6.12 (Chainguard): \< 6.12.74-r1 \| \< 6.12.69-r0 \| \< 6.12.77-r2 \| \< 6.12.72-r0 \| \< 6.12.65-r4 \| \< 6.12.70-r0 \| \< 6.12.71-r0 \| \< 6.12.67-r0 \| \< 6.12.74-r0 \| \< 6.12.77-r0 \| \< 6.12.65-r3 \| \< 6.12.66-r0 \| \< 6.12.68-r0 \| \< 6.12.77-r1 \| \< 6.12.65-r1 \| \< 6.12.65-r2 \| \< 6.12.76-r0 \| \< 6.12.78-r0 \| \< 6.12.80-r0
- chainguard linux-gcp-6.12 (Chainguard): \< 6.12.72-r0 \| \< 6.12.78-r0 \| \< 6.12.67-r0 \| \< 6.12.68-r0 \| \< 6.12.70-r0 \| \< 6.12.74-r0 \| \< 6.12.77-r1 \| \< 6.12.65-r2 \| \< 6.12.77-r2 \| \< 6.12.66-r0 \| \< 6.12.71-r0 \| \< 6.12.69-r0 \| \< 6.12.74-r1 \| \< 6.12.76-r0 \| \< 6.12.77-r0 \| \< 6.12.65-r1 \| \< 6.12.68-r1 \| \< 6.12.80-r0
- chainguard linux-qemu-6.12 (Chainguard): \< 6.12.72-r0 \| \< 6.12.77-r1 \| \< 6.12.76-r0 \| \< 6.12.68-r0 \| \< 6.12.74-r1 \| \< 6.12.77-r0 \| \< 6.12.66-r0 \| \< 6.12.74-r0 \| \< 6.12.70-r0 \| \< 6.12.78-r0 \| \< 6.12.77-r2 \| \< 6.12.67-r0 \| \< 6.12.69-r0 \| \< 6.12.71-r0 \| \< 6.12.65-r1 \| \< 6.12.80-r0 \| \< 6.12.65-r2
- chainguard linux-vmware-6.12 (Chainguard): \< 6.12.68-r0 \| \< 6.12.78-r0 \| \< 6.12.67-r0 \| \< 6.12.77-r0 \| \< 6.12.69-r0 \| \< 6.12.77-r1 \| \< 6.12.71-r0 \| \< 6.12.74-r0 \| \< 6.12.76-r0 \| \< 6.12.77-r2 \| \< 6.12.68-r1 \| \< 6.12.74-r1 \| \< 6.12.66-r0 \| \< 6.12.80-r0 \| \< 6.12.70-r0 \| \< 6.12.65-r1 \| \< 6.12.72-r0 \| \< 6.12.65-r2
- debian linux (Debian): \< 6.1.187-1 \| \< 6.12.111-1 \| \< 6.16.3-1
- debian linux-6.12 (Debian): \< 6.12.111-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-156.166 \| \< 6.8.0-149.149
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1092.99 \| \< 6.8.0-1069.74
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1092.99~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): \< 6.14.0-1015.15~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 39)

- <https://git.kernel.org/stable/c/0d50231d473f89024158dc62624930de45d13718>
- <https://git.kernel.org/stable/c/a9d41c925069c950e18160e12a7e10e0f58c56fb>
- <https://git.kernel.org/stable/c/4a8cb9908b51500a76f5156423bd295df53bff89>
- <https://git.kernel.org/stable/c/4a2de0f5b8d7f218bea5bd43d30b466e8b272b8d>
- <https://git.kernel.org/stable/c/a39f811a9f5edb6d97bede8e6fe730393d3c8537>
- <https://git.kernel.org/stable/c/233340626cf1b1887dca181f9f811db60c73f802>
- <https://git.kernel.org/stable/c/9806ae34d7d661c372247cd36f83bfa0523d60ed>
- <https://git.kernel.org/stable/c/a4685408ff6c3e2af366ad9a7274f45ff3f394ee>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- <https://ubuntu.com/security/CVE-2025-38203>
- <https://www.cve.org/CVERecord?id=CVE-2025-38203>
- <https://git.kernel.org/linus/a4685408ff6c3e2af366ad9a7274f45ff3f394ee>
- <https://ubuntu.com/security/notices/USN-7774-1>
- <https://ubuntu.com/security/notices/USN-7774-2>
- <https://ubuntu.com/security/notices/USN-7774-3>
- <https://ubuntu.com/security/notices/USN-7775-1>
- <https://ubuntu.com/security/notices/USN-7776-1>
- <https://ubuntu.com/security/notices/USN-7775-2>
- <https://ubuntu.com/security/notices/USN-7775-3>
- <https://ubuntu.com/security/notices/USN-7774-4>

---

Data as of 2026-12-05T03:20:46.661Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
