CVE-2026-97416
Received Received - Intake

Null pointer dereference in Linux kernel Btrfs balance operation

Vulnerability report for CVE-2026-97416, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-24

Last updated on: 2026-10-03

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: balance: fix potential bg lookup failure in btrfs_may_alloc_data_chunk() [BUG] Running btrfs balance can trigger a null-ptr-deref before relocating a data chunk when metadata corruption leaves a chunk in the chunk tree without a corresponding block group in the in-memory cache: KASAN: null-ptr-deref in range [0x0000000000000088-0x000000000000008f] RIP: 0010:btrfs_may_alloc_data_chunk+0x40/0x1c0 fs/btrfs/volumes.c:3601 Call Trace: __btrfs_balance fs/btrfs/volumes.c:4217 [inline] btrfs_balance+0x2516/0x42b0 fs/btrfs/volumes.c:4604 btrfs_ioctl_balance fs/btrfs/ioctl.c:3577 [inline] btrfs_ioctl+0x25cf/0x5b90 fs/btrfs/ioctl.c:5313 ... [CAUSE] __btrfs_balance() iterates the on-disk chunk tree and passes the chunk logical bytenr to btrfs_may_alloc_data_chunk() before relocating a data chunk. That helper then queries the in-memory block group cache: cache = btrfs_lookup_block_group(fs_info, chunk_offset); chunk_type = cache->flags; /* cache may be NULL */ A corrupt image can contain a chunk item whose matching block group item is missing, so no block group is ever inserted into the cache. In that case btrfs_lookup_block_group() returns NULL. The code only guards this with ASSERT(cache), which becomes a no-op when CONFIG_BTRFS_ASSERT is disabled. The subsequent dereference of cache->flags therefore crashes the kernel. [FIX] Add a NULL check after btrfs_lookup_block_group() in btrfs_may_alloc_data_chunk() and print and error message for clarity.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-24
Last Modified
2026-10-03
Generated
2026-10-15
AI Q&A
2026-09-24
EPSS Evaluated
2026-10-13
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a null-pointer dereference vulnerability in the Linux kernel's Btrfs filesystem. It occurs during a balance operation when metadata corruption leaves a chunk in the chunk tree without a corresponding block group in memory. The code attempts to access a null pointer, causing a kernel crash.

Detection Guidance

This vulnerability is specific to the Linux kernel's Btrfs filesystem and may not have direct network detection methods. Monitor kernel logs for null-ptr-deref errors during btrfs balance operations. Check for metadata corruption in Btrfs volumes using 'btrfs check /dev/sdX' commands.

Impact Analysis

If exploited, this vulnerability could crash the entire system by triggering a kernel panic. Users may experience unexpected system reboots or data corruption if the filesystem is in an inconsistent state.

Compliance Impact

This vulnerability is a kernel-level issue in the Linux filesystem (btrfs) that could lead to system crashes due to null pointer dereference. It does not directly affect compliance with standards like GDPR or HIPAA, as those focus on data protection, privacy, and security controls rather than filesystem integrity. However, if exploited, it could cause data corruption or unavailability, indirectly impacting compliance by disrupting systems handling sensitive data.

Mitigation Strategies

Apply the latest Linux kernel patches that include the fix for this Btrfs bug. Avoid running 'btrfs balance' on potentially corrupted filesystems until the issue is resolved. Regularly back up important data and verify filesystem integrity.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-97416. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart