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.
| Software | From | Fixed in |
|---|---|---|
| linux / linux_kernel | 3.10 | 4.19.291 |
| linux / linux_kernel | 4.20 | 5.4.253 |
| linux / linux_kernel | 5.5 | 5.10.188 |
| linux / linux_kernel | 5.11 | 5.15.121 |
| linux / linux_kernel | 5.16 | 6.1.39 |
| linux / linux_kernel | 6.2 | 6.4.4 |