bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cafe563591446cf80bfbc2fe3bc72a2e36cf1060 · < 4514847aee18d9391a0cf3aad75d3567c72795a4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent
In some specific situations, the return value of __bch_btree_node_alloc may be NULL. This may lead to a potential NULL pointer dereference in caller function like a calling chain : btree_split->bch_btree_node_alloc->__bch_btree_node_alloc.
Fix it by initializing the return value in __bch_btree_node_alloc.
From the CVE record · Linux
The Linux kernel’s bcache __bch_btree_node_alloc function can return NULL in specific situations, potentially causing a NULL pointer dereference in a caller such as btree_split. The input does not specify how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running Linux kernels with bcache should check their versions; affected versions are not specified.