CVE-2025-38034
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-38034 is a vulnerability discovered in the Linux kernel's btrfs filesystem component, published on June 18, 2025. The vulnerability affects the order of prelim_ref arguments in the btrfs_prelim_ref function, specifically impacting systems running Linux kernel versions prior to 6.12.32-1 (NVD, Debian Tracker).

Technical details

The vulnerability stems from an incorrect ordering of old and new reference variables in the btrfs_prelim_ref() function. Specifically, the function calls trace_btrfs_prelim_ref_insert() with newref as oldref and oldref as NULL, which leads to a NULL pointer dereference. This issue can be triggered when tracing is enabled for btrfs prelim_ref events by executing 'echo 1 > /sys/kernel/debug/tracing/events/btrfs/btrfs_prelim_ref_insert/enable' followed by writeback operations (NVD, Wiz).

Impact

When exploited, this vulnerability results in a kernel NULL pointer dereference, which can cause system crashes and potential denial of service conditions. The issue manifests during writeback operations when specific tracing is enabled (Wiz).

Mitigation and workarounds

The vulnerability has been fixed in Linux kernel version 6.12.32-1 and later versions. Systems running Debian distributions have received patches through security updates, with fixed versions available in the sid and trixie releases (Debian Tracker).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-core
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • rv
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-debug
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management