CVE-2025-38034: btrfs: correct the order of prelim_ref arguments in btrfs__prelim_ref
Noroxi assessment
Priority: Monitor (action score 22/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 0.22% (FIRST EPSS).
- Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: Linux Linux 0528bba48dce7820d2da72e1a114e1c4552367eb, 137bfa08c6441f324d00692d1e9d22cfd773329b, 5755b6731655e248c4f1d52a2e1b18795b4a2a3a.
Low priority for now. Upgrade to Linux Linux 0528bba48dce7820d2da72e1a114e1c4552367eb, 137bfa08c6441f324d00692d1e9d22cfd773329b, 5755b6731655e248c4f1d52a2e1b18795b4a2a3a or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
In the Linux kernel, the following vulnerability has been resolved: btrfs: correct the order of prelim_ref arguments in btrfs__prelim_ref btrfs_prelim_ref() calls the old and new reference variables in the incorrect order. This causes a NULL pointer dereference because oldref is passed as NULL to trace_btrfs_prelim_ref_insert(). Note, trace_btrfs_prelim_ref_insert() is being called with newref as oldref (and oldref as NULL) on purpose in order to print out the values of newref. To reproduce: echo 1 > /sys/kernel/debug/tracing/events/btrfs/btrfs_prelim_ref_insert/enable Perform some writeback operations. Backtrace: BUG: kernel NULL pointer dereference, address: 0000000000000018 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 115949067 P4D 115949067 PUD 11594a067 PMD 0 Oops: Oops: 0000 [#1] SMP NOPTI CPU: 1 UID: 0 PID: 1188 Comm: fsstress Not tainted 6.15.0-rc2-tester+ #47 PREEMPT(voluntary) 7ca2cef72d5e9c600f0c7718adb6462de8149622 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.16.3-2-gc13ff2cd-prebuilt.qemu.org 04/01/2014 RIP: 0010:trace_event_raw_event_btrfs__prelim_ref+0x72/0x130 Code: e8 43 81 9f ff 48 85 c0 74 78 4d 85 e4 0f 84 8f 00 00 00 49 8b 94 24 c0 06 00 00 48 8b 0a 48 89 48 08 48 8b 52 08 48 89 50 10 <49> 8b 55 18 48 89 50 18 49 8b 55 20 48 89 50 20 41 0f b6 55 28 88 RSP: 0018:ffffce44820077a0 EFLAGS: 00010286 RAX: ffff8c6b403f9014 RBX: ffff8c6b55825730 RCX: 304994edf9cf506b RDX: d8b11eb7f0fdb699 RSI: ffff8c6b403f9010 RDI: ffff8c6b403f9010 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000010 R10: 00000000ffffffff R11: 0000000000000000 R12: ffff8c6b4e8fb000 R13: 0000000000000000 R14: ffffce44820077a8 R15: ffff8c6b4abd1540 FS: 00007f4dc6813740(0000) GS:ffff8c6c1d378000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000018 CR3: 000000010eb42000 CR4: 0000000000750ef0 PKRU: 55555554 Call Trace: <TASK> prelim_ref_insert+0x1c1/0x270 find_parent_nodes+0x12a6/0x1ee0 ? __entry_text_end+0x101f06/0x101f09 ? srso_alias_return_thunk+0x5/0xfbef5 ? srso_alias_return_thunk+0x5/0xfbef5 ? srso_alias_return_thunk+0x5/0xfbef5 ? srso_alias_return_thunk+0x5/0xfbef5 btrfs_is_data_extent_shared+0x167/0x640 ? fiemap_process_hole+0xd0/0x2c0 extent_fiemap+0xa5c/0xbc0 ? __entry_text_end+0x101f05/0x101f09 btrfs_fiemap+0x7e/0xd0 do_vfs_ioctl+0x425/0x9d0 __x64_sys_ioctl+0x75/0xc0
- Published
- Jun 18, 2025
- Updated
- Jun 17, 2026
- EPSS
- 0.2% · 13th percentile
- CWE
- CWE-476
Report tools
Action score
22
Low priority for now.
- CVSS
- 22 / 40 · 5.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.2%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Versions reported by the vendor
Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.
Linux Linux
- 4.14affected
- 00142756e1f8015d2f8ce96532d156689db7e448 and later · before 5755b6731655e248c4f1d52a2e1b18795b4a2a3aaffected · git
- 00142756e1f8015d2f8ce96532d156689db7e448 and later · before a641154cedf9d69730f8af5d0a901fe86e6486bdaffected · git
- 00142756e1f8015d2f8ce96532d156689db7e448 and later · before a876703894a6dd6e8c04b0635d86e9f7a7c81b79affected · git
- 00142756e1f8015d2f8ce96532d156689db7e448 and later · before 0528bba48dce7820d2da72e1a114e1c4552367ebaffected · git
- 00142756e1f8015d2f8ce96532d156689db7e448 and later · before 7a97f961a568a8f72472dc804af02a0f73152c5faffected · git
- 00142756e1f8015d2f8ce96532d156689db7e448 and later · before 7f7c8c03feba5f2454792fab3bb8bd45bd6883f9affected · git
- 00142756e1f8015d2f8ce96532d156689db7e448 and later · before 137bfa08c6441f324d00692d1e9d22cfd773329baffected · git
- 00142756e1f8015d2f8ce96532d156689db7e448 and later · before bc7e0975093567f51be8e1bdf4aa5900a3cf0b1eaffected · git
- before 4.14not affected · semver
Affected versions · NVD (9)
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- debian debian linux11.0
- linux linux kernel5.5 and later · before 5.10.238
- linux linux kernel5.11 and later · before 5.15.185
- linux linux kernel5.16 and later · before 6.1.141
- linux linux kernelbefore 5.4.294
- linux linux kernel6.7 and later · before 6.12.31
- linux linux kernel6.13 and later · before 6.14.9
- linux linux kernel6.2 and later · before 6.6.93
- linux linux kernel6.15
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | linux | before 6.1.147-1 | 6.1.147-1 |
| Debian:13 | linux | before 6.12.32-1 | 6.12.32-1 |
| openSUSE:Leap 15.6 | kernel-rt | before 6.4.0-150600.10.49.1 | 6.4.0-150600.10.49.1 |
| openSUSE:Leap 15.6 | kernel-rt_debug | before 6.4.0-150600.10.49.1 | 6.4.0-150600.10.49.1 |
| openSUSE:Leap 15.6 | kernel-source-rt | before 6.4.0-150600.10.49.1 | 6.4.0-150600.10.49.1 |
| openSUSE:Leap 15.6 | kernel-syms-rt | before 6.4.0-150600.10.49.1 | 6.4.0-150600.10.49.1 |
| openSUSE:Leap 16.0 | dtb-aarch64 | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-64kb | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-default | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-default-base | before 6.12.0-160000.6.1.160000.2.4 | 6.12.0-160000.6.1.160000.2.4 |
| openSUSE:Leap 16.0 | kernel-docs | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-kvmsmall | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-obs-build | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-obs-qa | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-rt | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-source | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-syms | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| openSUSE:Leap 16.0 | kernel-zfcpdump | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| SUSE:Linux Enterprise Live Patching 15 SP6 | kernel-livepatch-SLE15-SP6-RT_Update_14 | before 1-150600.1.5.1 | 1-150600.1.5.1 |
| SUSE:Linux Enterprise Live Patching 15 SP7 | kernel-livepatch-SLE15-SP7-RT_Update_3 | before 1-150700.1.5.1 | 1-150700.1.5.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-docs | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-kvmsmall | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-obs-qa | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
| SUSE:Linux Enterprise Server 16.0 | kernel-syms | before 6.12.0-160000.6.1 | 6.12.0-160000.6.1 |
+20
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV90Now
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe…KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
Published before and after this one in the same product
- ← EarlierCVE-2025-38032Jun 18, 2025 · mr: consolidate the ipmr_can_free_table() checks.22Monitor
- ← EarlierCVE-2025-38033Jun 18, 2025 · x86/Kconfig: make CFI_AUTO_DEFAULT depend on !RUST or Rust >= 1.8822Monitor
- Later →CVE-2025-38036Jun 18, 2025 · drm/xe/vf: Perform early GT MMIO initialization to read GMDID22Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Linux Linux | 0528bba48dce7820d2da72e1a114e1c4552367eb | Vendor (CNA) |
| Linux Linux | 137bfa08c6441f324d00692d1e9d22cfd773329b | Vendor (CNA) |
| Linux Linux | 5755b6731655e248c4f1d52a2e1b18795b4a2a3a | Vendor (CNA) |
| Linux Linux | 7a97f961a568a8f72472dc804af02a0f73152c5f | Vendor (CNA) |
| Linux Linux | 7f7c8c03feba5f2454792fab3bb8bd45bd6883f9 | Vendor (CNA) |
| Linux Linux | a641154cedf9d69730f8af5d0a901fe86e6486bd | Vendor (CNA) |
| Linux Linux | a876703894a6dd6e8c04b0635d86e9f7a7c81b79 | Vendor (CNA) |
| Linux Linux | bc7e0975093567f51be8e1bdf4aa5900a3cf0b1e | Vendor (CNA) |
| debian:linux | 6.1.147-1 · Debian:12 | Package registry (OSV) |
| opensuse:dtb-aarch64 | 6.12.0-160000.6.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-64kb | 6.12.0-160000.6.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-default | 6.12.0-160000.6.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-default-base | 6.12.0-160000.6.1.160000.2.4 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-docs | 6.12.0-160000.6.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-kvmsmall | 6.12.0-160000.6.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-obs-build | 6.12.0-160000.6.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-obs-qa | 6.12.0-160000.6.1 · openSUSE:Leap 16.0 | Package registry (OSV) |
| opensuse:kernel-rt | 6.4.0-150600.10.49.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:kernel-rt_debug | 6.4.0-150600.10.49.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:kernel-source-rt | 6.4.0-150600.10.49.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| opensuse:kernel-syms-rt | 6.4.0-150600.10.49.1 · openSUSE:Leap 15.6 | Package registry (OSV) |
| suse:kernel-64kb | 6.12.0-160000.6.1 · SUSE:Linux Micro 6.2 | Package registry (OSV) |
| suse:kernel-default | 6.4.0-32.1 · SUSE:Linux Micro 6.0 | Package registry (OSV) |
| suse:kernel-default-base | 6.4.0-32.1.21.10 · SUSE:Linux Micro 6.0 | Package registry (OSV) |
| suse:kernel-docs | 6.12.0-160000.6.1 · SUSE:Linux Enterprise Server 16.0 | Package registry (OSV) |
| suse:kernel-kvmsmall | 6.4.0-32.1 · SUSE:Linux Micro 6.0 | Package registry (OSV) |
| suse:kernel-livepatch-SLE15-SP6-RT_Update_14 | 1-150600.1.5.1 · SUSE:Linux Enterprise Live Patching 15 SP6 | Package registry (OSV) |
| suse:kernel-livepatch-SLE15-SP7-RT_Update_3 | 1-150700.1.5.1 · SUSE:Linux Enterprise Live Patching 15 SP7 | Package registry (OSV) |
| suse:kernel-rt | 6.4.0-150600.10.49.1 · SUSE:Real Time Module 15 SP6 | Package registry (OSV) |
| suse:kernel-rt | 6.4.0-150700.7.13.1 · SUSE:Real Time Module 15 SP7 | Package registry (OSV) |
+6
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Someone with local access to the system can trigger it.
- A low-privileged account is enough.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-476 · NULL Pointer DereferenceCVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (9 more)Show less
- git.kernel.org/stable/c/137bfa08c6441f324d00692d1e9d22cfd773329b
- git.kernel.org/stable/c/5755b6731655e248c4f1d52a2e1b18795b4a2a3a
- git.kernel.org/stable/c/7a97f961a568a8f72472dc804af02a0f73152c5f
- git.kernel.org/stable/c/7f7c8c03feba5f2454792fab3bb8bd45bd6883f9
- git.kernel.org/stable/c/a641154cedf9d69730f8af5d0a901fe86e6486bd
- git.kernel.org/stable/c/a876703894a6dd6e8c04b0635d86e9f7a7c81b79
- git.kernel.org/stable/c/bc7e0975093567f51be8e1bdf4aa5900a3cf0b1e
- lists.debian.org/debian-lts-announce/2025/10/msg00007.html
- lists.debian.org/debian-lts-announce/2025/10/msg00008.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.