Skip to main content
← All vulnerabilities
CVE-2025-71184

btrfs: fix NULL dereference on root when tracing inode eviction

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.6.130, 6.12.66, 6.18.6
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix NULL dereference on root when tracing inode eviction When evicting an inode the first thing we do is to setup tracing for it, which implies fetching the root's id. But in btrfs_evict_inode() the root might be NULL, as implied in the next check that we do in btrfs_evict_inode(). Hence, we either should set the ->root_objectid to 0 in case the root is NULL, or we move tracing setup after checking that the root is not NULL. Setting the rootid to 0 at least gives us the possibility to trace this call even in the case when the root is NULL, so that's the solution taken here.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    Version range not reported

  • Linux Linux

    2.6.39

  • KernelLinux

    From 2.6.39 · fixed in 6.6.130; From 6.7.0 · fixed in 6.12.66; From 6.13.0 · fixed in 6.18.6

References 5

git.kernel.org