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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 14, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-07-04T13:37:23.975Z
- **Modified:** 2026-09-02T13:16:48.920Z

## Who should check

- Anyone running Linux \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 0d50231d473f89024158dc62624930de45d13718; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< a9d41c925069c950e18160e12a7e10e0f58c56fb; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 4a8cb9908b51500a76f5156423bd295df53bff89; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 4a2de0f5b8d7f218bea5bd43d30b466e8b272b8d; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< a39f811a9f5edb6d97bede8e6fe730393d3c8537; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 233340626cf1b1887dca181f9f811db60c73f802; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 9806ae34d7d661c372247cd36f83bfa0523d60ed; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< a4685408ff6c3e2af366ad9a7274f45ff3f394ee
- Anyone running Linux 3.7

## Description

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.

## Affected and fixed versions

- Linux: \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 0d50231d473f89024158dc62624930de45d13718; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< a9d41c925069c950e18160e12a7e10e0f58c56fb; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 4a8cb9908b51500a76f5156423bd295df53bff89; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 4a2de0f5b8d7f218bea5bd43d30b466e8b272b8d; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< a39f811a9f5edb6d97bede8e6fe730393d3c8537; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 233340626cf1b1887dca181f9f811db60c73f802; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 9806ae34d7d661c372247cd36f83bfa0523d60ed; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< a4685408ff6c3e2af366ad9a7274f45ff3f394ee (cvelist)
- Linux: 3.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38203. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38203.md
Affected: Linux >= b40c2e665cd552eae5fbdbb878bc29a34357668e, < 0d50231d473f89024158dc62624930de45d13718; >= b40c2e665cd552eae5fbdbb878bc29a34357668e, < a9d41c925069c950e18160e12a7e10e0f58c56fb; >= b40c2e665cd552eae5fbdbb878bc29a34357668e, < 4a8cb9908b51500a76f5156423bd295df53bff89; >= b40c2e665cd552eae5fbdbb…
Fixed in: Linux 0d50231d473f89024158dc62624930de45d13718, Linux 4a8cb9908b51500a76f5156423bd295df53bff89, Linux 4a2de0f5b8d7f218bea5bd43d30b466e8b272b8d, Linux 233340626cf1b1887dca181f9f811db60c73f802, Linux 9806ae34d7d661c372247cd36f83bfa0523d60ed

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38203 being exploited?

There is no confirmed exploitation: CVE-2025-38203 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38203?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38203?

Linux \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 0d50231d473f89024158dc62624930de45d13718; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< a9d41c925069c950e18160e12a7e10e0f58c56fb; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 4a8cb9908b51500a76f5156423bd295df53bff89; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 4a2de0f5b8d7f218bea5bd43d30b466e8b272b8d; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< a39f811a9f5edb6d97bede8e6fe730393d3c8537; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 233340626cf1b1887dca181f9f811db60c73f802; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< 9806ae34d7d661c372247cd36f83bfa0523d60ed; \>= b40c2e665cd552eae5fbdbb878bc29a34357668e, \< a4685408ff6c3e2af366ad9a7274f45ff3f394ee; Linux 3.7.

### Is there a fix for CVE-2025-38203?

Yes. Fixed in Linux 0d50231d473f89024158dc62624930de45d13718, Linux 4a8cb9908b51500a76f5156423bd295df53bff89, Linux 4a2de0f5b8d7f218bea5bd43d30b466e8b272b8d, Linux 233340626cf1b1887dca181f9f811db60c73f802, Linux 9806ae34d7d661c372247cd36f83bfa0523d60ed. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38203?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0d50231d473f89024158dc62624930de45d13718>
- patch: <https://git.kernel.org/stable/c/a9d41c925069c950e18160e12a7e10e0f58c56fb>
- patch: <https://git.kernel.org/stable/c/4a8cb9908b51500a76f5156423bd295df53bff89>
- patch: <https://git.kernel.org/stable/c/9806ae34d7d661c372247cd36f83bfa0523d60ed>
- patch: <https://git.kernel.org/stable/c/a4685408ff6c3e2af366ad9a7274f45ff3f394ee>
- other: <https://git.kernel.org/stable/c/4a2de0f5b8d7f218bea5bd43d30b466e8b272b8d>
- other: <https://git.kernel.org/stable/c/a39f811a9f5edb6d97bede8e6fe730393d3c8537>
- other: <https://git.kernel.org/stable/c/233340626cf1b1887dca181f9f811db60c73f802>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38203>

HTML: <https://flawdb.com/CVE-2025-38203> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38203>
