Linux Kernel Bcache NULL Pointer Dereference Vulnerability

Vulnerability

A NULL pointer dereference vulnerability has been identified in the Linux kernel's bcache implementation. This issue arises in the 'cache_set_flush()' function, where a check for NULL pointers was improperly handled. The vulnerability occurs because the 'c->root' pointer can be NULL if the registration process fails before the pointer is allocated. Although the '__bch_btree_node_alloc()' function is designed to prevent NULL returns, the initialization of 'c->root' leaves it vulnerable under certain conditions. The problem was introduced by a commit that removed necessary NULL checks in node allocations.

Impact

Exploitation of this vulnerability leads to a NULL pointer dereference, causing a crash or undefined behavior in the kernel.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.3
remediation
0.0
relevance
0.0
threat
3.2
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.