CVE-2025-38337
jbd2: fix data-race and null-ptr-deref in jbd2_journal_dirty_metadata()
Mitigation
- No fix listed yet: follow the vendor advisory.
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
Vulnerability facts
- Affected
- Linux >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < 5c1a34ff5b0bfdfd2f9343aa9b08d25df618bac5; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < ec669e5bf409f16e464bfad75f0ba039a45de29a; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < 43d5e3bb5f1dcd91e30238ea0b59a5f77063f84e; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < 23361b479f2700c00960d3ae9cdc8ededa762d47; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < 2e7c64d7a92c031d016f11c8e8cb05131ab7b75a; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < f78b38af3540b4875147b7b884ee11a27b3dbf4c; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < a377996d714afb8d4d5f4906336f78510039da29; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < af98b0157adf6504fade79b3e6cb260c4ff68e37; Linux 4.3
- Fixed in
- Linux 5c1a34ff5b0bfdfd2f9343aa9b08d25df618bac5, Linux 43d5e3bb5f1dcd91e30238ea0b59a5f77063f84e, Linux 23361b479f2700c00960d3ae9cdc8ededa762d47, Linux 2e7c64d7a92c031d016f11c8e8cb05131ab7b75a
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- CWE
- CWE-476
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < 5c1a34ff5b0bfdfd2f9343aa9b08d25df618bac5; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < ec669e5bf409f16e464bfad75f0ba039a45de29a; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < 43d5e3bb5f1dcd91e30238ea0b59a5f77063f84e; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < 23361b479f2700c00960d3ae9cdc8ededa762d47; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < 2e7c64d7a92c031d016f11c8e8cb05131ab7b75a; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < f78b38af3540b4875147b7b884ee11a27b3dbf4c; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < a377996d714afb8d4d5f4906336f78510039da29; >= 6e06ae88edae77379bef7c0cb7d3c2dd88676867, < af98b0157adf6504fade79b3e6cb260c4ff68e37 | — | cvelist |
| Linux | 4.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/5c1a34ff5b0bfdfd2f9343aa9b08d25df618bac5
- https://git.kernel.org/stable/c/ec669e5bf409f16e464bfad75f0ba039a45de29a
- https://git.kernel.org/stable/c/43d5e3bb5f1dcd91e30238ea0b59a5f77063f84e
- https://git.kernel.org/stable/c/23361b479f2700c00960d3ae9cdc8ededa762d47
- https://git.kernel.org/stable/c/2e7c64d7a92c031d016f11c8e8cb05131ab7b75a
- https://git.kernel.org/stable/c/f78b38af3540b4875147b7b884ee11a27b3dbf4c
- https://git.kernel.org/stable/c/a377996d714afb8d4d5f4906336f78510039da29
- https://git.kernel.org/stable/c/af98b0157adf6504fade79b3e6cb260c4ff68e37
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.