CVE-2023-53681 PUBLISHED

bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent

Assigner: Linux
Reserved: 07.10.2025 Published: 07.10.2025 Updated: 07.10.2025

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to 587b4e8bb5dac682f09280ab35db4632b29d5ac4 (excl.)
  • affected from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to b070f29a61436f6f8a2e3abc7ea4f4be81695198 (excl.)
  • affected from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to a4405f6ee03323410d7b10966fd67b35f71b1944 (excl.)
  • affected from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to f67b0e3081f2a24170280a33ac66f6b112083c03 (excl.)
  • affected from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to 7ecea5ce3dc17339c280c75b58ac93d8c8620d9f (excl.)
  • affected from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to 4514847aee18d9391a0cf3aad75d3567c72795a4 (excl.)
  • affected from cafe563591446cf80bfbc2fe3bc72a2e36cf1060 to 80fca8a10b604afad6c14213fdfd816c4eda3ee4 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 3.10 is affected
  • unaffected from 0 to 3.10 (excl.)
  • unaffected from 4.19.291 to 4.19.* (incl.)
  • unaffected from 5.4.253 to 5.4.* (incl.)
  • unaffected from 5.10.188 to 5.10.* (incl.)
  • unaffected from 5.15.121 to 5.15.* (incl.)
  • unaffected from 6.1.39 to 6.1.* (incl.)
  • unaffected from 6.4.4 to 6.4.* (incl.)
  • unaffected from 6.5 to * (incl.)

References