bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent
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.
02 / AFFECTED SOFTWARE
Affected packages
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
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.
05 / REFERENCES
Further evidence
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- https://git.kernel.org/stable/c/4514847aee18d9391a0cf3aad75d3567c72795a4
- https://git.kernel.org/stable/c/587b4e8bb5dac682f09280ab35db4632b29d5ac4
- https://git.kernel.org/stable/c/7ecea5ce3dc17339c280c75b58ac93d8c8620d9f
- https://git.kernel.org/stable/c/80fca8a10b604afad6c14213fdfd816c4eda3ee4
- https://git.kernel.org/stable/c/a4405f6ee03323410d7b10966fd67b35f71b1944
- https://git.kernel.org/stable/c/b070f29a61436f6f8a2e3abc7ea4f4be81695198
- https://git.kernel.org/stable/c/f67b0e3081f2a24170280a33ac66f6b112083c03
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53681.json
- https://nvd.nist.gov/vuln/detail/CVE-2023-53681