# CVE-2025-38337: jbd2: fix data-race and null-ptr-deref in jbd2\_journal\_dirty\_metadata()

> 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-07-10T08:15:08.396Z
- **Modified:** 2026-11-05T21:18:27.730Z

## Who should check

- Anyone running Linux \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< 5c1a34ff5b0bfdfd2f9343aa9b08d25df618bac5; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< ec669e5bf409f16e464bfad75f0ba039a45de29a; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< 43d5e3bb5f1dcd91e30238ea0b59a5f77063f84e; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< 23361b479f2700c00960d3ae9cdc8ededa762d47; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< 2e7c64d7a92c031d016f11c8e8cb05131ab7b75a; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< f78b38af3540b4875147b7b884ee11a27b3dbf4c; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< a377996d714afb8d4d5f4906336f78510039da29; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< af98b0157adf6504fade79b3e6cb260c4ff68e37
- Anyone running Linux 4.3

## Description

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

jbd2: fix data-race and null-ptr-deref in jbd2\_journal\_dirty\_metadata()

Since handle-\>h\_transaction may be a NULL pointer, so we should change it
to call is\_handle\_aborted(handle) first before dereferencing it.

And the following data-race was reported in my fuzzer:

==================================================================
BUG: KCSAN: data-race in jbd2\_journal\_dirty\_metadata / jbd2\_journal\_dirty\_metadata

write to 0xffff888011024104 of 4 bytes by task 10881 on cpu 1:
 jbd2\_journal\_dirty\_metadata+0x2a5/0x770 fs/jbd2/transaction.c:1556
 \_\_ext4\_handle\_dirty\_metadata+0xe7/0x4b0 fs/ext4/ext4\_jbd2.c:358
 ext4\_do\_update\_inode fs/ext4/inode.c:5220 \[inline\]
 ext4\_mark\_iloc\_dirty+0x32c/0xd50 fs/ext4/inode.c:5869
 \_\_ext4\_mark\_inode\_dirty+0xe1/0x450 fs/ext4/inode.c:6074
 ext4\_dirty\_inode+0x98/0xc0 fs/ext4/inode.c:6103
....

read to 0xffff888011024104 of 4 bytes by task 10880 on cpu 0:
 jbd2\_journal\_dirty\_metadata+0xf2/0x770 fs/jbd2/transaction.c:1512
 \_\_ext4\_handle\_dirty\_metadata+0xe7/0x4b0 fs/ext4/ext4\_jbd2.c:358
 ext4\_do\_update\_inode fs/ext4/inode.c:5220 \[inline\]
 ext4\_mark\_iloc\_dirty+0x32c/0xd50 fs/ext4/inode.c:5869
 \_\_ext4\_mark\_inode\_dirty+0xe1/0x450 fs/ext4/inode.c:6074
 ext4\_dirty\_inode+0x98/0xc0 fs/ext4/inode.c:6103
....

value changed: 0x00000000 -\> 0x00000001
==================================================================

This issue is caused by missing data-race annotation for jh-\>b\_modified.
Therefore, the missing annotation needs to be added.

## Affected and fixed versions

- Linux: \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< 5c1a34ff5b0bfdfd2f9343aa9b08d25df618bac5; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< ec669e5bf409f16e464bfad75f0ba039a45de29a; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< 43d5e3bb5f1dcd91e30238ea0b59a5f77063f84e; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< 23361b479f2700c00960d3ae9cdc8ededa762d47; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< 2e7c64d7a92c031d016f11c8e8cb05131ab7b75a; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< f78b38af3540b4875147b7b884ee11a27b3dbf4c; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< a377996d714afb8d4d5f4906336f78510039da29; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< af98b0157adf6504fade79b3e6cb260c4ff68e37 (cvelist)
- Linux: 4.3 (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-38337. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38337.md
Affected: Linux >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < 5c1a34ff5b0bfdfd2f9343aa9b08d25df618bac5; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < ec669e5bf409f16e464bfad75f0ba039a45de29a; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < 43d5e3bb5f1dcd91e30238ea0b59a5f77063f84e; >= 6e06ae88edae77379bef7c0…
Fixed in: Linux 5c1a34ff5b0bfdfd2f9343aa9b08d25df618bac5, Linux 43d5e3bb5f1dcd91e30238ea0b59a5f77063f84e, Linux 23361b479f2700c00960d3ae9cdc8ededa762d47, Linux 2e7c64d7a92c031d016f11c8e8cb05131ab7b75a

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-38337 being exploited?

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

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

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

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

Linux \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< 5c1a34ff5b0bfdfd2f9343aa9b08d25df618bac5; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< ec669e5bf409f16e464bfad75f0ba039a45de29a; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< 43d5e3bb5f1dcd91e30238ea0b59a5f77063f84e; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< 23361b479f2700c00960d3ae9cdc8ededa762d47; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< 2e7c64d7a92c031d016f11c8e8cb05131ab7b75a; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< f78b38af3540b4875147b7b884ee11a27b3dbf4c; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< a377996d714afb8d4d5f4906336f78510039da29; \>= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, \< af98b0157adf6504fade79b3e6cb260c4ff68e37; Linux 4.3.

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

Yes. Fixed in Linux 5c1a34ff5b0bfdfd2f9343aa9b08d25df618bac5, Linux 43d5e3bb5f1dcd91e30238ea0b59a5f77063f84e, Linux 23361b479f2700c00960d3ae9cdc8ededa762d47, Linux 2e7c64d7a92c031d016f11c8e8cb05131ab7b75a. No fix listed yet: follow the vendor advisory.

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

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/5c1a34ff5b0bfdfd2f9343aa9b08d25df618bac5>
- patch: <https://git.kernel.org/stable/c/ec669e5bf409f16e464bfad75f0ba039a45de29a>
- patch: <https://git.kernel.org/stable/c/43d5e3bb5f1dcd91e30238ea0b59a5f77063f84e>
- patch: <https://git.kernel.org/stable/c/23361b479f2700c00960d3ae9cdc8ededa762d47>
- patch: <https://git.kernel.org/stable/c/2e7c64d7a92c031d016f11c8e8cb05131ab7b75a>
- patch: <https://git.kernel.org/stable/c/f78b38af3540b4875147b7b884ee11a27b3dbf4c>
- patch: <https://git.kernel.org/stable/c/a377996d714afb8d4d5f4906336f78510039da29>
- patch: <https://git.kernel.org/stable/c/af98b0157adf6504fade79b3e6cb260c4ff68e37>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- 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-38337>

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