CVE-2025-38034
BaseFortify
Publication date: 2025-06-18
Last updated on: 2025-12-17
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | to 5.4.294 (exc) |
| linux | linux_kernel | From 5.5 (inc) to 5.10.238 (exc) |
| linux | linux_kernel | From 5.11 (inc) to 5.15.185 (exc) |
| linux | linux_kernel | From 5.16 (inc) to 6.1.141 (exc) |
| linux | linux_kernel | From 6.2 (inc) to 6.6.93 (exc) |
| linux | linux_kernel | From 6.7 (inc) to 6.12.31 (exc) |
| linux | linux_kernel | From 6.13 (inc) to 6.14.9 (exc) |
| linux | linux_kernel | 6.15 |
| linux | linux_kernel | 6.15 |
| linux | linux_kernel | 6.15 |
| linux | linux_kernel | 6.15 |
| linux | linux_kernel | 6.15 |
| debian | debian_linux | 11.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-476 | The product dereferences a pointer that it expects to be valid but is NULL. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a bug in the Linux kernel's btrfs filesystem code where the function btrfs_prelim_ref() calls its arguments in the wrong order. Specifically, the old reference variable is passed as NULL to another function, trace_btrfs_prelim_ref_insert(), which causes a NULL pointer dereference and leads to a kernel crash (Oops). This happens because the function is intentionally called with new reference as old reference and old reference as NULL to print values, but the argument order is incorrect, causing the crash during certain writeback operations.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to crash due to a NULL pointer dereference when performing certain writeback operations on the btrfs filesystem. This can lead to system instability, potential data loss, or denial of service as the kernel encounters an unrecoverable error and stops functioning properly.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by enabling the tracing event for btrfs_prelim_ref_insert and then performing some writeback operations to observe if a NULL pointer dereference occurs. You can enable the tracing event with the command: echo 1 > /sys/kernel/debug/tracing/events/btrfs/btrfs_prelim_ref_insert/enable. Monitoring kernel logs for BUG or Oops messages related to btrfs_prelim_ref_insert can also help detect the issue.