CVE-2025-40235
BaseFortify
Publication date: 2025-12-04
Last updated on: 2025-12-04
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability in the Linux kernel's btrfs filesystem occurs because the function btrfs_check_leaked_roots() may attempt to access a NULL pointer if certain allocations (fs_info->super_copy or fs_info->super_for_commit) fail during btrfs_get_tree_subvol(). Specifically, if these allocations fail, btrfs_free_fs_info() should not be called, but it is, leading to an access of uninitialized memory (fs_info->allocated_roots). This results in a kernel crash (page fault) due to dereferencing a NULL pointer.
How can this vulnerability impact me? :
This vulnerability can cause the Linux kernel to crash (kernel panic) when mounting or interacting with btrfs filesystems under certain failure conditions. This can lead to denial of service, system instability, or potential data loss if the filesystem becomes inaccessible or corrupted due to the crash.