Skip to content
Noroxi
NVD / CVE Program· CNA Linux

CVE-2025-38034: btrfs: correct the order of prelim_ref arguments in btrfs__prelim_ref

MediumCVSS 5.5 · v3.1—No exploit Fix available

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

Report tools

JSON

Action score

22

Monitor

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.

Follow CVE-2025-38034

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi 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 help

Affected 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.

VendorProduct
linuxlinux kernel
debiandebian 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

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12linuxbefore 6.1.147-16.1.147-1
Debian:13linuxbefore 6.12.32-16.12.32-1
openSUSE:Leap 15.6kernel-rtbefore 6.4.0-150600.10.49.16.4.0-150600.10.49.1
openSUSE:Leap 15.6kernel-rt_debugbefore 6.4.0-150600.10.49.16.4.0-150600.10.49.1
openSUSE:Leap 15.6kernel-source-rtbefore 6.4.0-150600.10.49.16.4.0-150600.10.49.1
openSUSE:Leap 15.6kernel-syms-rtbefore 6.4.0-150600.10.49.16.4.0-150600.10.49.1
openSUSE:Leap 16.0dtb-aarch64before 6.12.0-160000.6.16.12.0-160000.6.1
openSUSE:Leap 16.0kernel-64kbbefore 6.12.0-160000.6.16.12.0-160000.6.1
openSUSE:Leap 16.0kernel-defaultbefore 6.12.0-160000.6.16.12.0-160000.6.1
openSUSE:Leap 16.0kernel-default-basebefore 6.12.0-160000.6.1.160000.2.46.12.0-160000.6.1.160000.2.4
openSUSE:Leap 16.0kernel-docsbefore 6.12.0-160000.6.16.12.0-160000.6.1
openSUSE:Leap 16.0kernel-kvmsmallbefore 6.12.0-160000.6.16.12.0-160000.6.1
openSUSE:Leap 16.0kernel-obs-buildbefore 6.12.0-160000.6.16.12.0-160000.6.1
openSUSE:Leap 16.0kernel-obs-qabefore 6.12.0-160000.6.16.12.0-160000.6.1
openSUSE:Leap 16.0kernel-rtbefore 6.12.0-160000.6.16.12.0-160000.6.1
openSUSE:Leap 16.0kernel-sourcebefore 6.12.0-160000.6.16.12.0-160000.6.1
openSUSE:Leap 16.0kernel-symsbefore 6.12.0-160000.6.16.12.0-160000.6.1
openSUSE:Leap 16.0kernel-zfcpdumpbefore 6.12.0-160000.6.16.12.0-160000.6.1
SUSE:Linux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_14before 1-150600.1.5.11-150600.1.5.1
SUSE:Linux Enterprise Live Patching 15 SP7kernel-livepatch-SLE15-SP7-RT_Update_3before 1-150700.1.5.11-150700.1.5.1
SUSE:Linux Enterprise Server 16.0kernel-docsbefore 6.12.0-160000.6.16.12.0-160000.6.1
SUSE:Linux Enterprise Server 16.0kernel-kvmsmallbefore 6.12.0-160000.6.16.12.0-160000.6.1
SUSE:Linux Enterprise Server 16.0kernel-obs-qabefore 6.12.0-160000.6.16.12.0-160000.6.1
SUSE:Linux Enterprise Server 16.0kernel-symsbefore 6.12.0-160000.6.16.12.0-160000.6.1

+20

Other highest-scoring records for the same primary product.

  • CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV
    90Now
  • 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…KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now

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.88
    22Monitor
  • Later →CVE-2025-38036Jun 18, 2025 · drm/xe/vf: Perform early GT MMIO initialization to read GMDID
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux0528bba48dce7820d2da72e1a114e1c4552367ebVendor (CNA)
Linux Linux137bfa08c6441f324d00692d1e9d22cfd773329bVendor (CNA)
Linux Linux5755b6731655e248c4f1d52a2e1b18795b4a2a3aVendor (CNA)
Linux Linux7a97f961a568a8f72472dc804af02a0f73152c5fVendor (CNA)
Linux Linux7f7c8c03feba5f2454792fab3bb8bd45bd6883f9Vendor (CNA)
Linux Linuxa641154cedf9d69730f8af5d0a901fe86e6486bdVendor (CNA)
Linux Linuxa876703894a6dd6e8c04b0635d86e9f7a7c81b79Vendor (CNA)
Linux Linuxbc7e0975093567f51be8e1bdf4aa5900a3cf0b1eVendor (CNA)
debian:linux6.1.147-1 · Debian:12Package registry (OSV)
opensuse:dtb-aarch646.12.0-160000.6.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-64kb6.12.0-160000.6.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-default6.12.0-160000.6.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-default-base6.12.0-160000.6.1.160000.2.4 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-docs6.12.0-160000.6.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-kvmsmall6.12.0-160000.6.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-obs-build6.12.0-160000.6.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-obs-qa6.12.0-160000.6.1 · openSUSE:Leap 16.0Package registry (OSV)
opensuse:kernel-rt6.4.0-150600.10.49.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-rt_debug6.4.0-150600.10.49.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-source-rt6.4.0-150600.10.49.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:kernel-syms-rt6.4.0-150600.10.49.1 · openSUSE:Leap 15.6Package registry (OSV)
suse:kernel-64kb6.12.0-160000.6.1 · SUSE:Linux Micro 6.2Package registry (OSV)
suse:kernel-default6.4.0-32.1 · SUSE:Linux Micro 6.0Package registry (OSV)
suse:kernel-default-base6.4.0-32.1.21.10 · SUSE:Linux Micro 6.0Package registry (OSV)
suse:kernel-docs6.12.0-160000.6.1 · SUSE:Linux Enterprise Server 16.0Package registry (OSV)
suse:kernel-kvmsmall6.4.0-32.1 · SUSE:Linux Micro 6.0Package registry (OSV)
suse:kernel-livepatch-SLE15-SP6-RT_Update_141-150600.1.5.1 · SUSE:Linux Enterprise Live Patching 15 SP6Package registry (OSV)
suse:kernel-livepatch-SLE15-SP7-RT_Update_31-150700.1.5.1 · SUSE:Linux Enterprise Live Patching 15 SP7Package registry (OSV)
suse:kernel-rt6.4.0-150600.10.49.1 · SUSE:Real Time Module 15 SP6Package registry (OSV)
suse:kernel-rt6.4.0-150700.7.13.1 · SUSE:Real Time Module 15 SP7Package 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

CVSS 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.

References

All records